CN107770161A - The method and device of brush present is prevented in a kind of live platform - Google Patents

The method and device of brush present is prevented in a kind of live platform Download PDF

Info

Publication number
CN107770161A
CN107770161A CN201710930300.3A CN201710930300A CN107770161A CN 107770161 A CN107770161 A CN 107770161A CN 201710930300 A CN201710930300 A CN 201710930300A CN 107770161 A CN107770161 A CN 107770161A
Authority
CN
China
Prior art keywords
parameter
field
direct broadcasting
broadcasting room
spectator client
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.)
Granted
Application number
CN201710930300.3A
Other languages
Chinese (zh)
Other versions
CN107770161B (en
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 CN201710930300.3A priority Critical patent/CN107770161B/en
Priority to PCT/CN2017/120175 priority patent/WO2019071859A1/en
Publication of CN107770161A publication Critical patent/CN107770161A/en
Application granted granted Critical
Publication of CN107770161B publication Critical patent/CN107770161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides the method and device that brush present is prevented in a kind of live platform, and methods described includes:S1, default control field and preset data field are sent to spectator client;S2, receive the direct broadcasting room information request agreement that the spectator client is sent according to the default control field and preset data field;S3, if by judging the first parameter in the direct broadcasting room information request agreement, it is hacker's client to confirm the spectator client, then by spectators' account freezing corresponding to the spectator client.One aspect of the present invention, using default control field and preset data field, the diversity and non-directiveness of direct broadcasting room information request agreement are improved, it is difficult the anti-brush strategy of identification to make hacker;On the other hand, when whether hacker monitors direct broadcasting room and start broadcasting, identify and freeze spectators' account of hacker, hacker can not be further monitored whether direct broadcasting room has present, effectively prevent hacker's brush present, present is distributed into normal spectators, improves Consumer's Experience.

Description

The method and device of brush present is prevented in a kind of live platform
Technical field
The present invention relates to technical field of network security, more particularly, to the side that brush present is prevented in a kind of live platform Method and device.
Background technology
With the development of network interaction platform, increasing user is exchanged by logging in network interaction platform.Its In, network direct broadcasting is the application being popular in users very much.
Live platform is in order to attract spectators to be watched, and main broadcaster can open precious case so that spectators get, and spectators are by getting The reward of precious case can obtain present, as awarded for the spectators watched for a long time in room.However, some hackers pass through Write monitoring programme and sign in many direct broadcasting rooms, monitor whether each direct broadcasting room starts broadcasting.If having detected that direct broadcasting room starts broadcasting, then Detect whether the direct broadcasting room to start broadcasting has the precious case that can be got.Once it was found which direct broadcasting room has precious case, then using substantial amounts of account Number signing in the room gets precious case, so as to obtain a large amount of incomes.Therefore, the monitoring programme that hacker writes has auxiliary well Effect, the direct broadcasting room of precious case can be detected, directly gets precious case to the direct broadcasting room for having precious case.
In summary, prior art one side hacker in the case where monitoring direct broadcasting room and starting broadcasting by being tested with present Direct broadcasting room, the direct broadcasting room for being directed to present gets present, obtains a large amount of incomes;On the other hand, hacker uses a large amount of accounts Log in direct broadcasting room and get present so that the probability that normal spectators get present reduces, and influences the Consumer's Experience of normal spectators.
The content of the invention
The problem of to overcome above-mentioned hacker to be readily apparent that the inspection policies of server, solves above-mentioned ask at least in part Topic, the invention provides the method and device that brush present is prevented in a kind of live platform.
According to the first aspect of the invention, there is provided a kind of method that brush present is prevented in live platform, including:
S1, default control field and preset data field are sent to spectator client;
S2, receive the direct broadcasting room that the spectator client is sent according to the default control field and preset data field and believe Cease request protocol;
S3, if by judging the first parameter in the direct broadcasting room information request agreement, confirm the spectators visitor Family end is hacker's client, then by spectators' account freezing corresponding to the spectator client.
Specifically, the step S3 is specifically included:
If there is no the first parameter in the direct broadcasting room information request agreement, by spectators' account corresponding to the spectator client Number freeze;Or
If there is first parameter in the direct broadcasting room information request agreement, judge whether first parameter is correct; If first parameter is incorrect, by spectators' account freezing corresponding to the spectator client.
Specifically, the step S3 is further specifically included:
When the default control field is not the second predetermined word for the first preset field and/or the preset data field Duan Shi, if not having first parameter in the direct broadcasting room information request agreement, by spectators corresponding to the spectator client Account freezing;Or
When the default control field is not the second predetermined word for the first preset field and/or the preset data field Duan Shi, if there is first parameter in the direct broadcasting room information request agreement, judge whether first parameter is correct;If institute It is incorrect to state the first parameter, then by spectators' account freezing corresponding to the spectator client.
Specifically, the step S3 also includes:
When the default control field is first preset field and the preset data field is described second default During field, if having the first parameter in the direct broadcasting room information request agreement, by spectators' account corresponding to the spectator client Freeze.
Specifically, judge that the whether correct step of first parameter specifically includes:
Obtain parameter name corresponding to the default control field;
According to the preset data field and timestamp, get parms content;
According to the parameter name and content of parameter, the second parameter is obtained;
If first parameter differs with second parameter, know that first parameter is incorrect.
Specifically, specifically included according to the preset data field and timestamp, the step of the content that gets parms:
Obtain newer field and AES corresponding to the default control field;
Key using the timestamp as the AES adds to the newer field and preset data field It is close;
Using newer field and the preset data field after encryption as the content of parameter.
Specifically, the newer field is the one or more in spectators' numbering, the Token data and random number of spectators;
The AES is TAE AESs or AES encryption algorithm.
According to the second aspect of the invention, there is provided the device of brush present is prevented in a kind of live platform, including:
Transmitting element, for default control field and preset data field to be sent into spectator client;
Receiving unit, sent for receiving the spectator client according to the default control field and preset data field Direct broadcasting room information request agreement;
Processing unit, for by judging the first parameter in the direct broadcasting room information request agreement, confirming When the spectator client is hacker's client, by spectators' account freezing corresponding to the spectator client.
According to the third aspect of the invention we, there is provided the equipment that brush present is prevented in a kind of live platform, including:
At least one processor, at least one memory and bus;Wherein,
The processor and memory complete mutual communication by the bus;
The memory storage has and by the programmed instruction of the computing device, the processor described program can be called to refer to Order is able to carry out method as described before.
According to the fourth aspect of the invention, there is provided a kind of non-transient computer readable storage medium storing program for executing, for storing such as preceding institute State the computer program of method.
The present invention provides the method and device that brush present is prevented in a kind of live platform, and this method is by server to spectators Client sends the default control field and preset data field, so that the spectator client is according to the default control word Section and preset data field return to direct broadcasting room information request agreement, according to the direct broadcasting room information request protocol identification hacker client Hold and hacker's client is freezed, on the one hand, server is controlled by sending default control field and preset data field The direct broadcasting room information request agreement that spectator client is sent, so as to improve the diversity of direct broadcasting room information request agreement and indefinite Tropism so that the monitoring programme of hacker is difficult to identify that the anti-brush strategy of server;On the other hand, it is straight in hacker's client control When whether being started broadcasting between broadcasting, identify and freeze hacker's client, whether courteous hacker's client can not be further monitored direct broadcasting room Thing, hacker's brush present is effectively prevented, so as to which present is distributed into normal client, improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the method overall flow schematic diagram that brush present is prevented in live platform provided in an embodiment of the present invention;
Fig. 2 is the device overall structure diagram that brush present is prevented in live platform provided in an embodiment of the present invention;
Fig. 3 is the equipment overall structure schematic diagram that brush present is prevented in live platform provided in an embodiment of the present invention.
Embodiment
With reference to the accompanying drawings and examples, the embodiment of the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
First introduce hacker's client and how to know whether direct broadcasting room starts broadcasting.
Specifically, when spectators, which open live platform client, watches live into direct broadcasting room, client can be to server A direct broadcasting room information request agreement is sent with acquisition request direct broadcasting room information, the direct broadcasting room information include video flowing address, Whether start broadcasting and main broadcaster's information.Main broadcaster's information includes the present title under main broadcaster's account, present quantity, viewership etc.. For example, the original direct broadcasting room information request agreement in the prior art is Get/Live/Room/info/roomId, wherein, The Get represents HTTP get interfaces, and the path of the interface is /Live/Room/info/, and the parameter inserted is direct broadcasting room Numbering roomId.The monitoring programme of hacker is also the direct broadcasting room for obtaining server by the direct broadcasting room information request agreement and returning Information, so as to know whether direct broadcasting room starts broadcasting.
There is provided in one embodiment of the invention prevents the method for brush present in a kind of live platform, Fig. 1 is the present invention The method overall flow schematic diagram of brush present is prevented in the live platform that embodiment provides, this method includes:S1, by default control Field and preset data field are sent to spectator client;S2, receive the spectator client according to the default control field The direct broadcasting room information request agreement sent with preset data field;S3, if by the direct broadcasting room information request agreement First parameter is judged that it is hacker's client to confirm the spectator client, then by spectators corresponding to the spectator client Account freezing.
Specifically, when server is not turned on control function, all spectator clients are believed using original direct broadcasting room Cease request protocol.After server opens control function, server is to the spectator client transmission default control field and in advance If data field, so that the spectator client returns to direct broadcasting room information according to the default control field and preset data field Request protocol.In S1, the default control field and preset data field are field set in advance.It is preset with a variety of pre- If control field and a variety of preset data fields.The parameter name is the character string that sets at random, the preset data field For the data set at random, both of which does not have rule.Server therefrom randomly chooses or therefrom selection is a kind of pre- by certain rule , can be in spectators' account corresponding to the spectator client if control field and a kind of preset data field are sent to spectator client Number log in when be transmitted.The spectator client receives the default control field and preset data field.The spectators visitor Family end is the live used client of spectators' viewing.
S2, normal spectator client generates new direct broadcasting room according to the default control field and preset data field to be believed Request protocol is ceased, the new direct broadcasting room information request agreement is sent to server.Because the monitoring programme of hacker is not straight The normal spectator client of platform is broadcast, and makes shell script, so original direct broadcasting room information request agreement is still used, by original The direct broadcasting room information request agreement come is sent to server.Server receives the spectator client according to the default control word Section and preset data field send direct broadcasting room information request agreement, the spectator client include normal spectator client and Hacker's client, hacker's client are the monitoring programme of hacker.
In S3, first parameter is that normal spectator client sends newly described live after server opens control function Between information request agreement compared to server open control function before spectator client send the direct broadcasting room information request association The increased parameter of view institute.Server confirms institute by judging the first parameter in the direct broadcasting room information request agreement State whether spectator client is hacker's client.What it is due to the transmission of normal spectator client is new direct broadcasting room information request association View, and what hacker's client was sent is original direct broadcasting room information request agreement.Therefore, if server receive it is original straight An information request agreement is broadcast, then the spectator client for judging to send the direct broadcasting room information request agreement is hacker's client.If Judge that the spectator client for hacker's client, then records spectators' account corresponding to the spectator client, so as to enter to it Row freezes so that whether the monitoring programme of the hacker can not be monitored in direct broadcasting room has present to get, so that live flat Present in platform distributes to normal spectators.
For example, the default control field is represented with 2 digits, the preset data field is represented with 8 digits.Work as server When the field issued is " 01 12345678 ", wherein " 01 " is default control field, " 12345678 " are preset data field, Normal spectator client obtains parameter name " Data " corresponding to default control field " 01 ".To preset data field Get parms content Encryptdata, i.e. Encryptdata=is encrypted in " 12345678 " and timestamp time Tea.encrypt(12345678,time).Wherein, Tea is TEA AESs, and usage time is stabbed time and calculated as the encryption The key of method.The parameter name and content of parameter are added in original direct broadcasting room information request agreement and formed by the client New direct broadcasting room information request agreement, the new direct broadcasting room information request agreement is Get/Live/Room/info/roomId Data=Encryptdata.
When the field that server issues is " 02 44445555 ", wherein " 02 " is default control field, " 44445555 " For preset data field, normal spectator client obtains parameter name " userinfo " corresponding to default control field " 02 ", Preset data field " 44445555 ", timestamp time and newer field Customs Assigned Number UID are encrypted together in getting parms Hold Encryptdata, i.e. Encryptdata=Tea.encrypt (44445555+UID, time).Add the purpose of newer field It is the changeability and irregularities for expecting data encryption, so as to ensure that the diversity of new direct broadcasting room information request agreement, So that anti-brush strategy is not easy to be identified by hacker.Wherein, Tea is Tea AESs, and usage time stabs time as the encryption The key of algorithm.The parameter name and content of parameter are added shape in original direct broadcasting room information request agreement by the client Cheng Xin direct broadcasting room information request agreement, the new direct broadcasting room information request agreement is Get/Live/Room/info/ roomIdUserinfo=Encryptdata.
When the field that server issues is " 03 88888888 ", wherein " 03 " is default control field, " 88888888 " For preset data field, normal spectator client obtains parameter name " member " corresponding to default control field " 03 ", right Preset data field " 88888888 ", timestamp time and the token data of newer field user are encrypted get parms together Content Encryptdata, i.e. Encryptdata=AES.encrypt (44445555+token, time).Add newer field Purpose is to expect the changeability and irregularities of data encryption, so as to ensure that the various of new direct broadcasting room information request agreement Property so that anti-brush strategy is not easy to be identified by hacker.Wherein, AES is AES encryption algorithm, and usage time is stabbed described in time conducts The key of AES.The parameter name and content of parameter are added original direct broadcasting room information request agreement by the client Middle to form new direct broadcasting room information request agreement, the new direct broadcasting room information request agreement is Get/Live/Room/info/ roomIdMember=Encryptdata.The present embodiment be not limited to citing in default control field, preset data field, plus Close algorithm and newer field.Server can also send other default control fields and preset data field, the visitor of normal spectators Family end generates new direct broadcasting room information request agreement using other AESs and newer field.
The present embodiment sends the default control field and preset data field by server to spectator client, for The spectator client returns to direct broadcasting room information request agreement according to the default control field and preset data field, according to institute State direct broadcasting room information request protocol identification hacker client and hacker's client is freezed, on the one hand, server passes through hair The direct broadcasting room information request agreement for sending default control field and preset data field to control spectator client to send, so as to improve The diversity and non-directiveness of direct broadcasting room information request agreement so that the monitoring programme of hacker is difficult to identify that the anti-brush of server Strategy;On the other hand, when whether hacker's client control direct broadcasting room starts broadcasting, identify and freeze hacker's client, make hacker objective Family end can not further monitor whether direct broadcasting room has present, effectively prevent hacker's brush present, so as to which present be distributed to normally Client, improve Consumer's Experience.
On the basis of above-described embodiment, step S3 described in the present embodiment specifically includes:If the direct broadcasting room information please Asking in agreement does not have the first parameter, then by spectators' account freezing corresponding to the spectator client;Or if the direct broadcasting room is believed There is first parameter in breath request protocol, then judge whether first parameter is correct;If first parameter is incorrect, By spectators' account freezing corresponding to the spectator client.
Specifically, server receives the direct broadcasting room information request agreement that spectator client is sent, and judges described live Between whether have first parameter in information request agreement.If there is no the first parameter in the direct broadcasting room information request agreement, It is hacker's client then to know the spectator client, by spectators' account freezing corresponding to the spectator client.It is if described There is first parameter in direct broadcasting room information request agreement, then it is normal spectator client to know the spectator client, clothes Direct broadcasting room information is sent to the spectator client by business device.
Whether have in the direct broadcasting room information request agreement that the present embodiment is sent by elder generation simply by judging spectator client First parameter identifies hacker's client, in the case where identification does not come out, further by judging whether the first parameter is correctly known Other hacker's client, greatly reduces operand, improves arithmetic speed.
On the basis of above-described embodiment, step S3 described in the present embodiment further specifically includes:When the default control When field processed is not the second preset field for the first preset field and/or the preset data field, if the direct broadcasting room is believed There is no first parameter in breath request protocol, then by spectators' account freezing corresponding to the spectator client;Or when described When default control field is not the second preset field for the first preset field and/or the preset data field, if described straight Broadcasting has first parameter in an information request agreement, then judges whether first parameter is correct;If first parameter is not Correctly, then by spectators' account freezing corresponding to the spectator client.
Specifically, first preset field and second preset field are field set in advance.In server both Control normal spectator client to send new direct broadcasting room information request agreement, control normal spectator client to send again original Direct broadcasting room information request agreement in the case of, when server send default control field be the first preset field and present count When according to field being the second preset field, normal spectator client after first preset field and the second preset field according to sending out Send original direct broadcasting room information request agreement.When the default control field is not the first preset field and/or the present count When not being the second preset field according to field, normal spectator client sends new direct broadcasting room information request agreement.It is described new There is first parameter in direct broadcasting room information request agreement.If there is no the first parameter in the direct broadcasting room information request agreement, It is hacker's client to know the spectator client.If have first parameter in the direct broadcasting room information request agreement, it is necessary to Determine whether first parameter is correct, if first parameter is incorrect, by corresponding to the spectator client Spectators' account freezing.
When server sends default control field and preset data field controls normal spectator client in the present embodiment When sending new direct broadcasting room information request agreement, if in judging the direct broadcasting room information request agreement that the spectator client received is sent There is no first parameter, then it is hacker's client to know the spectator client, and in the case of having first parameter Determine whether first parameter correctly knows whether the spectator client is hacker's client, so as to realize to black Objective client more accurately identifies.
On the basis of above-described embodiment, step S3 described in the present embodiment also includes:When the default control field is First preset field and when the preset data field is second preset field, if the direct broadcasting room information request is assisted There is the first parameter in view, then by spectators' account freezing corresponding to the spectator client.
Specifically, first preset field and second preset field are field set in advance.When server is sent out When the default control field sent is the first preset field and preset data field is the second preset field, normal spectator client According to sending original direct broadcasting room information request agreement, direct broadcasting room originally after first preset field and the second preset field There is no first parameter in information request agreement.If having the first parameter in the direct broadcasting room information request agreement, institute is known State whether spectator client is hacker's client, by spectators' account freezing corresponding to the spectator client.
For example, when the field that server issues is " 00 00000000 ", wherein " 00 " is default control field, " 00000000 " is preset data field, and normal spectator client is according to the default control field " 00 " of reception and default Data field " 00000000 ", it is Get/Live/Room/info/ to send original direct broadcasting room information request agreement to server roomId.If having the first parameter in the direct broadcasting room agreement, it is hacker's client to know spectator client.
When server sends default control field and preset data field controls normal spectator client in the present embodiment When sending original direct broadcasting room information request agreement, if judging the direct broadcasting room information request agreement that the spectator client received is sent In have first parameter, then it is hacker's client to know the spectator client, more accurate to hacker's client so as to realize Identification.
Judge that whether correct first parameter step be specific on the basis of any of the above-described embodiment, in the present embodiment Including:Obtain parameter name corresponding to the default control field;According to the preset data field and timestamp, get parms Content;According to the parameter name and content of parameter, the second parameter is obtained;If first parameter and second parameter not phase Together, then know that first parameter is incorrect.
Specifically, the corresponding relation being stored with database between the default control field and parameter name.Server Obtain parameter name corresponding to the default control field.According to the preset data field and timestamp, get parms content; According to the parameter name and content of parameter, the second parameter is obtained.Judge the direct broadcasting room letter that the client that server receives returns Whether the first parameter and server in breath request protocol are identical by calculating the second parameter obtained, if it is different, then knowing First parameter is incorrect.The server according to the default control field and preset data field get parms title and The method of content of parameter and normal client get parms title and ginseng according to the default control field and preset data field The method of number content is identical.
On the basis of any of the above-described embodiment, according to the preset data field and timestamp in the present embodiment, obtain The step of content of parameter, specifically includes:Obtain newer field and AES corresponding to the default control field;Using it is described when Between stamp the newer field and preset data field are encrypted as the key of the AES;Will be described new after encryption Field and preset data field are as the content of parameter.
Specifically, the corresponding relation being stored with database between the default control field and newer field, and it is described pre- If the corresponding relation between control field and AES.
On the basis of any of the above-described embodiment, newer field described in the present embodiment is spectators' numbering, the Token numbers of spectators According to the one or more in random number;The AES is TAE AESs or AES encryption algorithm.
There is provided in another embodiment of the present invention prevents the device of brush present in a kind of live platform, Fig. 2 is this hair The device overall structure diagram of brush present is prevented in the live platform that bright embodiment provides, the device includes transmitting element 1, connect Unit 2 and processing unit 3 are received, wherein:
The transmitting element 1 is used to default control field and preset data field being sent to spectator client;It is described to connect Unit 2 is received to be used to receive the direct broadcasting room letter that the spectator client is sent according to the default control field and preset data field Cease request protocol;The processing unit 3 is used for by sentencing to the first parameter in the direct broadcasting room information request agreement It is disconnected, when to confirm the spectator client be hacker's client, by spectators' account freezing corresponding to the spectator client.
Specifically, when server is not turned on control function, all spectator clients are believed using original direct broadcasting room Cease request protocol.After server opens control function, server is to the spectator client transmission default control field and in advance If data field, so that the spectator client returns to direct broadcasting room information according to the default control field and preset data field Request protocol.The default control field and preset data field are field set in advance.It is preset with a variety of default controls Field processed and a variety of preset data fields.The parameter name is the character string that sets at random, the preset data field be with The data of machine setting, both of which do not have rule.The transmitting element 1 therefrom randomly chooses or therefrom selection is a kind of by certain rule Default control field and a kind of preset data field are sent to spectator client, can be in spectators corresponding to the spectator client Account is transmitted when logging in.The spectator client receives the default control field and preset data field.The spectators Client is the live used client of spectators' viewing.
Normal spectator client generates new direct broadcasting room information according to the default control field and preset data field Request protocol, the new direct broadcasting room information request agreement is sent to server.Because the monitoring programme of hacker is not live The normal spectator client of platform, and make shell script, so original direct broadcasting room information request agreement is still used, will be original Direct broadcasting room information request agreement be sent to server.The receiving unit 2 receives the spectator client according to described default The direct broadcasting room information request agreement that control field and preset data field are sent, the spectator client include normal spectators visitor Family end and hacker's client, hacker's client are the monitoring programme of hacker.
First parameter is that normal spectator client sends new direct broadcasting room letter after server opens control function Cease the direct broadcasting room information request agreement institute that request protocol opens spectator client transmission before control function compared to server Increased parameter.Server confirms the sight by judging the first parameter in the direct broadcasting room information request agreement Whether many clients are hacker's client.What it is due to the transmission of normal spectator client is new direct broadcasting room information request agreement, And what hacker's client was sent is original direct broadcasting room information request agreement.The processing unit 3 judges to send the direct broadcasting room The spectator client of information request agreement is hacker's client.If judging, the spectator client for hacker's client, records Spectators' account corresponding to the spectator client, so as to freeze to it so that the monitoring programme of the hacker can not monitor Whether there is present to get in direct broadcasting room, so that the present in live platform distributes to normal spectators.
The present embodiment sends the default control field and preset data field by server to spectator client, for The spectator client returns to direct broadcasting room information request agreement according to the default control field and preset data field, according to institute State direct broadcasting room information request protocol identification hacker client and hacker's client is freezed, on the one hand, server passes through hair The direct broadcasting room information request agreement for sending default control field and preset data field to control spectator client to send, so as to improve The diversity and non-directiveness of direct broadcasting room information request agreement so that the monitoring programme of hacker is difficult to identify that the anti-brush of server Strategy;On the other hand, when whether hacker's client control direct broadcasting room starts broadcasting, identify and freeze hacker's client, make hacker objective Family end can not further monitor whether direct broadcasting room has present, effectively prevent hacker's brush present, so as to which present be distributed to normally Client, improve Consumer's Experience.
On the basis of above-described embodiment, processing unit is specifically used for described in the present embodiment:In the direct broadcasting room information When there is no the first parameter in request protocol, by spectators' account freezing corresponding to the spectator client;Or in the direct broadcasting room When having first parameter in information request agreement, judge whether first parameter is correct;If first parameter is incorrect, Then by spectators' account freezing corresponding to the spectator client.
On the basis of above-described embodiment, processing unit is further specifically used for described in the present embodiment:When described default When control field is not the second preset field for the first preset field and/or the preset data field, if the direct broadcasting room There is no first parameter in information request agreement, then by spectators' account freezing corresponding to the spectator client;Or work as institute When to state default control field be not the second preset field for the first preset field and/or the preset data field, if described There is first parameter in direct broadcasting room information request agreement, then judge whether first parameter is correct;If first parameter It is incorrect, then by spectators' account freezing corresponding to the spectator client.
On the basis of above-described embodiment, processing unit is additionally operable to described in the present embodiment:When the default control field When for first preset field and the preset data field being second preset field, if the direct broadcasting room information request There is the first parameter in agreement, then by spectators' account freezing corresponding to the spectator client.
On the basis of the various embodiments described above, processing unit is further specifically used for described in the present embodiment:Described in acquisition Parameter name corresponding to default control field;According to the preset data field and timestamp, get parms content;According to described Parameter name and content of parameter, obtain the second parameter;If first parameter differs with second parameter, know described First parameter is incorrect.
On the basis of above-described embodiment, processing unit is further specifically used for described in the present embodiment:Obtain described pre- If newer field corresponding to control field and AES;Key using the timestamp as the AES is to described new Field and preset data field are encrypted;Using newer field and the preset data field after encryption as in the parameter Hold.
On the basis of above-described embodiment, newer field described in the present embodiment be spectators numbering, spectators Token data and One or more in random number;The AES is TAE AESs or AES encryption algorithm.
The present embodiment provides the equipment that brush present is prevented in a kind of live platform, and Fig. 3 is provided in an embodiment of the present invention straight Broadcasting prevents the equipment overall structure schematic diagram of brush present in platform, the equipment includes:At least one processor 31, at least one deposit Reservoir 32 and bus 33;Wherein,
The processor 31 and memory 32 complete mutual communication by the bus 33;
The memory 32 is stored with the programmed instruction that can be performed by the processor 31, and the processor calls the journey Sequence instruction is able to carry out the method that above-mentioned each method embodiment is provided, such as including:S1, by default control field and present count Spectator client is sent to according to field;S2, receive the spectator client according to the default control field and preset data word The direct broadcasting room information request agreement that section is sent;S3, if by being carried out to the first parameter in the direct broadcasting room information request agreement Judge, it is hacker's client to confirm the spectator client, then by spectators' account freezing corresponding to the spectator client.
The present embodiment provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage medium storing program for executing Computer instruction is stored, the computer instruction makes the computer perform the method that above-mentioned each method embodiment is provided, example Such as include:S1, default control field and preset data field are sent to spectator client;S2, receive the spectator client The direct broadcasting room information request agreement sent according to the default control field and preset data field;S3, if by described straight The first parameter broadcast in an information request agreement is judged that it is hacker's client to confirm the spectator client, then by described in Spectators' account freezing corresponding to spectator client.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
Prevent that the apparatus embodiments of brush present are only schematical in live platform described above, wherein the work The unit illustrated for separating component can be or may not be physically separate, can be as the part that unit is shown Or it may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be with Some or all of module therein is selected to realize the purpose of this embodiment scheme according to the actual needs.The common skill in this area Art personnel are not in the case where paying performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Method described in some parts of example or embodiment.
Finally, the present processes are only preferable embodiment, are not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements made etc., the protection of the present invention should be included in Within the scope of.

Claims (10)

1. the method for brush present is prevented in a kind of live platform, it is characterised in that including:
S1, default control field and preset data field are sent to spectator client;
S2, receive the direct broadcasting room information that the spectator client is sent according to the default control field and preset data field and ask Seek agreement;
S3, if by judging the first parameter in the direct broadcasting room information request agreement, confirm the spectator client For hacker's client, then by spectators' account freezing corresponding to the spectator client.
2. according to the method for claim 1, it is characterised in that the step S3 is specifically included:
If not having the first parameter in the direct broadcasting room information request agreement, spectators' account corresponding to the spectator client is frozen Knot;Or
If there is first parameter in the direct broadcasting room information request agreement, judge whether first parameter is correct;If institute It is incorrect to state the first parameter, then by spectators' account freezing corresponding to the spectator client.
3. according to the method for claim 2, it is characterised in that the step S3 is further specifically included:
When the default control field is not the second preset field for the first preset field and/or the preset data field When, if there is no first parameter in the direct broadcasting room information request agreement, by spectators' account corresponding to the spectator client Number freeze;Or
When the default control field is not the second preset field for the first preset field and/or the preset data field When, if there is first parameter in the direct broadcasting room information request agreement, judge whether first parameter is correct;It is if described First parameter is incorrect, then by spectators' account freezing corresponding to the spectator client.
4. according to the method for claim 3, it is characterised in that the step S3 also includes:
When the default control field is first preset field and the preset data field is second preset field When, if having the first parameter in the direct broadcasting room information request agreement, by spectators' account freezing corresponding to the spectator client.
5. according to any described methods of claim 2-4, it is characterised in that judge the whether correct step of first parameter Specifically include:
Obtain parameter name corresponding to the default control field;
According to the preset data field and timestamp, get parms content;
According to the parameter name and content of parameter, the second parameter is obtained;
If first parameter differs with second parameter, know that first parameter is incorrect.
6. according to the method for claim 5, it is characterised in that according to the preset data field and timestamp, obtain ginseng The step of number content, specifically includes:
Obtain newer field and AES corresponding to the default control field;
The newer field and preset data field are encrypted key using the timestamp as the AES;
Using newer field and the preset data field after encryption as the content of parameter.
7. according to the method for claim 6, it is characterised in that the newer field is spectators' numbering, the Token data of spectators With the one or more in random number;
The AES is TAE AESs or AES encryption algorithm.
8. the device of brush present is prevented in a kind of live platform, it is characterised in that including:
Transmitting element, for default control field and preset data field to be sent into spectator client;
Receiving unit, send for receiving the spectator client according to the default control field and preset data field straight Broadcast an information request agreement;
Processing unit, for by judging the first parameter in the direct broadcasting room information request agreement, described in confirmation When spectator client is hacker's client, by spectators' account freezing corresponding to the spectator client.
9. the equipment of brush present is prevented in a kind of live platform, it is characterised in that including:
At least one processor, at least one memory and bus;Wherein,
The processor and memory complete mutual communication by the bus;
The memory storage has can be by the programmed instruction of the computing device, and the processor calls described program instruction energy Enough perform the method as described in claim 1 to 7 is any.
10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction makes the computer perform the method as described in claim 1 to 7 is any.
CN201710930300.3A 2017-10-09 2017-10-09 The method and device of brush present is prevented in a kind of live streaming platform Active CN107770161B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710930300.3A CN107770161B (en) 2017-10-09 2017-10-09 The method and device of brush present is prevented in a kind of live streaming platform
PCT/CN2017/120175 WO2019071859A1 (en) 2017-10-09 2017-12-29 Method and apparatus for preventing gift swiping on live broadcast platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710930300.3A CN107770161B (en) 2017-10-09 2017-10-09 The method and device of brush present is prevented in a kind of live streaming platform

Publications (2)

Publication Number Publication Date
CN107770161A true CN107770161A (en) 2018-03-06
CN107770161B CN107770161B (en) 2019-11-15

Family

ID=61267130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710930300.3A Active CN107770161B (en) 2017-10-09 2017-10-09 The method and device of brush present is prevented in a kind of live streaming platform

Country Status (2)

Country Link
CN (1) CN107770161B (en)
WO (1) WO2019071859A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881934A (en) * 2018-04-10 2018-11-23 武汉斗鱼网络科技有限公司 A kind of barrage verification method, computer equipment and storage medium
CN110933113A (en) * 2019-12-30 2020-03-27 腾讯科技(深圳)有限公司 Block chain-based interactive behavior detection method, device, equipment and storage medium
CN112449204A (en) * 2019-08-30 2021-03-05 武汉斗鱼网络科技有限公司 Method and related device for obfuscating data

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046079B (en) * 2019-04-25 2024-03-12 广州方硅信息技术有限公司 Network request detection method, device and equipment
CN114697688A (en) * 2020-12-29 2022-07-01 阿里巴巴集团控股有限公司 Live broadcast strategy recommendation method, interaction method, device, equipment and storage medium
CN113613028B (en) * 2021-08-03 2023-08-08 北京达佳互联信息技术有限公司 Live broadcast data processing method, device, terminal, server and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152262A1 (en) * 2001-04-17 2002-10-17 Jed Arkin Method and system for preventing the infringement of intellectual property rights
CN203773549U (en) * 2013-10-25 2014-08-13 上海华力创通半导体有限公司 Chip identifier-based software security application device
US9065869B2 (en) * 2011-10-08 2015-06-23 Broadcom Corporation Social network device memberships and applications
CN104935578A (en) * 2015-05-04 2015-09-23 广州唯品会信息科技有限公司 Website malicious attack prevention method and system
CN105491458A (en) * 2015-11-27 2016-04-13 武汉斗鱼网络科技有限公司 Optimization method for speaking time of barrage in live website
CN105791093A (en) * 2016-04-15 2016-07-20 广州酷狗计算机科技有限公司 Virtual goods presenting method and device
CN106022826A (en) * 2016-05-18 2016-10-12 武汉斗鱼网络科技有限公司 Cheating user recognition method and system in webcast platform
CN106060057A (en) * 2016-06-17 2016-10-26 武汉斗鱼网络科技有限公司 System and method for video live broadcast website to generate white list based on user barrage behavior
CN106228410A (en) * 2016-07-29 2016-12-14 武汉斗鱼网络科技有限公司 Virtual present task anti-brush system and method in a kind of live platform
CN106341695A (en) * 2016-08-31 2017-01-18 腾讯数码(天津)有限公司 Interaction method, device and system of live streaming room
CN107222754A (en) * 2017-05-27 2017-09-29 武汉斗鱼网络科技有限公司 Present gives Notification Method, device and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887558A (en) * 2009-05-14 2010-11-17 北京闻言科技有限公司 Technology for collecting commodities in mobile commerce
CN107038065A (en) * 2017-03-01 2017-08-11 武汉斗鱼网络科技有限公司 Information processing method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152262A1 (en) * 2001-04-17 2002-10-17 Jed Arkin Method and system for preventing the infringement of intellectual property rights
US9065869B2 (en) * 2011-10-08 2015-06-23 Broadcom Corporation Social network device memberships and applications
CN203773549U (en) * 2013-10-25 2014-08-13 上海华力创通半导体有限公司 Chip identifier-based software security application device
CN104935578A (en) * 2015-05-04 2015-09-23 广州唯品会信息科技有限公司 Website malicious attack prevention method and system
CN105491458A (en) * 2015-11-27 2016-04-13 武汉斗鱼网络科技有限公司 Optimization method for speaking time of barrage in live website
CN105791093A (en) * 2016-04-15 2016-07-20 广州酷狗计算机科技有限公司 Virtual goods presenting method and device
CN106022826A (en) * 2016-05-18 2016-10-12 武汉斗鱼网络科技有限公司 Cheating user recognition method and system in webcast platform
CN106060057A (en) * 2016-06-17 2016-10-26 武汉斗鱼网络科技有限公司 System and method for video live broadcast website to generate white list based on user barrage behavior
CN106228410A (en) * 2016-07-29 2016-12-14 武汉斗鱼网络科技有限公司 Virtual present task anti-brush system and method in a kind of live platform
CN106341695A (en) * 2016-08-31 2017-01-18 腾讯数码(天津)有限公司 Interaction method, device and system of live streaming room
CN107222754A (en) * 2017-05-27 2017-09-29 武汉斗鱼网络科技有限公司 Present gives Notification Method, device and server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881934A (en) * 2018-04-10 2018-11-23 武汉斗鱼网络科技有限公司 A kind of barrage verification method, computer equipment and storage medium
CN108881934B (en) * 2018-04-10 2020-09-08 武汉斗鱼网络科技有限公司 Barrage verification method, computer equipment and storage medium
CN112449204A (en) * 2019-08-30 2021-03-05 武汉斗鱼网络科技有限公司 Method and related device for obfuscating data
CN112449204B (en) * 2019-08-30 2022-09-09 武汉斗鱼网络科技有限公司 Method and related device for obfuscating data
CN110933113A (en) * 2019-12-30 2020-03-27 腾讯科技(深圳)有限公司 Block chain-based interactive behavior detection method, device, equipment and storage medium
CN110933113B (en) * 2019-12-30 2021-04-09 腾讯科技(深圳)有限公司 Block chain-based interactive behavior detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107770161B (en) 2019-11-15
WO2019071859A1 (en) 2019-04-18

Similar Documents

Publication Publication Date Title
CN107770161A (en) The method and device of brush present is prevented in a kind of live platform
CN108734028B (en) Data management method based on block chain, block chain link point and storage medium
CN110830735B (en) Video generation method and device, computer equipment and storage medium
CN108156507A (en) Virtual objects presentation method, device and storage medium
CN105262588B (en) Login method, account management server based on dynamic password and mobile terminal
CN107801059B (en) A kind of method for authenticating and server
CN108206972B (en) Direct broadcasting room popularity processing method, device, server and storage medium
CN108900559A (en) Management method, device, computer equipment and the storage medium of logging on authentication
CN107484032B (en) Prevent the verification method brushed and device
CN105435451A (en) Game cheating recognizing and processing method and device, system and server
CN108260015B (en) Voting data processing method and device and electronic equipment
CN108512814A (en) media data processing method, device and system
CN108734493B (en) Advertisement targeted delivery control method, monitoring method and device
CN107679149A (en) A kind of data processing method and server
CN108881966A (en) A kind of information processing method and relevant device
CN107733883A (en) A kind of method and device for detecting batch registration account
CN108024144A (en) Video broadcasting method, terminal and computer-readable recording medium
CN110807209B (en) Data processing method, device and storage medium
CN108769749A (en) A kind of determining method, client and server for stealing brush data
CN108650526A (en) A kind of recognition methods, computer equipment and storage medium
CN107770162A (en) The method and device of brush present is prevented in a kind of live platform
CN104363257B (en) A kind of user interface data method for refreshing and equipment
CN112346992A (en) Game testing method, device, system, electronic equipment and storage medium
CN108347453A (en) The method and apparatus of blood glucose meter data processing
CN106815741A (en) A kind of advertisement placement method, device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant