CN109218844A - A kind of method, apparatus and computer equipment improving barrage information security - Google Patents

A kind of method, apparatus and computer equipment improving barrage information security Download PDF

Info

Publication number
CN109218844A
CN109218844A CN201710525533.5A CN201710525533A CN109218844A CN 109218844 A CN109218844 A CN 109218844A CN 201710525533 A CN201710525533 A CN 201710525533A CN 109218844 A CN109218844 A CN 109218844A
Authority
CN
China
Prior art keywords
information
barrage
code
barrage information
improper
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710525533.5A
Other languages
Chinese (zh)
Inventor
周志刚
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710525533.5A priority Critical patent/CN109218844A/en
Publication of CN109218844A publication Critical patent/CN109218844A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8126Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts
    • H04N21/8133Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts specifically related to the content, e.g. biography of the actors in a movie, detailed information about an article seen in a video program

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method, apparatus and computer equipment for improving barrage information security, method includes: to obtain barrage information, is judged in the barrage information with the presence or absence of improper code information;If there are improper code informations in barrage information, then improper code information is converted according to preset transformation rule, improper code information is converted to the code information of predetermined format, the code information of the predetermined format is the information not being performed with code form;Barrage information after display conversion;So, because barrage information default is text information, when there are when improper code information in barrage information, it is text information by these improper code conversions, so when showing barrage information, these improper code informations would not be shown, and thus shield malicious code, ensure that user normally can send or receive barrage information using live streaming platform, and then the participation of user can be improved.

Description

