WO2019071859A1 - 一种直播平台中防止刷礼物的方法及装置 - Google Patents
一种直播平台中防止刷礼物的方法及装置 Download PDFInfo
- Publication number
- WO2019071859A1 WO2019071859A1 PCT/CN2017/120175 CN2017120175W WO2019071859A1 WO 2019071859 A1 WO2019071859 A1 WO 2019071859A1 CN 2017120175 W CN2017120175 W CN 2017120175W WO 2019071859 A1 WO2019071859 A1 WO 2019071859A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- parameter
- preset
- live broadcast
- field
- client
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Definitions
- Embodiments of the present invention relate to network security technologies, and in particular, to a method and apparatus for preventing a gift from being played in a live broadcast platform.
- the anchor In order to attract viewers to watch, the anchor will open the treasure chest for the audience to receive. The audience can get gifts by receiving the reward of the treasure chest, such as rewarding the audience for long time watching in the room.
- some hackers log in to many live rooms by writing a monitoring program to monitor whether each live broadcast is broadcast. If it is detected that there is a live broadcast, it is detected whether there is a treasure chest that can be collected in the live broadcast room. Once you find out which live room has a treasure chest, use a large number of accounts to log in to the room to pick up the treasure chest, thus gaining a lot of revenue. Therefore, the monitoring program written by the hacker has a very good auxiliary function. It can detect the live room with the treasure chest and directly collect the treasure chest from the live room with the treasure chest.
- a hacker detects a live room with a gift by monitoring the broadcast to the live broadcast, and directs the gift to the live room with the gift to obtain a large amount of income; on the other hand, the hacker uses a large amount of money.
- the account login to the live room to receive the gift, so that the probability of the normal audience receiving gifts is reduced, affecting the user experience of the normal audience.
- the purpose of the present application is to provide a method and apparatus for preventing a gift from being played in a live broadcast platform, which can improve the problem that a hacker can easily know the detection strategy of the server, thereby bypassing the detection strategy and brushing the gift.
- an embodiment of the present application provides a method for preventing a gift from being played in a live broadcast platform, including:
- step S3 specifically includes:
- the viewer account corresponding to the viewer client is frozen
- the first parameter is in the live broadcast information request protocol, it is determined whether the first parameter is correct; if the first parameter is incorrect, the audience account corresponding to the audience client is frozen.
- step S3 further specifically includes:
- the preset control field is not the first preset field and/or the preset data field is not the second preset field, if the first parameter is not included in the live broadcast information request protocol, The viewer account corresponding to the viewer client is frozen; or,
- the preset control field is not the first preset field and/or the preset data field is not the second preset field, if the first parameter is included in the live broadcast information request protocol, then determining Whether the first parameter is correct; if the first parameter is incorrect, the viewer account corresponding to the viewer client is frozen.
- step S3 further includes:
- the preset control field is the first preset field and the preset data field is the second preset field
- the first parameter is included in the live broadcast information request protocol
- the The viewer account corresponding to the viewer client is frozen.
- the step of determining whether the first parameter is correct includes:
- the step of acquiring the parameter content according to the preset data field and the timestamp specifically includes:
- the encrypted new field and preset data field are taken as the parameter content.
- the new field is one or more of a viewer number, a viewer's Token data, and a random number;
- the encryption algorithm is a TAE encryption algorithm or an AES encryption algorithm.
- an embodiment of the present application further provides an apparatus for preventing a gift from being played in a live broadcast platform, including:
- a sending unit configured to send the preset control field and the preset data field to the audience client
- a receiving unit configured to receive an inter-live information request protocol sent by the viewer client according to the preset control field and a preset data field;
- the processing unit is configured to freeze the audience account corresponding to the audience client when determining that the viewer client is a hacker client by determining the first parameter in the live broadcast information request protocol.
- an embodiment of the present application further provides a device for preventing a gift from being played in a live broadcast platform, including:
- At least one processor at least one memory, and a bus;
- the processor and the memory complete communication with each other through the bus;
- the memory stores program instructions executable by the processor, the processor invoking the program instructions to be able to run the method as previously described.
- an embodiment of the present application also provides a computer program comprising program code for performing the method described above.
- an embodiment of the present application further provides a storage medium for storing a computer program as described above.
- the method for preventing a gift in a live broadcast platform sends the preset control field and a preset data field to a viewer client through a server, so that the viewer client can preset the control field according to the preset
- the data field returns a live broadcast information request protocol, and identifies the hacker client and freezes the hacker client according to the live broadcast information request protocol.
- the server controls the viewer client to send by sending a preset control field and a preset data field.
- the information request protocol in the live broadcast room improves the diversity and non-directionality of the information request protocol between the live broadcasts, making it difficult for the hacker's monitoring program to identify the server's anti-brushing strategy; on the other hand, whether the hacking client monitors the live broadcast between broadcasts When the hacker client is identified and frozen, the hacker client cannot further monitor whether there is a gift in the live broadcast, effectively preventing the hacker from brushing the gift, thereby distributing the gift to the normal client, thereby improving the user experience.
- FIG. 1 is a schematic flowchart of an overall method for preventing a gift from being played in a live broadcast platform according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of an overall structure of a device for preventing a gift from being played in a live broadcast platform according to an embodiment of the present invention
- FIG. 3 is a schematic diagram of an overall structure of a device for preventing a gift from being played in a live broadcast platform according to an embodiment of the present invention.
- the client sends a live broadcast information request protocol to the server to request to obtain the live broadcast information, where the live broadcast information includes the video stream address, whether to start the broadcast, and the anchor broadcast. information.
- the anchor information includes a gift name, a number of gifts, a number of viewers, and the like under the anchor account.
- the original live broadcast information request protocol in the prior art is Get/Live/Room/info/roomId, wherein the Get represents an HTTP get interface, and the path of the interface is /Live/Room/info/ The parameter to be filled in is the live room number roomId.
- the hacker's monitoring program also obtains the live broadcast information returned by the server through the live broadcast information request protocol, thereby knowing whether the broadcast between the live broadcasts is started.
- FIG. 1 is a schematic flowchart of a method for preventing a gift from being played in a live broadcast platform according to an embodiment of the present invention, where the method includes: S1, a preset The control field and the preset data field are sent to the audience client; S2, accepting the live broadcast information request protocol sent by the viewer client according to the preset control field and the preset data field; S3, if the live broadcast room is The first parameter in the information request protocol determines that the viewer client is a hacker client, and the viewer account corresponding to the viewer client is frozen.
- the server when the server does not have the control function turned on, all the viewer clients use the original live broadcast information request protocol.
- the server sends the preset control field and the preset data field to the viewer client, so that the viewer client returns the live broadcast information request protocol according to the preset control field and the preset data field.
- the preset control field and the preset data field are preset fields.
- a plurality of preset control fields and a plurality of preset data fields are preset.
- the parameter name is a randomly set string, and the preset data field is randomly set data, and both are irregular.
- the server randomly selects or selects a preset control field and a preset data field from a certain rule to send to the audience client, and may send when the viewer account corresponding to the viewer client logs in.
- the viewer client accepts the preset control field and a preset data field.
- the viewer client is a client used by the viewer to watch the live broadcast.
- the normal viewer client generates a new live broadcast information request protocol according to the preset control field and the preset data field, and sends the new live broadcast information request protocol to the server. Since the hacker's monitoring program is not a normal audience client of the live broadcast platform, but the script program is used, the original live broadcast information request protocol is used to send the original live broadcast information request protocol to the server. Receiving, by the server, the live broadcast information request protocol sent by the viewer client according to the preset control field and the preset data field, where the audience client includes a normal audience client and a hacker client, and the hacker client is a hacker Monitor.
- the first parameter is that after the server starts the control function, the normal viewer client sends a new inter-live information request protocol, which is increased compared to the live broadcast information request protocol sent by the viewer client before the server starts the control function.
- the server determines whether the audience client is a hacker client by determining a first parameter in the live broadcast information request protocol. Since the normal viewer client sends a new live broadcast information request protocol, the hacker client sends the original live broadcast information request protocol. Therefore, if the server receives the original live broadcast information request protocol, it determines that the viewer client that sends the live broadcast information request protocol is a hacker client.
- the viewer account corresponding to the viewer client is recorded, thereby freezing the browser account, so that the hacker's monitoring program cannot monitor whether there is a gift in the live room, so that Gifts in the live broadcast platform are assigned to normal viewers.
- the preset control field is represented by 2 digits
- the preset data field is represented by 8 digits.
- the field sent by the server is "01 12345678”
- "01” is the default control field
- "12345678” is the default data field
- the normal viewer client obtains the parameter name corresponding to the preset control field "01”.
- Tea is a TEA encryption algorithm
- a timestamp time is used as a key of the encryption algorithm.
- Tea is a Tea encryption algorithm
- a timestamp time is used as a key of the encryption algorithm.
- This embodiment is not limited to the preset control field, the preset data field, the encryption algorithm, and the new field in the example.
- the server may also send other preset control fields and preset data fields, and the normal viewer's client generates a new live broadcast information request protocol using other encryption algorithms and new fields.
- the preset control field and the preset data field are sent by the server to the viewer client, so that the viewer client returns the live information request protocol according to the preset control field and the preset data field, according to the
- the live broadcast information request protocol identifies the hacker client and freezes the hacker client.
- the server controls the live broadcast information request protocol sent by the viewer client by sending a preset control field and a preset data field, thereby improving the live broadcast room.
- the diversity and non-directionality of the information request protocol make it difficult for the hacker's monitoring program to identify the server's anti-brushing strategy.
- the hacking client monitors whether the live broadcast is broadcast, it identifies and freezes the hacker client and makes the hacker The client cannot further monitor whether there is a gift in the live broadcast room, effectively preventing the hacker from brushing the gift, thereby distributing the gift to the normal client, thereby improving the user experience.
- the step S3 in the embodiment includes: if there is no first parameter in the live broadcast information request protocol, the viewer account corresponding to the audience client is frozen; or If the first parameter is in the live broadcast information request protocol, it is determined whether the first parameter is correct. If the first parameter is incorrect, the audience account corresponding to the audience client is frozen.
- the server receives the live broadcast information request protocol sent by the viewer client, and determines whether the first parameter is included in the live broadcast information request protocol. If there is no first parameter in the live broadcast information request protocol, the viewer client is known as a hacker client, and the viewer account corresponding to the viewer client is frozen. If the first parameter is included in the live broadcast information request protocol, the viewer client is notified that the viewer client is a normal viewer client, and the server sends the live broadcast information to the viewer client.
- step S3 in this embodiment further includes: when the preset control field is not the first preset field and/or the preset data field is not the second preset field. And if the first parameter is not included in the live broadcast information request protocol, the audience account corresponding to the audience client is frozen; or, when the preset control field is not the first preset field and/or If the preset data field is not the second preset field, if the first parameter is included in the live broadcast information request protocol, it is determined whether the first parameter is correct; if the first parameter is incorrect, Then, the viewer account corresponding to the viewer client is frozen.
- the first preset field and the second preset field are preset fields.
- the server controls the normal viewer client to send a new live broadcast information request protocol, and controls the normal viewer client to send the original live broadcast information request protocol
- the preset control field sent by the server is the first preset
- the field and the preset data field are the second preset field
- the normal viewer client sends the original live broadcast information request protocol according to the first preset field and the second preset field.
- the preset control field is not the first preset field and/or the preset data field is not the second preset field
- the normal viewer client sends a new live broadcast information request protocol.
- the first parameter is included in the new live broadcast information request protocol.
- the viewer client is a hacker client. If the first parameter is included in the live broadcast information request protocol, it is required to further determine whether the first parameter is correct. If the first parameter is incorrect, the audience account corresponding to the audience client is frozen.
- the server when the server sends a preset control field and the preset data field controls the normal viewer client to send a new live broadcast information request protocol, if it is determined that the received viewer client sends the live broadcast information request protocol, a first parameter, wherein the viewer client is a hacker client, and if the first parameter is further determined, whether the first parameter is correctly learned whether the viewer client is a hacker client, thereby implementing The hacker client is more accurately identified.
- the step S3 in the embodiment further includes: when the preset control field is the first preset field and the preset data field is the second preset field. If there is a first parameter in the live broadcast information request protocol, the viewer account corresponding to the viewer client is frozen.
- the first preset field and the second preset field are preset fields.
- the preset control field sent by the server is the first preset field and the preset data field is the second preset field
- the normal viewer client sends the original according to the first preset field and the second preset field.
- the first parameter is not included in the original live broadcast information request protocol. If there is a first parameter in the live broadcast information request protocol, it is learned whether the viewer client is a hacker client, and the viewer account corresponding to the viewer client is frozen.
- the original live broadcast information request protocol is sent to the server as Get/Live/Room/info/roomId. If there is a first parameter in the live broadcast protocol, the viewer client is known as a hacker client.
- the server when the server sends the preset control field and the preset data field to control the normal viewer client to send the original live broadcast information request protocol, if it is determined that the received viewer client sends the live broadcast information request protocol,
- the first parameter is that the viewer client is a hacker client, thereby achieving more accurate identification of the hacker client.
- the step of determining whether the first parameter is correct in the embodiment includes: acquiring a parameter name corresponding to the preset control field; and according to the preset data field and a timestamp, Obtaining a parameter content; obtaining a second parameter according to the parameter name and the parameter content; if the first parameter is different from the second parameter, it is learned that the first parameter is incorrect.
- a correspondence between the preset control field and the parameter name is stored in the database.
- the server acquires a parameter name corresponding to the preset control field. Acquiring the parameter content according to the preset data field and the time stamp; and acquiring the second parameter according to the parameter name and the parameter content.
- the first parameter in the live broadcast information request protocol returned by the client that is received by the server is determined to be the same as the second parameter obtained by the server through calculation. If not, the first parameter is incorrect.
- the method for the server to obtain the parameter name and the parameter content according to the preset control field and the preset data field is the same as the method for the normal client to obtain the parameter name and the parameter content according to the preset control field and the preset data field.
- the step of acquiring the parameter content according to the preset data field and the timestamp in the embodiment includes: acquiring a new field and an encryption algorithm corresponding to the preset control field; The timestamp is used as a key of the encryption algorithm to encrypt the new field and the preset data field; the encrypted new field and the preset data field are used as the parameter content.
- the database stores a correspondence between the preset control field and the new field, and a correspondence between the preset control field and the encryption algorithm.
- the new field in the embodiment is one or more of a viewer number, a Token data of a viewer, and a random number;
- the encryption algorithm is a TAE encryption algorithm or an AES encryption algorithm.
- FIG. 2 is a schematic diagram of an overall structure of a device for preventing a gift from being played in a live broadcast platform according to an embodiment of the present invention, where the device includes a sending unit 1, and receives Unit 2 and processing unit 3, wherein:
- the sending unit 1 is configured to send a preset control field and a preset data field to the audience client
- the receiving unit 2 is configured to receive, according to the preset control field and the preset data field, the audience client a live broadcast information request protocol
- the processing unit 3 is configured to: when the first client of the live broadcast information request protocol is determined, to confirm that the viewer client is a hacker client, the viewer client is corresponding to The viewer account is frozen.
- the server when the server does not have the control function turned on, all the viewer clients use the original live broadcast information request protocol.
- the server sends the preset control field and the preset data field to the viewer client, so that the viewer client returns the live information request protocol according to the preset control field and the preset data field.
- the preset control field and the preset data field are preset fields.
- a plurality of preset control fields and a plurality of preset data fields are preset.
- the parameter name is a randomly set string, and the preset data field is randomly set data, and both are irregular.
- the sending unit 1 randomly selects or selects a preset control field and a preset data field from a certain rule to send to the audience client, and may send when the viewer account corresponding to the viewer client logs in.
- the viewer client accepts the preset control field and a preset data field.
- the viewer client is a client used by the viewer to watch the live broadcast.
- the normal viewer client generates a new live broadcast information request protocol according to the preset control field and the preset data field, and sends the new live broadcast information request protocol to the server. Since the hacker's monitoring program is not a normal audience client of the live broadcast platform, but the script program is used, the original live broadcast information request protocol is used to send the original live broadcast information request protocol to the server.
- the receiving unit 2 receives an inter-live information request protocol sent by the viewer client according to the preset control field and a preset data field, where the viewer client includes a normal viewer client and a hacker client, and the hacker The client is a hacker's monitor.
- the first parameter is a parameter added by the normal viewer client after the server opens the control function, and the new live broadcast information request protocol is compared with the live broadcast information request protocol sent by the viewer client before the server starts the control function.
- the server determines whether the audience client is a hacker client by determining a first parameter in the live broadcast information request protocol. Since the normal viewer client sends a new live broadcast information request protocol, the hacker client sends the original live broadcast information request protocol.
- the processing unit 3 determines that the audience client that sends the live broadcast information request protocol is a hacker client.
- the viewer account corresponding to the viewer client is recorded, thereby freezing the browser account, so that the hacker's monitoring program cannot monitor whether there is a gift in the live room, so that Gifts in the live broadcast platform are assigned to normal viewers.
- the preset control field and the preset data field are sent by the server to the viewer client, so that the viewer client returns the live information request protocol according to the preset control field and the preset data field, according to the
- the live broadcast information request protocol identifies the hacker client and freezes the hacker client.
- the server controls the live broadcast information request protocol sent by the viewer client by sending a preset control field and a preset data field, thereby improving the live broadcast room.
- the diversity and non-directionality of the information request protocol make it difficult for the hacker's monitoring program to identify the server's anti-brushing strategy.
- the hacking client monitors whether the live broadcast is broadcast, it identifies and freezes the hacker client and makes the hacker The client cannot further monitor whether there is a gift in the live broadcast room, effectively preventing the hacker from brushing the gift, thereby distributing the gift to the normal client, thereby improving the user experience.
- the processing unit in the embodiment is specifically configured to: when there is no first parameter in the live broadcast information request protocol, freeze the audience account corresponding to the audience client; or If the first parameter is in the live broadcast information requesting protocol, it is determined whether the first parameter is correct. If the first parameter is incorrect, the audience account corresponding to the audience client is frozen.
- the processing unit in the embodiment is further configured to: when the preset control field is not the first preset field and/or the preset data field is not the second preset If the first parameter is not included in the live broadcast information request protocol, the viewer account corresponding to the viewer client is frozen; or when the preset control field is not the first preset field and/or Or if the preset data field is not the second preset field, if the first parameter is included in the live broadcast information request protocol, determining whether the first parameter is correct; if the first parameter is incorrect , the viewer account corresponding to the viewer client is frozen.
- the processing unit in the embodiment is further configured to: when the preset control field is the first preset field, and the preset data field is the second preset field If the first parameter is included in the live broadcast information request protocol, the audience account corresponding to the audience client is frozen.
- the processing unit in the embodiment is further configured to: obtain a parameter name corresponding to the preset control field; and obtain parameter content according to the preset data field and a timestamp; The parameter name and the parameter content acquire the second parameter; if the first parameter is different from the second parameter, it is learned that the first parameter is incorrect.
- the processing unit in the embodiment is further configured to: acquire a new field and an encryption algorithm corresponding to the preset control field; use the timestamp as a key pair of the encryption algorithm.
- the new field and the preset data field are encrypted; the encrypted new field and the preset data field are used as the parameter content.
- the new field in the embodiment is one or more of a viewer number, a Token data of a viewer, and a random number;
- the encryption algorithm is a TAE encryption algorithm or an AES encryption algorithm.
- FIG. 3 is a schematic diagram of an overall structure of a device for preventing a gift from being played in a live broadcast platform according to an embodiment of the present invention.
- the device includes: at least one processor 31 and at least one memory 32. And bus 33; wherein
- the processor 31 and the memory 32 complete communication with each other through the bus 33;
- the memory 32 stores program instructions that are executable by the processor 31, and the processor instructs the program instructions to perform the methods provided by the foregoing method embodiments, for example, including: S1, a preset control field and The preset data field is sent to the viewer client; S2, accepting the live broadcast information request protocol sent by the viewer client according to the preset control field and the preset data field; S3, if the information request protocol is obtained through the live broadcast
- the first parameter in the determination is to confirm that the viewer client is a hacker client, and the viewer account corresponding to the viewer client is frozen.
- the embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer
- the method provided by the foregoing method embodiments is performed, for example, including: S1, sending a preset control field and a preset data field to the audience client; S2, accepting the audience client according to the preset control field and the pre- Setting a live broadcast information request protocol sent by the data field; S3, if the first parameter in the live broadcast information request protocol is judged to confirm that the viewer client is a hacker client, the viewer client is correspondingly The viewer account is frozen.
- the embodiment provides a non-transitory computer readable storage medium, the non-transitory computer readable storage medium storing computer instructions, the computer instructions causing the computer to perform the methods provided by the foregoing method embodiments, including, for example, S1, the preset control field and the preset data field are sent to the audience client; S2, accepting the live broadcast information request protocol sent by the viewer client according to the preset control field and the preset data field; S3, if By determining the first parameter in the live broadcast information request protocol, and confirming that the viewer client is a hacker client, the viewer account corresponding to the viewer client is frozen.
- the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
- the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
- the device embodiments for preventing the gift from being brushed in the live broadcast platform described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as the unit may be or may be It is not a physical unit, it can be located in one place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
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
本发明的实施例提供一种直播平台中防止刷礼物的方法及装置,所述方法包括:S1,将预设控制字段和预设数据字段发送给观众客户端;S2,接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;S3,若通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端,则将所述观众客户端对应的观众账号冻结。本发明一方面,使用预设控制字段和预设数据字段,提高直播间信息请求协议的多样性和不定向性,使黑客很难识别防刷策略;另一方面,在黑客监控直播间是否开播时,识别并冻结黑客的观众账号,使黑客无法进一步监控直播间是否有礼物,有效防止黑客刷礼物,将礼物分配给正常的观众,提高用户体验。
Description
交叉引用
本申请引用于2015年10月09日提交的专利名称为“一种直播平台中防止刷礼物的方法及装置”的第2017109303003号中国专利申请,其通过引用被全部并入本申请。
本发明的实施例涉及网络安全技术,尤其涉及一种直播平台中防止刷礼物的方法及装置。
随着网络交互平台的发展,越来越多的用户通过登录网络交互平台进行交流。其中,网络直播是非常受广大用户欢迎的应用。
直播平台为了吸引观众进行观看,主播会开启宝箱以供观众领取,观众通过领取宝箱的奖励可以获得礼物,如针对房间内长时间观看的观众给予奖励。然而,一些黑客通过编写监控程序登录到很多直播间,监控各直播间是否开播。如果检测到有直播间开播则,则检测开播的直播间是否有可以领取的宝箱。一旦发现哪个直播间有宝箱,则使用大量的账号登录到该房间领取宝箱,从而获取大量收益。因此,黑客编写的监控程序具有很好的辅助作用,能检测到有宝箱的直播间,直接到有宝箱的直播间领取宝箱。
综上所述,现有技术一方面黑客通过在监控到直播间开播的情况下检测出有礼物的直播间,定向到有礼物的直播间领取礼物,获取大量收益;另一方面,黑客使用大量账号登录直播间领取礼物,使得正常观众领取礼物的概率降低,影响正常观众的用户体验。
发明内容
本申请的目的在于,提供一种直播平台中防止刷礼物的方法及装置,可以改善黑客容易知道服务器的检测策略,从而绕过检测策略进行刷礼物 的问题。
第一方面,本申请的实施例提供了提供一种直播平台中防止刷礼物的方法,包括:
S1,将预设控制字段和预设数据字段发送给观众客户端;
S2,接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;
S3,若通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端,则将所述观众客户端对应的观众账号冻结。
具体地,所述步骤S3具体包括:
若所述直播间信息请求协议中没有第一参数,则将所述观众客户端对应的观众账号冻结;或者,
若所述直播间信息请求协议中有所述第一参数,则判断所述第一参数是否正确;若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
具体地,所述步骤S3进一步具体包括:
当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,若所述直播间信息请求协议中没有所述第一参数,则将所述观众客户端对应的观众账号冻结;或者,
当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,若所述直播间信息请求协议中有所述第一参数,则判断所述第一参数是否正确;若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
具体地,所述步骤S3还包括:
当所述预设控制字段为所述第一预设字段且所述预设数据字段为所述第二预设字段时,若所述直播间信息请求协议中有第一参数,则将所述观众客户端对应的观众账号冻结。
具体地,判断所述第一参数是否正确的步骤具体包括:
获取所述预设控制字段对应的参数名称;
根据所述预设数据字段和时间戳,获取参数内容;
根据所述参数名称和参数内容,获取第二参数;
若所述第一参数与所述第二参数不相同,则获知所述第一参数不正确。
具体地,根据所述预设数据字段和时间戳,获取参数内容的步骤具体包括:
获取所述预设控制字段对应的新字段和加密算法;
使用所述时间戳作为所述加密算法的密钥对所述新字段和预设数据字段进行加密;
将加密后的所述新字段和预设数据字段作为所述参数内容。
具体地,所述新字段为观众编号、观众的Token数据和随机数中的一种或多种;
所述加密算法为TAE加密算法或AES加密算法。
第二方面,本申请的实施例还提供了提供一种直播平台中防止刷礼物的装置,包括:
发送单元,用于将预设控制字段和预设数据字段发送给观众客户端;
接收单元,用于接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;
处理单元,用于在通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端时,将所述观众客户端对应的观众账号冻结。
第三方面,本申请的实施例还提供了一种直播平台中防止刷礼物的设备,包括:
至少一个处理器、至少一个存储器和总线;其中,
所述处理器和存储器通过所述总线完成相互间的通信;
所述存储器存储有可被所述处理器运行的程序指令,所述处理器调用所述程序指令能够运行如前所述的方法。
第四方面,本申请的实施例还提供了一种计算机程序,包括程序代码,所述程序代码用于执行上述所述的方法。
第五方面,本申请的实施例还提供了一种存储介质,用于存储如前所述的计算机程序。
本申请实施例提供的直播平台中防止刷礼物的方法通过服务器向观众客户端发送所述预设控制字段和预设数据字段,以供所述观众客户端根据所述预设控制字段和预设数据字段返回直播间信息请求协议,根据所述直播间信息请求协议识别黑客客户端和对黑客客户端进行冻结,一方面,服务器通过发送预设控制字段和预设数据字段控制观众客户端发送的直播间信息请求协议,从而提高了直播间信息请求协议的多样性和不定向性,使得黑客的监控程序很难识别出服务器的防刷策略;另一方面,在黑客客户端监控直播间是否开播时,识别并冻结黑客客户端,使黑客客户端无法进一步监控直播间是否有礼物,有效防止黑客刷礼物,从而将礼物分配给正常的客户端,提高了用户体验。
图1为本发明实施例提供的直播平台中防止刷礼物的方法整体流程示意图;
图2为本发明实施例提供的直播平台中防止刷礼物的装置整体结构示意图;
图3为本发明实施例提供的直播平台中防止刷礼物的设备整体结构示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
先介绍黑客客户端如何获知直播间是否开播。
具体地,当观众打开直播平台客户端进入直播间观看直播时,客户端会向服务器发送一条直播间信息请求协议以请求获取直播间信息,所述直播间信息包括视频流地址、是否开播和主播信息。所述主播信息包括主播账户下的礼物名称、礼物数量、观众数目等。例如,所述现有技术中原来 的直播间信息请求协议为Get/Live/Room/info/roomId,其中,所述Get表示HTTP的get接口,所述接口的路径为/Live/Room/info/,填入的参数为直播间编号roomId。黑客的监控程序也是通过所述直播间信息请求协议获取服务器返回的直播间信息,从而获知直播间是否开播。
在本发明的一个实施例中提供一种直播平台中防止刷礼物的方法,图1为本发明实施例提供的直播平台中防止刷礼物的方法整体流程示意图,该方法包括:S1,将预设控制字段和预设数据字段发送给观众客户端;S2,接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;S3,若通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端,则将所述观众客户端对应的观众账号冻结。
具体地,在服务器没有开启控制功能时,所有的观众客户端使用原来的直播间信息请求协议。服务器开启控制功能之后,服务器向观众客户端发送所述预设控制字段和预设数据字段,以供所述观众客户端根据所述预设控制字段和预设数据字段返回直播间信息请求协议。S1中,所述预设控制字段和预设数据字段为预先设定的字段。预先设定有多种预设控制字段和多种预设数据字段。所述参数名称为随机设定的字符串,所述预设数据字段为随机设定的数据,两者均没有规律。服务器从中随机选择或按某种规则从中选择一种预设控制字段和一种预设数据字段发送给观众客户端,可以在所述观众客户端对应的观众账号登录时进行发送。所述观众客户端接受所述预设控制字段和预设数据字段。所述观众客户端为观众观看直播所使用的客户端。
S2,正常的观众客户端根据所述预设控制字段和预设数据字段生成新的直播间信息请求协议,将所述新的直播间信息请求协议发送给服务器。由于黑客的监控程序不是直播平台的正常观众客户端,而使脚本程序,所以还是使用原来的直播间信息请求协议,将原来的直播间信息请求协议发送给服务器。服务器接收所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议,所述观众客户端包括正常的观众客户端和黑客客户端,所述黑客客户端为黑客的监控程序。
S3中,所述第一参数为服务器开启控制功能后正常观众客户端发送新的所述直播间信息请求协议相比于服务器开启控制功能前观众客户端发送的所述直播间信息请求协议所增加的参数。服务器通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端是否为黑客客户端。由于正常的观众客户端发送的是新的直播间信息请求协议,而黑客客户端发送的是原来的直播间信息请求协议。因此,服务器如果接收到原来的直播间信息请求协议,则判断发送所述直播间信息请求协议的观众客户端为黑客客户端。若判断所述观众客户端为黑客客户端,则记录所述观众客户端对应的观众账号,从而对其进行冻结,使得所述黑客的监控程序无法监控直播间中是否有礼物可以领取,从而使直播平台中的礼物分配给正常的观众。
例如,所述预设控制字段用2位数表示,所述预设数据字段用8位数表示。当服务器下发的字段为“01 12345678”时,其中“01”为预设控制字段,“12345678”为预设数据字段,正常的观众客户端获取预设控制字段“01”对应的参数名称“Data”。对预设数据字段“12345678”和时间戳time进行加密获取参数内容Encryptdata,即Encryptdata=Tea.encrypt(12345678,time)。其中,Tea为TEA加密算法,使用时间戳time作为所述加密算法的密钥。所述客户端将所述参数名称和参数内容加入原来的直播间信息请求协议中形成新的直播间信息请求协议,所述新的直播间信息请求协议为Get/Live/Room/info/roomId?Data=Encryptdata。
当服务器下发的字段为“02 44445555”时,其中“02”为预设控制字段,“44445555”为预设数据字段,正常的观众客户端获取预设控制字段“02”对应的参数名称“userinfo”,对预设数据字段“44445555”、时间戳time和新字段用户编号UID一起进行加密获取参数内容Encryptdata,即Encryptdata=Tea.encrypt(44445555+UID,time)。加入新字段的目的是期待数据加密的可变化性和无规律性,从而保证了新的直播间信息请求协议的多样性,使得防刷策略不容易被黑客识别。其中,Tea为Tea加密算法,使用时间戳time作为所述加密算法的密钥。所述客户端将所述参数名称和参数内容加入原来的直播间信息请求协议中形成新的直播间信息请求协议,所述新的直播间信息请求协议为Get /Live/Room/info/roomId?userinfo=Encryptdata。
当服务器下发的字段为“03 88888888”时,其中“03”为预设控制字段,“88888888”为预设数据字段,正常的观众客户端获取预设控制字段“03”对应的参数名称“member”,对预设数据字段“88888888”、时间戳time和新字段用户的token数据一起进行加密获取参数内容Encryptdata,即Encryptdata=AES.encrypt(44445555+token,time)。加入新字段的目的是期待数据加密的可变化性和无规律性,从而保证了新的直播间信息请求协议的多样性,使得防刷策略不容易被黑客识别。其中,AES为AES加密算法,使用时间戳time作为所述加密算法的密钥。所述客户端将所述参数名称和参数内容加入原来的直播间信息请求协议中形成新的直播间信息请求协议,所述新的直播间信息请求协议为Get/Live/Room/info/roomId?member=Encryptdata。本实施例不限于举例中的预设控制字段、预设数据字段、加密算法和新字段。服务器还可以发送其他的预设控制字段和预设数据字段,正常观众的客户端使用其他加密算法和新字段生成新的直播间信息请求协议。
本实施例通过服务器向观众客户端发送所述预设控制字段和预设数据字段,以供所述观众客户端根据所述预设控制字段和预设数据字段返回直播间信息请求协议,根据所述直播间信息请求协议识别黑客客户端和对黑客客户端进行冻结,一方面,服务器通过发送预设控制字段和预设数据字段控制观众客户端发送的直播间信息请求协议,从而提高了直播间信息请求协议的多样性和不定向性,使得黑客的监控程序很难识别出服务器的防刷策略;另一方面,在黑客客户端监控直播间是否开播时,识别并冻结黑客客户端,使黑客客户端无法进一步监控直播间是否有礼物,有效防止黑客刷礼物,从而将礼物分配给正常的客户端,提高了用户体验。
在上述实施例的基础上,本实施例中所述步骤S3具体包括:若所述直播间信息请求协议中没有第一参数,则将所述观众客户端对应的观众账号冻结;或者,若所述直播间信息请求协议中有所述第一参数,则判断所述第一参数是否正确;若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
具体地,服务器接收观众客户端发送的所述直播间信息请求协议,判断所述直播间信息请求协议中是否有所述第一参数。如果所述直播间信息请求协议中没有第一参数,则获知所述观众客户端为黑客客户端,将所述观众客户端对应的观众账号冻结。如果所述直播间信息请求协议中有所述第一参数,则获知所述观众客户端为正常的观众客户端,服务器将直播间信息发送给所述观众客户端。
本实施例通过先简单通过判断观众客户端发送的直播间信息请求协议中是否有第一参数识别黑客客户端,在识别不出来的情况下,进一步通过判断第一参数是否正确识别黑客客户端,大大减少了运算量,提高了运算速度。
在上述实施例的基础上,本实施例中所述步骤S3进一步具体包括:当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,若所述直播间信息请求协议中没有所述第一参数,则将所述观众客户端对应的观众账号冻结;或者,当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,若所述直播间信息请求协议中有所述第一参数,则判断所述第一参数是否正确;若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
具体地,所述第一预设字段和所述第二预设字段为预先设定的字段。在服务器既控制正常的观众客户端发送新的直播间信息请求协议,又控制正常的观众客户端发送原来的直播间信息请求协议的情况下,当服务器发送的预设控制字段为第一预设字段且预设数据字段为第二预设字段时,正常的观众客户端根据所述第一预设字段和第二预设字段后发送原来的直播间信息请求协议。当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,正常的观众客户端发送新的直播间信息请求协议。所述新的直播间信息请求协议中有所述第一参数。若所述直播间信息请求协议中没有第一参数,则获知所述观众客户端为黑客客户端。若所述直播间信息请求协议中有所述第一参数,需要进一步判断所述第一参数是否正确,若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
本实施例中当服务器发送预设控制字段和预设数据字段控制正常的观众客户端发送新的直播间信息请求协议时,若判断接收的观众客户端发送的直播间信息请求协议中没有所述第一参数,则获知所述观众客户端为黑客客户端,以及在有所述第一参数情况下进一步判断所述第一参数是否正确获知所述观众客户端是否为黑客客户端,从而实现对黑客客户端更精确的识别。
在上述实施例的基础上,本实施例中所述步骤S3还包括:当所述预设控制字段为所述第一预设字段且所述预设数据字段为所述第二预设字段时,若所述直播间信息请求协议中有第一参数,则将所述观众客户端对应的观众账号冻结。
具体地,所述第一预设字段和所述第二预设字段为预先设定的字段。当服务器发送的预设控制字段为第一预设字段且预设数据字段为第二预设字段时,正常的观众客户端根据所述第一预设字段和第二预设字段后发送原来的直播间信息请求协议,原来的直播间信息请求协议中没有所述第一参数。若所述直播间信息请求协议中有第一参数,则获知所述观众客户端是否为黑客客户端,将所述观众客户端对应的观众账号冻结。
例如,当服务器下发的字段为“00 00000000”时,其中“00”为预设控制字段,“00000000”为预设数据字段,正常的观众客户端根据接收的所述预设控制字段“00”和预设数据字段“00000000”,向服务器发送原来的直播间信息请求协议为Get/Live/Room/info/roomId。若所述直播间协议中有第一参数,则获知观众客户端为黑客客户端。
本实施例中当服务器发送预设控制字段和预设数据字段控制正常的观众客户端发送原来的直播间信息请求协议时,若判断接收的观众客户端发送的直播间信息请求协议中有所述第一参数,则获知所述观众客户端为黑客客户端,从而实现对黑客客户端更精确的识别。
在上述任一实施例的基础上,本实施例中判断所述第一参数是否正确的步骤具体包括:获取所述预设控制字段对应的参数名称;根据所述预设数据字段和时间戳,获取参数内容;根据所述参数名称和参数内容,获取第二参数;若所述第一参数与所述第二参数不相同,则获知所述第一参数 不正确。
具体地,数据库中存储有所述预设控制字段与参数名称之间的对应关系。服务器获取所述预设控制字段对应的参数名称。根据所述预设数据字段和时间戳,获取参数内容;根据所述参数名称和参数内容,获取第二参数。判断服务器接收的客户端返回的直播间信息请求协议中的第一参数与服务器通过计算获取的第二参数是否相同,如果不同,则获知所述第一参数不正确。所述服务器根据所述预设控制字段和预设数据字段获取参数名称和参数内容的方法与正常客户端根据所述预设控制字段和预设数据字段获取参数名称和参数内容的方法相同。
在上述任一实施例的基础上,本实施例中根据所述预设数据字段和时间戳,获取参数内容的步骤具体包括:获取所述预设控制字段对应的新字段和加密算法;使用所述时间戳作为所述加密算法的密钥对所述新字段和预设数据字段进行加密;将加密后的所述新字段和预设数据字段作为所述参数内容。
具体地,数据库中存储有所述预设控制字段与新字段之间的对应关系,和所述预设控制字段和加密算法之间的对应关系。
在上述任一实施例的基础上,本实施例中所述新字段为观众编号、观众的Token数据和随机数中的一种或多种;所述加密算法为TAE加密算法或AES加密算法。
在本发明的另一个实施例中提供一种直播平台中防止刷礼物的装置,图2为本发明实施例提供的直播平台中防止刷礼物的装置整体结构示意图,该装置包括发送单元1、接收单元2和处理单元3,其中:
所述发送单元1用于将预设控制字段和预设数据字段发送给观众客户端;所述接收单元2用于接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;所述处理单元3用于在通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端时,将所述观众客户端对应的观众账号冻结。
具体地,在服务器没有开启控制功能时,所有的观众客户端使用原来的直播间信息请求协议。服务器开启控制功能之后,服务器向观众客户端 发送所述预设控制字段和预设数据字段,以供所述观众客户端根据所述预设控制字段和预设数据字段返回直播间信息请求协议。所述预设控制字段和预设数据字段为预先设定的字段。预先设定有多种预设控制字段和多种预设数据字段。所述参数名称为随机设定的字符串,所述预设数据字段为随机设定的数据,两者均没有规律。所述发送单元1从中随机选择或按某种规则从中选择一种预设控制字段和一种预设数据字段发送给观众客户端,可以在所述观众客户端对应的观众账号登录时进行发送。所述观众客户端接受所述预设控制字段和预设数据字段。所述观众客户端为观众观看直播所使用的客户端。
正常的观众客户端根据所述预设控制字段和预设数据字段生成新的直播间信息请求协议,将所述新的直播间信息请求协议发送给服务器。由于黑客的监控程序不是直播平台的正常观众客户端,而使脚本程序,所以还是使用原来的直播间信息请求协议,将原来的直播间信息请求协议发送给服务器。所述接收单元2接收所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议,所述观众客户端包括正常的观众客户端和黑客客户端,所述黑客客户端为黑客的监控程序。
所述第一参数为服务器开启控制功能后正常观众客户端发送新的所述直播间信息请求协议相比于服务器开启控制功能前观众客户端发送的所述直播间信息请求协议所增加的参数。服务器通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端是否为黑客客户端。由于正常的观众客户端发送的是新的直播间信息请求协议,而黑客客户端发送的是原来的直播间信息请求协议。所述处理单元3判断发送所述直播间信息请求协议的观众客户端为黑客客户端。若判断所述观众客户端为黑客客户端,则记录所述观众客户端对应的观众账号,从而对其进行冻结,使得所述黑客的监控程序无法监控直播间中是否有礼物可以领取,从而使直播平台中的礼物分配给正常的观众。
本实施例通过服务器向观众客户端发送所述预设控制字段和预设数据字段,以供所述观众客户端根据所述预设控制字段和预设数据字段返回直播间信息请求协议,根据所述直播间信息请求协议识别黑客客户端和对黑客客户端进行冻结,一方面,服务器通过发送预设控制字段和预设数据 字段控制观众客户端发送的直播间信息请求协议,从而提高了直播间信息请求协议的多样性和不定向性,使得黑客的监控程序很难识别出服务器的防刷策略;另一方面,在黑客客户端监控直播间是否开播时,识别并冻结黑客客户端,使黑客客户端无法进一步监控直播间是否有礼物,有效防止黑客刷礼物,从而将礼物分配给正常的客户端,提高了用户体验。
在上述实施例的基础上,本实施例中所述处理单元具体用于:在所述直播间信息请求协议中没有第一参数时,将所述观众客户端对应的观众账号冻结;或者,在所述直播间信息请求协议中有所述第一参数时,判断所述第一参数是否正确;若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
在上述实施例的基础上,本实施例中所述处理单元进一步具体用于:当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,若所述直播间信息请求协议中没有所述第一参数,则将所述观众客户端对应的观众账号冻结;或者,当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,若所述直播间信息请求协议中有所述第一参数,则判断所述第一参数是否正确;若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
在上述实施例的基础上,本实施例中所述处理单元还用于:当所述预设控制字段为所述第一预设字段且所述预设数据字段为所述第二预设字段时,若所述直播间信息请求协议中有第一参数,则将所述观众客户端对应的观众账号冻结。
在上述各实施例的基础上,本实施例中所述处理单元进一步具体用于:获取所述预设控制字段对应的参数名称;根据所述预设数据字段和时间戳,获取参数内容;根据所述参数名称和参数内容,获取第二参数;若所述第一参数与所述第二参数不相同,则获知所述第一参数不正确。
在上述实施例的基础上,本实施例中所述处理单元进一步具体用于:获取所述预设控制字段对应的新字段和加密算法;使用所述时间戳作为所述加密算法的密钥对所述新字段和预设数据字段进行加密;将加密后的所述新字段和预设数据字段作为所述参数内容。
在上述实施例的基础上,本实施例中所述新字段为观众编号、观众的Token数据和随机数中的一种或多种;所述加密算法为TAE加密算法或AES加密算法。
本实施例提供一种直播平台中防止刷礼物的设备,图3为本发明实施例提供的直播平台中防止刷礼物的设备整体结构示意图,该设备包括:至少一个处理器31、至少一个存储器32和总线33;其中,
所述处理器31和存储器32通过所述总线33完成相互间的通信;
所述存储器32存储有可被所述处理器31执行的程序指令,所述处理器调用所述程序指令能够执行上述各方法实施例所提供的方法,例如包括:S1,将预设控制字段和预设数据字段发送给观众客户端;S2,接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;S3,若通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端,则将所述观众客户端对应的观众账号冻结。
本实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:S1,将预设控制字段和预设数据字段发送给观众客户端;S2,接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;S3,若通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端,则将所述观众客户端对应的观众账号冻结。
本实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行上述各方法实施例所提供的方法,例如包括:S1,将预设控制字段和预设数据字段发送给观众客户端;S2,接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;S3,若通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端,则将所述观众客户端对应的观众账号冻结。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所描述的直播平台中防止刷礼物的设备实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上各实施例仅用以说明本发明的实施例的技术方案,而非对其限制;尽管参照前述各实施例对本发明的实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明的实施例各实施例技术方案的范围。
Claims (11)
- 一种直播平台中防止刷礼物的方法,其特征在于,包括:S1,将预设控制字段和预设数据字段发送给观众客户端;S2,接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;S3,若通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端,则将所述观众客户端对应的观众账号冻结。
- 根据权利要求1所述的方法,其特征在于,所述步骤S3具体包括:若所述直播间信息请求协议中没有第一参数,则将所述观众客户端对应的观众账号冻结;或者,若所述直播间信息请求协议中有所述第一参数,则判断所述第一参数是否正确;若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
- 根据权利要求2所述的方法,其特征在于,所述步骤S3进一步具体包括:当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,若所述直播间信息请求协议中没有所述第一参数,则将所述观众客户端对应的观众账号冻结;或者,当所述预设控制字段不为第一预设字段和/或所述预设数据字段不为第二预设字段时,若所述直播间信息请求协议中有所述第一参数,则判断所述第一参数是否正确;若所述第一参数不正确,则将所述观众客户端对应的观众账号冻结。
- 根据权利要求3所述的方法,其特征在于,所述步骤S3还包括:当所述预设控制字段为所述第一预设字段且所述预设数据字段为所述第二预设字段时,若所述直播间信息请求协议中有第一参数,则将所述观众客户端对应的观众账号冻结。
- 根据权利要求2-4任一所述的方法,其特征在于,判断所述第一参数是否正确的步骤具体包括:获取所述预设控制字段对应的参数名称;根据所述预设数据字段和时间戳,获取参数内容;根据所述参数名称和参数内容,获取第二参数;若所述第一参数与所述第二参数不相同,则获知所述第一参数不正确。
- 根据权利要求5所述的方法,其特征在于,根据所述预设数据字段和时间戳,获取参数内容的步骤具体包括:获取所述预设控制字段对应的新字段和加密算法;使用所述时间戳作为所述加密算法的密钥对所述新字段和预设数据字段进行加密;将加密后的所述新字段和预设数据字段作为所述参数内容。
- 根据权利要求6所述的方法,其特征在于,所述新字段为观众编号、观众的Token数据和随机数中的一种或多种;所述加密算法为TAE加密算法或AES加密算法。
- 一种直播平台中防止刷礼物的装置,其特征在于,包括:发送单元,用于将预设控制字段和预设数据字段发送给观众客户端;接收单元,用于接受所述观众客户端根据所述预设控制字段和预设数据字段发送的直播间信息请求协议;处理单元,用于在通过对所述直播间信息请求协议中的第一参数进行判断,确认所述观众客户端为黑客客户端时,将所述观众客户端对应的观众账号冻结。
- 一种直播平台中防止刷礼物的设备,其特征在于,包括:至少一个处理器、至少一个存储器和总线;其中,所述处理器和存储器通过所述总线完成相互间的通信;所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如权利要求1至7任一所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行如权利要求1至7任一所述的方法。
- 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如权利要求1至7任一所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710930300.3 | 2017-10-09 | ||
CN201710930300.3A CN107770161B (zh) | 2017-10-09 | 2017-10-09 | 一种直播平台中防止刷礼物的方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019071859A1 true WO2019071859A1 (zh) | 2019-04-18 |
Family
ID=61267130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/120175 WO2019071859A1 (zh) | 2017-10-09 | 2017-12-29 | 一种直播平台中防止刷礼物的方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107770161B (zh) |
WO (1) | WO2019071859A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110046079A (zh) * | 2019-04-25 | 2019-07-23 | 广州华多网络科技有限公司 | 网络请求检测方法、装置及设备 |
CN113613028A (zh) * | 2021-08-03 | 2021-11-05 | 北京达佳互联信息技术有限公司 | 直播数据处理方法、装置、终端、服务器及存储介质 |
CN114697688A (zh) * | 2020-12-29 | 2022-07-01 | 阿里巴巴集团控股有限公司 | 直播策略推荐方法、互动方法、装置、设备和存储介质 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881934B (zh) * | 2018-04-10 | 2020-09-08 | 武汉斗鱼网络科技有限公司 | 一种弹幕验证方法、计算机设备和存储介质 |
CN112449204B (zh) * | 2019-08-30 | 2022-09-09 | 武汉斗鱼网络科技有限公司 | 一种混淆数据的方法及相关装置 |
CN110933113B (zh) * | 2019-12-30 | 2021-04-09 | 腾讯科技(深圳)有限公司 | 基于区块链的互动行为检测方法、装置、设备及存储介质 |
Citations (6)
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 |
CN101887558A (zh) * | 2009-05-14 | 2010-11-17 | 北京闻言科技有限公司 | 一种移动商务中收藏商品的技术 |
CN105791093A (zh) * | 2016-04-15 | 2016-07-20 | 广州酷狗计算机科技有限公司 | 虚拟物品赠送方法及装置 |
CN106228410A (zh) * | 2016-07-29 | 2016-12-14 | 武汉斗鱼网络科技有限公司 | 一种直播平台中虚拟礼物任务防刷系统及方法 |
CN107038065A (zh) * | 2017-03-01 | 2017-08-11 | 武汉斗鱼网络科技有限公司 | 信息处理方法及装置 |
CN107222754A (zh) * | 2017-05-27 | 2017-09-29 | 武汉斗鱼网络科技有限公司 | 礼物赠送通知方法、装置及服务器 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9065869B2 (en) * | 2011-10-08 | 2015-06-23 | Broadcom Corporation | Social network device memberships and applications |
CN203773549U (zh) * | 2013-10-25 | 2014-08-13 | 上海华力创通半导体有限公司 | 利用芯片标识符的软件安全应用装置 |
CN104935578A (zh) * | 2015-05-04 | 2015-09-23 | 广州唯品会信息科技有限公司 | 网站恶意攻击防范方法和系统 |
CN105491458B (zh) * | 2015-11-27 | 2018-11-27 | 武汉斗鱼网络科技有限公司 | 一种直播网站中弹幕发言时间的优化方法 |
CN106022826A (zh) * | 2016-05-18 | 2016-10-12 | 武汉斗鱼网络科技有限公司 | 一种网络直播平台中的作弊用户识别方法与系统 |
CN106060057B (zh) * | 2016-06-17 | 2019-04-05 | 武汉斗鱼网络科技有限公司 | 视频直播网站基于用户弹幕行为生成白名单的系统及方法 |
CN106341695B (zh) * | 2016-08-31 | 2020-08-11 | 腾讯数码(天津)有限公司 | 直播间互动方法、装置及系统 |
-
2017
- 2017-10-09 CN CN201710930300.3A patent/CN107770161B/zh not_active Expired - Fee Related
- 2017-12-29 WO PCT/CN2017/120175 patent/WO2019071859A1/zh active Application Filing
Patent Citations (6)
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 |
CN101887558A (zh) * | 2009-05-14 | 2010-11-17 | 北京闻言科技有限公司 | 一种移动商务中收藏商品的技术 |
CN105791093A (zh) * | 2016-04-15 | 2016-07-20 | 广州酷狗计算机科技有限公司 | 虚拟物品赠送方法及装置 |
CN106228410A (zh) * | 2016-07-29 | 2016-12-14 | 武汉斗鱼网络科技有限公司 | 一种直播平台中虚拟礼物任务防刷系统及方法 |
CN107038065A (zh) * | 2017-03-01 | 2017-08-11 | 武汉斗鱼网络科技有限公司 | 信息处理方法及装置 |
CN107222754A (zh) * | 2017-05-27 | 2017-09-29 | 武汉斗鱼网络科技有限公司 | 礼物赠送通知方法、装置及服务器 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110046079A (zh) * | 2019-04-25 | 2019-07-23 | 广州华多网络科技有限公司 | 网络请求检测方法、装置及设备 |
CN110046079B (zh) * | 2019-04-25 | 2024-03-12 | 广州方硅信息技术有限公司 | 网络请求检测方法、装置及设备 |
CN114697688A (zh) * | 2020-12-29 | 2022-07-01 | 阿里巴巴集团控股有限公司 | 直播策略推荐方法、互动方法、装置、设备和存储介质 |
CN113613028A (zh) * | 2021-08-03 | 2021-11-05 | 北京达佳互联信息技术有限公司 | 直播数据处理方法、装置、终端、服务器及存储介质 |
CN113613028B (zh) * | 2021-08-03 | 2023-08-08 | 北京达佳互联信息技术有限公司 | 直播数据处理方法、装置、终端、服务器及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN107770161B (zh) | 2019-11-15 |
CN107770161A (zh) | 2018-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019071859A1 (zh) | 一种直播平台中防止刷礼物的方法及装置 | |
US11055429B2 (en) | Key providing method, video playing method, server and client | |
US11362811B2 (en) | Secure telecommunications | |
CN107454441B (zh) | 一种检测直播间刷人气行为的方法、直播平台服务器及计算机可读存储介质 | |
JP6517359B2 (ja) | アカウント復元プロトコル | |
WO2019134303A1 (zh) | 直播间人气处理方法、装置、服务器及存储介质 | |
CN110276000B (zh) | 媒体资源的获取方法和装置、存储介质及电子装置 | |
CN110519268B (zh) | 基于区块链的投票方法、装置、设备、系统及存储介质 | |
US20210192551A1 (en) | Using hashed media identifiers to determine audience measurement data including demographic data from third party providers | |
CN108881966B (zh) | 一种信息处理方法以及相关设备 | |
US20170171286A1 (en) | Methods and devices for validating a video connection or other types of communication sessions over a computer network | |
CN108259183B (zh) | 一种关注方法、装置、电子设备及介质 | |
WO2019061598A1 (zh) | 一种数据校验方法及客户端 | |
WO2019047511A1 (zh) | 防止被刷的验证方法、装置及直播系统 | |
CN108650526B (zh) | 一种识别方法、计算机设备和存储介质 | |
CN107172027A (zh) | 证书管理方法、存储设备、存储介质和装置 | |
CN108769749B (zh) | 一种确定盗刷数据的方法、客户端及服务器 | |
US9705915B2 (en) | Techniques for reliable network authentication | |
CN105338525B (zh) | 登陆访问处理方法、装置及系统 | |
WO2019071857A1 (zh) | 一种直播平台中防止刷礼物的方法及装置 | |
WO2019136860A1 (zh) | 一种关注合法性的确定方法、装置、电子设备及介质 | |
WO2018176531A1 (zh) | 一种视频请求、视频播放方法及装置 | |
US11695546B2 (en) | Decoupled custom event system based on ephemeral tokens for enabling secure custom services on a digital audio stream | |
JP7397082B2 (ja) | ネットワークゲームシステムにおける安全なデータチャネル | |
CN107979596B (zh) | 一种直播中防止刷人气行为的方法及系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17928411 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17928411 Country of ref document: EP Kind code of ref document: A1 |