A kind of method, apparatus and computer equipment improving barrage information security
Technical field
The invention belongs to the technical field of live video stream broadcasting more particularly to a kind of sides for improving barrage information security Method, device and computer equipment.
Background technique
Currently, audient is broadcast live also in continuous expand, all types of live contents with the fast development of live streaming industry Also more and more abundant.Spectators can participate in commenting on and interacting while watching live streaming or by way of sending barrage, To be greatly improved the participation of user, live content is enriched.
In general, one barrage of the every transmission of spectators, which can then be sent to live streaming Platform Server, and platform is broadcast live The barrage can be then forwarded to all spectators of the direct broadcasting room by server.However some improper users pass through the advertisement that will play frame Code mess up is in barrage, and when live streaming Platform Server is forwarded to each spectators, barrage can be then shown to by browser Code on spectators' page, however in barrage can then be executed by browser, to pop up advertisement bullet frame, this advertisement in viewer end Harassing and wrecking reduce the participation of user, cause the user volume that platform is broadcast live to reduce, also reduce the income of live streaming platform.
Summary of the invention
In view of the problems of the existing technology, the embodiment of the invention provides a kind of sides for improving barrage information security Method, device and computer equipment are believed when watching live streaming due to often receiving advertisement for solving user in the prior art Breath causes the user that platform is broadcast live to reduce, and then leads to that the technical issues of platform income reduces is broadcast live.
The present invention provides a kind of method for improving barrage information security, which comprises
Barrage information is obtained, is judged in the barrage information with the presence or absence of improper code information;
If there are the improper code information in the barrage information, according to preset transformation rule to it is described it is non-just Normal code information is converted, and the improper code information is converted to the code information of predetermined format, the predetermined format Code information be text information;
Barrage information after display conversion.
In above scheme, the acquisition barrage information, comprising:
The barrage information in barrage input frame is obtained, and,
Receiver function recv is called to receive the barrage information using web socket Socket.
It include the spcial character information of half-angle in above scheme, in the improper code information.
In above scheme, after the barrage information using web socket Socket calling recv function reception, also Include:
The barrage information is stored in the message queue pre-established, the message queue is traversed.
The present invention also mentions a kind of device for improving barrage information security, and described device includes:
Acquiring unit judges in the barrage information for obtaining barrage information with the presence or absence of improper code information;
Converting unit, in the barrage information there are in the case where the improper code information, then according to pre- If transformation rule the improper code information is converted, the improper code information is converted into predetermined format Code information, the code information of the predetermined format are the code information being performed with code form;
Display unit, for showing the barrage information after converting.
In above scheme, the acquiring unit is specifically used for:
The barrage information in the barrage input frame is obtained, alternatively,
Receiver function recv is called to receive the barrage information using web socket Socket.
In above scheme, the acquiring unit is also used to:
After calling recv function to receive the barrage information using web socket Socket, the barrage is believed by described Breath is stored in the message queue pre-established, traverses the message queue
It include the spcial character information of half-angle in above scheme, in the improper code information.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed Device performs the steps of when executing
Barrage information is obtained, is judged in the barrage information with the presence or absence of improper code information;
If there are the improper code information in the barrage information, according to preset transformation rule to it is described it is non-just Normal code information is converted, and the improper code information is converted to the code information of predetermined format, the predetermined format Code information be text information;
Barrage information after display conversion.
The present invention also provides a kind of computer equipments for improving barrage information security, comprising:
At least one processor;And
At least one processor being connect with the processor communication, wherein
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out such as any of the above-described method.
The present invention provides a kind of method, apparatus and computer equipment for improving barrage information security, the method packets It includes: obtaining barrage information, judge in the barrage information with the presence or absence of improper code information;If existing in the barrage information The improper code information then converts the improper code information according to preset transformation rule, will be described non- Normal code information is converted to the code information of predetermined format, and the code information of the predetermined format is not held with code form Capable information;Barrage information after display conversion;In this way, because barrage information default is text information, when in the barrage information It is text information by these improper code conversions there are when improper code information, then when showing barrage information, these Improper code information would not be shown, and thus shield the information such as malicious code, such as advertisement, it is ensured that user can be just Barrage information often is sent or received using live streaming platform, and then the participation of user can be improved, improves the income of live streaming platform.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram for the raising barrage information security that the embodiment of the present invention one provides;
Fig. 2 is the overall structure diagram provided by Embodiment 2 of the present invention for improving barrage information security;
Fig. 3 is the overall structure signal of the computer equipment for the raising barrage information security that the embodiment of the present invention three provides Figure.
Specific embodiment
, due to often receiving advertising information, cause to be broadcast live when watching live streaming to solve user in the prior art The user of platform is reduced, and then leads to that the technical issues of platform income reduces is broadcast live;The present invention provides a kind of raising barrage letters Cease the method, apparatus and computer equipment of safety, which comprises obtain barrage information, judge in the barrage information With the presence or absence of improper code information;If there are the improper code informations in the barrage information, according to preset turn It changes rule to convert the improper code information, the code that the improper code information is converted to predetermined format is believed Breath, the code information of the predetermined format is the information not being performed with code form;Barrage information after display conversion.
Technical solution of the present invention is described in further detail below by drawings and the specific embodiments.
Embodiment one
The present embodiment provides a kind of methods for improving barrage information security, as shown in Figure 1, which comprises
S101 obtains barrage information, judges in the barrage information with the presence or absence of improper code information.
In this step, available user barrage information to be sent, also available user barrage information to be received. In acquisition user barrage information to be sent, it can be based on pre-set interface function, call String message1= Text.input.getvalue () is utilized and is obtained the barrage information from barrage input frame.Wherein, Text.input is then WEB front-end is supplied to the input frame that user inputs barrage;The message1 is for storing the barrage information got.
When the barrage information that user to be obtained receives, a plurality of barrage letter of live streaming Platform Server push can be received Breath, then the List of a STL container can be defined to store each barrage information, message queue messagequeue is then The variable of storage, every barrage information is then message.
Then it is based on Socket.recv (messages) again;Function calls receiver function using web socket Socket Recv receives the barrage information, and barrage information is stored into message queue messagequeue.
In order to avoid improper user's malice distorts barrage information, barrage information is added in some improper code informations In, for example ad code etc. needs to detect barrage information after getting barrage information, to judge the barrage letter It whether there is improper code information in breath.
Here, the barrage information is generally defaulted as text information, after improper code is added to barrage information, barrage Information can be normally performed again with code form, and improper code must include the spcial character information of half-angle, such as half-angle '<', '>', ' & ', ' " ', ' " character information etc., i.e., the described improper code be include half-angle spcial character information generation Code.
S102, if there are the improper code informations in the barrage information, according to preset transformation rule to institute It states improper code information to be converted, the improper code information is converted to the code information of predetermined format.
In this step, for the barrage information got from barrage input frame, if existing in the barrage information described Improper code information then directly converts the improper code information according to preset transformation rule, will be described non- Normal code information is converted to the code information of predetermined format.
And the barrage information for being received from user, then message queue messagequeue is also needed to be traversed for, and to every Improper code information in barrage information is converted, wherein traversal message queue and the realization journey for converting barrage information Sequence is as follows:
For it=messagequeue.begin ();it!=messagequeue.end ()
{
convertString(*it);
}
Wherein, the code information of the predetermined format is the information not executed by network web terminal with code form or is not The information being performed, such as text information etc., these information may include: the special word of the corresponding full-shape of half-angle spcial character Accord with information;Alternatively, the spcial character information of full-shape not corresponding with half-angle spcial character;For example half-angle spcial character is all turned It is changed to spcial character information " " or " * " spcial character etc. of same full-shape.
Here, barrage information is obtained, if there are the improper code informations in the barrage information, according to preset The program for the code information that the improper code information is converted to predetermined format is accomplished by by transformation rule
Wherein, the convertString be pre-set interface function, from program realization on as can be seen that be by The half-angle spcial character of improper code is converted to the spcial character information of corresponding full-shape.
Certainly, if there are the improper code information in the barrage information, the method also includes: it abandons described non- Normal code information, then can not show these improper code informations when showing barrage information.
S103, the barrage information after display conversion.
In this step, after barrage information is converted, barrage information to be sent is sent to live streaming Platform Server, The barrage information can be sent to other users by the way that Platform Server is broadcast live, and show.
And after barrage information to be received is converted, it can directly be shown in web front-end.So just in display Malicious code can be shown as character information, shield malicious code.
Embodiment two
Corresponding to embodiment one, the present embodiment provides a kind of devices for improving barrage information security, as shown in Fig. 2, institute Stating device includes: acquiring unit 21, converting unit 22 and display unit 23;Wherein,
The acquiring unit 21 is for obtaining barrage information, the available user of the acquiring unit 21 barrage to be sent Information, also available user barrage information to be received.In acquisition user barrage information to be sent, the acquiring unit 21 can be based on pre-set interface function convertString, call String message1= Text.input.getvalue () is utilized and is obtained the barrage information from barrage input frame.Wherein, Text.input is then WEB front-end is supplied to the input frame that user inputs barrage;The message1 is for storing the barrage information got.
When the barrage information that user to be obtained receives, a plurality of barrage letter of live streaming Platform Server push can be received Breath, then the acquiring unit 21 can define the List of a STL container to store each barrage information, message queue Messagequeue is then the variable of storage, and every barrage information is then message.
Then it is based on Socket.recv (messages) again;Function calls receiver function using web socket Socket Recv receives the barrage information, and barrage information is stored into message queue messagequeue.
In order to avoid improper user's malice distorts barrage information, barrage information is added in some improper code informations In, such as ad code etc., after getting barrage information, the acquiring unit 21 needs to detect barrage information, with Judge in the barrage information with the presence or absence of improper code information.
Here, the barrage information is generally defaulted as text information, after improper code is added to barrage information, barrage Information can be normally performed again with code form, and improper code must include the spcial character information of half-angle, such as half-angle '<', '>', ' & ', ' " ', ' " character information etc., i.e., the described improper code be include half-angle spcial character information generation Code.
After acquiring unit 21 gets barrage information, the converting unit 22 is for there are institutes in the barrage information In the case where stating improper code information, then the improper code information is converted according to preset transformation rule, it will The improper code information is converted to the code information of predetermined format.
Specifically, for the barrage information got from barrage input frame, if there are described non-in the barrage information Normal code information, the converting unit 22 then directly turn the improper code information according to preset transformation rule It changes, the improper code information is converted to the code information of predetermined format.
And the barrage information for being received from user, then the converting unit 22 also needs to be traversed for message queue Messagequeue, and the improper code information in every barrage information is converted, wherein traversal message queue simultaneously turns The realization program for changing barrage information is as follows:
For it=messagequeue.begin ();it!=messagequeue.end ()
{
convertString(*it);
}
Wherein, the code information of the predetermined format is the letter for not executed with code form or not being performed by web terminal Breath, for example text information etc., these information may include: the spcial character information of full-shape corresponding with half-angle spcial character; Alternatively, the spcial character information of full-shape not corresponding with half-angle spcial character;For example half-angle spcial character is all converted to together A kind of spcial character information " " of full-shape or " * " spcial character etc., i.e., the described improper code is the special word for including half-angle Accord with the code of information.
Here, for the barrage information obtained from input frame, if there are the improper codes in the barrage information The program of information, the then code information for the improper code information being converted to predetermined format according to preset transformation rule is real It is now as follows:
Wherein, the convertString be pre-set interface function, from program realization on as can be seen that be by The half-angle spcial character of improper code is converted to the spcial character information of corresponding full-shape.
Certainly, if there are the improper code information in the barrage information, the converting unit 22 is also used to: being abandoned The improper code information, then can not show these improper code informations when showing barrage information.
After the converting unit 22 converts barrage information, barrage information to be sent is sent to live streaming platform clothes Business device the barrage information can be sent to other users by the way that Platform Server is broadcast live, and is shown on the display unit 23.
And after barrage information to be received is converted, it can directly be shown in the display unit of web front-end 23.This Malicious code can be shown as character information in display by sample, shield malicious code.
Embodiment three
The present embodiment also provides a kind of computer equipment for improving barrage information security, as shown in figure 3, the computer Equipment includes: radio frequency (Radio Frequency, RF) circuit 310, memory 320, input unit 330, display unit 340, sound The components such as frequency circuit 350, WiFi module 360, processor 370 and power supply 380.It will be understood by those skilled in the art that Fig. 3 Shown in computer equipment structure do not constitute the restriction to computer equipment, may include than illustrating more or fewer portions Part perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 3 to computer equipment:
RF circuit 310 can be used for sending and receiving for signal, particularly, after the downlink information of base station is received, to processing The processing of device 350.In general, RF circuit 310 includes but is not limited at least one amplifier, transceiver, coupler, low noise amplification Device (Low Noise Amplifier, LNA), duplexer etc..
Memory 320 can be used for storing software program and module, and processor 350 is stored in memory 320 by operation Software program and module, thereby executing the various function application and data processing of computer equipment.Memory 320 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program etc.;Storage data area, which can be stored, uses created data etc. according to computer equipment.In addition, memory 320 May include high-speed random access memory, can also include nonvolatile memory, a for example, at least disk memory, Flush memory device or other volatile solid-state parts.
Input unit 330 can be used for receiving the number or character information of input, and generate the user with computer equipment Setting and the related key signals input of function control.Specifically, input unit 330 may include keyboard 331 and other inputs Equipment 332.Keyboard 331 collects the input operation of user on it, and drives corresponding connection according to preset formula Device.Keyboard 331 gives processor 350 after collecting output information again.In addition to keyboard 331, input unit 330 can also include Other input equipments 332.Specifically, other input equipments 332 can include but is not limited to touch panel, function key (such as sound Measure control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Display unit 340 can be used for showing information input by user or the information and computer equipment that are supplied to user Various menus.Display unit 340 may include display panel 341, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 341.Further, keyboard 331 can cover display panel 341, when keyboard 331 detect it is on it or attached After close touch operation, processor 350 is sent to determine the type of touch event, is followed by subsequent processing device 350 according to incoming event Type corresponding visual output is provided on display panel 341.Although keyboard 331 and display panel 341 are conducts in Fig. 3 Two independent components realize the input and input function of computer equipment, but in some embodiments it is possible to by keyboard 331 is integrated with display panel 341 and that realizes computer equipment output and input function.
Voicefrequency circuit 350, loudspeaker 351, microphone 352 can provide the audio interface between user and computer equipment. Electric signal after the audio data received conversion can be transferred to loudspeaker 351, be converted by loudspeaker 351 by voicefrequency circuit 350 For voice signal output;
WiFi belongs to short range wireless transmission technology, and computer equipment can help user to receive and dispatch by WiFi module 360 Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3 WiFi module 360 is shown, but it is understood that, and it is not belonging to must be configured into for computer equipment, it completely can root It is omitted within the scope of not changing the essence of the invention according to needs.
Processor 370 is the control centre of computer equipment, utilizes various interfaces and the entire computer equipment of connection Various pieces, by running or execute the software program and/or module that are stored in memory 320, and call and be stored in Data in memory 320 execute the various functions and processing data of computer equipment, to carry out to computer equipment whole Monitoring.Optionally, processor 370 may include one or more processing units;Preferably, processor 370 can be integrated using processing Device, wherein the main processing operation system of application processor, user interface and application program etc..
Computer equipment further includes the power supply 380 (such as power supply adaptor) powered to all parts, it is preferred that power supply can With logically contiguous by power-supply management system and processor 370.
The method, apparatus and computer equipment energy bring beneficial effect provided by the invention for improving barrage information security At least:
The present invention provides a kind of method, apparatus and computer equipment for improving barrage information security, which comprises Barrage information is obtained, is judged in the barrage information with the presence or absence of improper code information;If in the barrage information, there are institutes State improper code information, then the improper code information converted according to preset transformation rule, by it is described it is non-just Normal code information is converted to the code information of predetermined format, and the code information of the predetermined format is text information;Display conversion Barrage information afterwards;In this way, because barrage information default is text information, when there are improper code informations in the barrage information When, it is the information that cannot be executed by web terminal with code form by these improper code conversions, then in display barrage information When, these improper code informations would not be normally displayed, and be thus equal to and shielded the letter such as malicious code, such as advertisement Breath;And it can both be converted to sent barrage information, received barrage information can also be treated and converted, into One step ensures that user normally can send or receive barrage information using live streaming platform, and then the participation of user can be improved, Improve the income of live streaming platform.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize gateway according to an embodiment of the present invention, proxy server, in system Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all device or device programs (for example, computer program and computer program product) of method.It is such It realizes that program of the invention can store on computer readable storage medium, or can have one or more signal Form.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other Form provides;The program performs the steps of when being executed by processor obtains barrage information, judge in the barrage information whether There are improper code informations;If there are the improper code informations in the barrage information, advised according to preset conversion Then the improper code information is converted, the improper code information is converted to the code information of predetermined format, The code information of the predetermined format is text information;Barrage information after display conversion.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention, it is all Made any modifications, equivalent replacements, and improvements etc. within the spirit and principles in the present invention, should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of method for improving barrage information security, which is characterized in that the described method includes:
Barrage information is obtained, is judged in the barrage information with the presence or absence of improper code information;
If there are the improper code informations in the barrage information, according to preset transformation rule to the improper generation Code information is converted, and the improper code information is converted to the code information of predetermined format, the generation of the predetermined format Code information is text information;
Barrage information after display conversion.
2. the method as described in claim 1, which is characterized in that the acquisition barrage information, comprising:
The barrage information in barrage input frame is obtained, and,
Receiver function recv is called to receive the barrage information using web socket Socket.
3. the method as described in claim 1, which is characterized in that include the special word of half-angle in the improper code information Accord with information.
4. method according to claim 2, which is characterized in that described to call recv function to connect using web socket Socket After receiving the barrage information, further includes:
The barrage information is stored in the message queue pre-established, the message queue is traversed.
5. a kind of device for improving barrage information security, which is characterized in that described device includes:
Acquiring unit judges in the barrage information for obtaining barrage information with the presence or absence of improper code information;
Converting unit, in the barrage information there are in the case where the improper code information, then according to preset Transformation rule converts the improper code information, and the improper code information is converted to the code of predetermined format Information, the code information of the predetermined format are the code information being performed with code form;
Display unit, for showing the barrage information after converting.
6. device as claimed in claim 5, which is characterized in that the acquiring unit is specifically used for:
The barrage information in the barrage input frame is obtained, alternatively,
Receiver function recv is called to receive the barrage information using web socket Socket.
7. device as claimed in claim 5, which is characterized in that include the special word of half-angle in the improper code information Accord with information.
8. device as claimed in claim 6, which is characterized in that the acquiring unit is also used to:
After calling recv function to receive the barrage information using web socket Socket, the barrage information is deposited by described Storage traverses the message queue in the message queue pre-established.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor It is performed the steps of when row
Barrage information is obtained, is judged in the barrage information with the presence or absence of improper code information;
If there are the improper code informations in the barrage information, according to preset transformation rule to the improper generation Code information is converted, and the improper code information is converted to the code information of predetermined format, the generation of the predetermined format Code information is text information;
Barrage information after display conversion.
10. a kind of computer equipment for improving barrage information security characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, wherein
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in Claims 1-4 is any.
CN201710525533.5A 2017-06-30 2017-06-30 A kind of method, apparatus and computer equipment improving barrage information security Pending CN109218844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710525533.5A CN109218844A (en) 2017-06-30 2017-06-30 A kind of method, apparatus and computer equipment improving barrage information security

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710525533.5A CN109218844A (en) 2017-06-30 2017-06-30 A kind of method, apparatus and computer equipment improving barrage information security

Publications (1)

Publication Number Publication Date
CN109218844A true CN109218844A (en) 2019-01-15

Family

ID=64961144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710525533.5A Pending CN109218844A (en) 2017-06-30 2017-06-30 A kind of method, apparatus and computer equipment improving barrage information security

Country Status (1)

Country Link
CN (1) CN109218844A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2566179A1 (en) * 2011-09-02 2013-03-06 Alcatel Lucent Blocking superimposed images in multiscreen environment
CN103413092A (en) * 2013-09-10 2013-11-27 深圳市共进电子股份有限公司 Method for forbidding malicious codes from being injected into network terminal
CN104869437A (en) * 2015-03-20 2015-08-26 四川长虹电器股份有限公司 Digital television conditional access-based bidirectional terminal barrage realizing method
CN105451087A (en) * 2015-12-14 2016-03-30 广州弹幕网络科技有限公司 Pushing method, terminals, historical data server and system for barrage information
CN105847717A (en) * 2016-05-30 2016-08-10 武汉斗鱼网络科技有限公司 Barrage reporting method, client and server
CN105872781A (en) * 2016-05-31 2016-08-17 武汉斗鱼网络科技有限公司 Bullet-screen-controlled speech filtering control method and device
CN105956200A (en) * 2016-06-24 2016-09-21 武汉斗鱼网络科技有限公司 Filtration and conversion-based popup screen interception method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2566179A1 (en) * 2011-09-02 2013-03-06 Alcatel Lucent Blocking superimposed images in multiscreen environment
CN103413092A (en) * 2013-09-10 2013-11-27 深圳市共进电子股份有限公司 Method for forbidding malicious codes from being injected into network terminal
CN104869437A (en) * 2015-03-20 2015-08-26 四川长虹电器股份有限公司 Digital television conditional access-based bidirectional terminal barrage realizing method
CN105451087A (en) * 2015-12-14 2016-03-30 广州弹幕网络科技有限公司 Pushing method, terminals, historical data server and system for barrage information
CN105847717A (en) * 2016-05-30 2016-08-10 武汉斗鱼网络科技有限公司 Barrage reporting method, client and server
CN105872781A (en) * 2016-05-31 2016-08-17 武汉斗鱼网络科技有限公司 Bullet-screen-controlled speech filtering control method and device
CN105956200A (en) * 2016-06-24 2016-09-21 武汉斗鱼网络科技有限公司 Filtration and conversion-based popup screen interception method and apparatus

Similar Documents

Publication Publication Date Title
CN103297327B (en) Information push method, device and display terminal
CN109756449A (en) Transmission method, base station and the user terminal of system information block
CN103702297B (en) Short message enhancement, apparatus and system
CN106033337B (en) A kind of instant messaging emoticon generation method and device
US20080046817A1 (en) Hierarchical state programming with a markup language
CN103905885A (en) Video live broadcast method and device
CN106527874B (en) Page processing method and device
CN107451852A (en) The live promotion method and server using APP of third party in a kind of live platform
CN105933204B (en) The method and apparatus that first equipment sends synchronization message to the second equipment
CN106341259A (en) Fault information report method and device
CN103514219A (en) Method and system for sharing Web content between multiple terminals
CN110035004A (en) A kind of user&#39;s business card sharing method, good friend&#39;s adding method and relevant apparatus
CN108322807A (en) A kind of barrage methods of exhibiting and device
CN107391115A (en) A kind of method, apparatus and computer equipment for realizing pop-up alternative events
US20140378107A1 (en) System and method of providing caller identification information
CN110324693A (en) The direct broadcasting room processing method and processing device of video is played for realizing how small window
CN108881930A (en) A kind of method of gifts, system and electronic equipment
CN110198242A (en) Distribution method, apparatus and storage medium for speech ciphering equipment
CN107562539A (en) Applied program processing method and device, computer equipment, storage medium
CN109150476A (en) The output method of feedback information, the output method of notification information and Related product
CN105871425B (en) The method and apparatus that first equipment receives synchronization message from the second equipment
CN104834649B (en) It can realize the smart machine and multiple-equipment team working method of more equipment collaborations
CN104426747B (en) Instant communicating method, terminal and system
CN106295379A (en) Encrypt input method and device, deciphering input method and device and relevant device
CN108762829A (en) A kind of method, client and terminal for image beautification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115