CN107979596B - Method and system for preventing people from being refreshed in live broadcast - Google Patents

Method and system for preventing people from being refreshed in live broadcast Download PDF

Info

Publication number
CN107979596B
CN107979596B CN201711191563.3A CN201711191563A CN107979596B CN 107979596 B CN107979596 B CN 107979596B CN 201711191563 A CN201711191563 A CN 201711191563A CN 107979596 B CN107979596 B CN 107979596B
Authority
CN
China
Prior art keywords
mobile client
live broadcast
gravity sensing
sensing data
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.)
Active
Application number
CN201711191563.3A
Other languages
Chinese (zh)
Other versions
CN107979596A (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 CN201711191563.3A priority Critical patent/CN107979596B/en
Publication of CN107979596A publication Critical patent/CN107979596A/en
Application granted granted Critical
Publication of CN107979596B publication Critical patent/CN107979596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • 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/30Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
    • H04L9/3006Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy underlying computational problems or public-key parameters
    • H04L9/302Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy underlying computational problems or public-key parameters involving the integer factorization problem, e.g. RSA or quadratic sieve [QS] schemes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method and a device for preventing people from being refreshed in live broadcast, wherein the method comprises the following steps: s1, receiving gravity sensing data uploaded by the mobile client, wherein the gravity sensing data is generated after the mobile client logs in a live broadcast room; and S2, judging whether the gravity sensing data exists in the mobile client, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing people, and the illegal client has the behavior of refreshing people. According to the method and the device, the gravity sensing data of the mobile client logged in the live broadcast room are detected, and the legality of the mobile client is judged according to the fact that whether the gravity sensing data exist in the mobile client or not, so that the illegal mobile client is prevented from logging in the live broadcast room to refresh people.

Description

Method and system for preventing people from being refreshed in live broadcast
Technical Field
The invention relates to the technical field of network live broadcast, in particular to a method and a system for preventing people from being refreshed in live broadcast.
Background
At present, with the progress of network communication technology and the speed increase of broadband networks, live webcasts are developed and applied more and more, and especially in the field of live game broadcasting, more and more audiences watch the live webcasts of game masters.
For the anchor program, the number of audiences watching the live broadcast in the live broadcast room is increased by a people refreshing method, so that the income is obtained. The specific implementation mode of refreshing the popularity is that on a server with very good performance, a large number of false client users are forged and logged in the live broadcast room at the same time by breaking the network protocol of the live broadcast platform, so that a large number of audience members are forged to watch the illusion of live broadcast in the live broadcast room, and the popularity data of the live broadcast in the live broadcast room is refreshed higher.
The method of refreshing the live broadcast room by forging false audiences cannot truly reflect the capability of each anchor, and disturbs the market of the network live broadcast industry.
Disclosure of Invention
The invention provides a method and a system for preventing people from being refreshed in live broadcast, which overcome the problems or at least partially solve the problems, and can solve the illegal people refreshing behavior of a main broadcast in the existing network live broadcast.
According to one aspect of the invention, a method for preventing people from being refreshed in live broadcasting is provided, and comprises the following steps:
s1, receiving gravity sensing data uploaded by the mobile client, wherein the gravity sensing data is generated after the mobile client logs in a live broadcast room;
and S2, judging whether the gravity sensing data exists in the mobile client, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing people, and the illegal client has the behavior of refreshing people.
The invention has the beneficial effects that: the method has the advantages that the gravity sensing data of the mobile client logged in the live broadcast room are detected, and the legality of the mobile client is judged according to the fact that whether the gravity sensing data exist in the mobile client or not, so that the illegal mobile client is prevented from logging in the live broadcast room to refresh people.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the step S1 specifically includes:
receiving encrypted data uploaded by a mobile client, wherein the encrypted data comprises a marking value of gravity sensing data and a timestamp of the gravity sensing data generated by the mobile client;
correspondingly, the step S2 specifically includes:
and decrypting the encrypted data to obtain a marking value of the gravity sensing data generated by the mobile client, and judging whether the gravity sensing data exists in the mobile client according to the marking value.
Further, the decrypting the encrypted data specifically includes:
decrypting the encrypted data by using the shared secret key;
wherein the shared key is obtained by:
when logging in a live broadcast room, a live broadcast platform server generates a pair of public key and private key information corresponding to a mobile client;
and generating a shared secret key according to the public key information exchanged with the mobile client, wherein after the mobile client logs in the live broadcast room, a pair of public key and private key information is generated at the mobile client.
Further, when the mobile client logs in the live broadcast room, the step of generating a pair of public key and private key information by the live broadcast platform server corresponding to the mobile client specifically includes:
when a mobile client logs in a live broadcast room, random data are generated at a live broadcast platform server;
generating a private key of the mobile client according to the room number of the live broadcast room logged in by the mobile client, the UID of the user of the mobile client and the random data;
and generating a corresponding public key by adopting an asymmetric RSA encryption algorithm according to the private key.
According to another aspect of the invention, a method for preventing people from being refreshed in live broadcasting is provided, which comprises the following steps:
s1', when logging in the live broadcast room, acquiring gravity sensing data generated by the mobile client;
s2', uploading the acquired gravity sensing data to a live broadcast platform server, so that the live broadcast platform server can judge whether the mobile client has the gravity sensing data, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing people, and the illegal client has the behavior of refreshing people.
Further, the step S1' specifically includes:
after logging in a live broadcast room, acquiring gravity sensing data generated by a mobile client in real time;
marking the acquired gravity sensing data according to the numerical value of the gravity sensing data to obtain a corresponding marking value;
correspondingly, the uploading the acquired gravity sensing data to the live broadcast platform server in the step S2' specifically includes:
and uploading the marking value of the gravity sensing data of the mobile client to a live broadcast platform server according to a preset time interval.
Further, uploading the mark value of the gravity sensing data of the mobile client to the live broadcast platform server according to the preset time interval specifically includes:
and encrypting the marking value of the gravity sensing data of the mobile client and the timestamp for generating the gravity sensing data, and uploading the encrypted data to a live broadcast platform server.
Further, the encrypting the tag value of the gravity sensing data of the mobile client and the timestamp for generating the gravity sensing data specifically includes:
using a shared secret key and adopting a symmetric encryption algorithm to encrypt the marking value of the gravity sensing data and the timestamp for generating the gravity sensing data;
wherein the shared key is obtained by:
when logging in a live broadcast room, the mobile client correspondingly generates a pair of public key and private key information;
and generating a shared secret key according to the public key information exchanged with the live broadcast platform server, wherein after the mobile client logs in the live broadcast rooms, a pair of public key and private key information is generated for the mobile client of each live broadcast room through the live broadcast platform server.
Further, when logging in the live broadcast room, the step of generating a pair of public key and private key information by the mobile client correspondingly includes:
when a mobile client logs in a live broadcast room, random data are generated;
generating a private key of the mobile client according to the room number of the live broadcast room and the random data;
and generating a corresponding public key by adopting an asymmetric RSA encryption algorithm according to the private key.
According to yet another aspect of the present invention, there is provided a non-transitory computer readable storage medium characterized in that the non-transitory computer readable storage medium stores computer instructions that cause the computer to execute a method of preventing a human being-swiping behavior in live broadcasting.
Drawings
FIG. 1 is a flow chart of a method for preventing a popularity swiping behavior in a live broadcast according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for preventing a popularity act in a live broadcast according to another embodiment of the present invention;
fig. 3 is an overall flowchart of a method for preventing a popularity swiping behavior in a live broadcast according to another embodiment of the present invention;
FIG. 4 is a block diagram of the system connections for preventing people from being refreshed during live broadcasting according to an embodiment of the present invention;
fig. 5 is a connection block diagram of a system for preventing a popularity behavior in live broadcasting according to another embodiment of the present invention;
fig. 6 is a connection block diagram of a system for preventing a popularity behavior in live broadcasting according to another embodiment of the present invention;
fig. 7 is a device connection block diagram of a method for preventing a popularity swiping behavior in live broadcasting according to still another embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Referring to fig. 1, a method for preventing people from being refreshed in live broadcasting according to an embodiment of the present invention is provided, and is applied to a process of logging in a live broadcasting room through a mobile client, where a live broadcasting platform server prevents people from being refreshed for a host by an unauthorized means. The method comprises the following steps: s1, receiving gravity sensing data uploaded by the mobile client, wherein the gravity sensing data is generated after the mobile client logs in a live broadcast room; and S2, judging whether the gravity sensing data exists in the mobile client, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing people, and the illegal client has the behavior of refreshing people.
In the existing network live broadcast, a large number of false client users are forged on a server and log in a live broadcast room at the same time to flush the popularity data of the live broadcast room to be very high, and the status cannot reflect the real ability of the anchor of the live broadcast room, so that a live broadcast platform needs to take certain measures to prevent the popularity flushing action.
Because there is the gravity inductor in the mobile device, when normally logging in the live broadcast room through the mobile device and watching, can detect the action that the screen was switched about the mobile device end through the gravity induction sensor on the mobile terminal equipment. For some servers refreshing people, as the network protocol is broken, any gravity sensing does not exist, and gravity sensing data cannot be generated. Therefore, the embodiment can judge whether the mobile client is a legal client by detecting whether the mobile client generates the gravity sensing data after logging in the live broadcast room, and further judge whether the mobile client has the behavior of refreshing.
Specifically, after logging in a live broadcast room, the mobile client acquires gravity sensing data generated by the mobile client in real time and uploads the acquired gravity sensing data to a live broadcast platform server. The live broadcast platform server side judges whether the mobile client side has gravity sensing data or not, if yes, the mobile client side is determined to be a legal client side, otherwise, the mobile client side is determined to be an illegal client side, wherein the legal client side does not have a people-oriented behavior, and the illegal client side has a people-oriented behavior.
In another embodiment of the present invention, the step S1 specifically includes: receiving encrypted data uploaded by a mobile client, wherein the encrypted data comprises a marking value of gravity sensing data and a timestamp of the gravity sensing data generated by the mobile client; correspondingly, the step S2 specifically includes: and decrypting the encrypted data to obtain a marking value of the gravity sensing data generated by the mobile client, and judging whether the gravity sensing data exists in the mobile client according to the marking value.
The data uploaded by the mobile client received by the live broadcast platform client are encrypted data, wherein the encrypted data comprise a marking value of the acquired gravity sensing data of the mobile client and a timestamp of the gravity sensing data generated by the mobile client, and the marking value of the gravity sensing data is marked according to a specific numerical value of the gravity sensing data. And the live broadcast platform server decrypts the encrypted data to obtain a marking value of the original gravity sensing data generated by the mobile client, judges whether the gravity sensing data exists in the mobile client according to the marking value and further judges whether the mobile client is a legal client.
In an embodiment of the present invention, the decrypting the encrypted data specifically includes: decrypting the encrypted data by using the shared secret key; wherein the shared key is obtained by: when logging in a live broadcast room, a live broadcast platform server generates a pair of public key and private key information corresponding to a mobile client; and generating a shared secret key according to the public key information exchanged with the mobile client, wherein after the mobile client logs in the live broadcast room, a pair of public key and private key information is generated at the mobile client.
In another embodiment of the present invention, when the mobile client logs in the live broadcast room, the step of the live broadcast platform server generating a pair of public key and private key information corresponding to the mobile client specifically includes: when a mobile client logs in a live broadcast room, random data are generated at a live broadcast platform server; generating a private key of the mobile client according to the room number of the live broadcast room logged in by the mobile client, the UID of the user of the mobile client and the random data; and generating a corresponding public key by adopting an asymmetric RSA encryption algorithm according to the private key.
After the mobile client logs in the live broadcast rooms, the method for the live broadcast platform server to generate the public key and the private key for the mobile client in each live broadcast room is the same as the method for the mobile client to generate the public key and the private key, specifically, the live broadcast platform server calls a system function rand to generate a segment of random data Randdata, and the Randdata is rand (). Then, an MD5 value is generated according to the live broadcast room number logged in by the mobile client, the user UID of the mobile client and the random data to serve as a private key of the mobile client, and a specific algorithm is ServerPrivatekey (Md 5.Create (Randdata + Uid + RoomId)), namely the random data, the UID of the user and the room number are spliced together by calling an interface Md5.Create of an Md5 function to calculate an Md5 value of the random data, the UID of the user and the room number, so that private key data is obtained, wherein the Randdata is the generated random data, the Uid is the user identification of the mobile client, and the RoomId is the live broadcast room number where the mobile client is located. After the private key of the mobile client is generated, the corresponding public key is generated by adopting an asymmetric RSA encryption algorithm, namely a ClientPublinkey RSA. CreatePair (ClientPrivatekey), namely a generation pairing key interface RSA. CreatePair of RSA is called to generate the public key of the mobile client, and through the algorithm, the live broadcast platform server generates a pair of public key and private key information of the mobile client.
Referring to fig. 2, a method for preventing a popularity swiping behavior in a live broadcast according to another embodiment of the present invention is provided, including: s1', when logging in the live broadcast room, acquiring gravity sensing data generated by the mobile client; s2', uploading the acquired gravity sensing data to a live broadcast platform server, so that the live broadcast platform server can judge whether the mobile client has the gravity sensing data, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing people, and the illegal client has the behavior of refreshing people.
After logging in a live broadcast room, the mobile client generates gravity sensing data in the live broadcast watching process, acquires the gravity sensing data generated by the mobile client in real time, and uploads the acquired gravity sensing data to a live broadcast platform server. The live broadcast platform server side judges whether the mobile client side has gravity sensing data or not, if yes, the mobile client side is determined to be a legal client side, otherwise, the mobile client side is determined to be an illegal client side, wherein the legal client side does not have a people-oriented behavior, and the illegal client side has a people-oriented behavior.
In an embodiment of the present invention, the step S1' specifically includes: after logging in a live broadcast room, acquiring gravity sensing data generated by a mobile client in real time; marking the acquired gravity sensing data according to the numerical value of the gravity sensing data to obtain a corresponding marking value; correspondingly, the uploading the acquired gravity sensing data to the live broadcast platform server in the step S2' specifically includes: and uploading the marking value of the gravity sensing data of the mobile client to a live broadcast platform server according to a preset time interval.
Specifically, after the mobile client logs in the live broadcast room, the mobile client can acquire the gravity sensing data generated in the live broadcast watching process in real time, and the mobile client may generate the gravity sensing data or may not generate the gravity sensing data, that is, when the gravity sensing data is not generated, the acquired gravity sensing data of the mobile client is 0. Therefore, after the mobile client acquires the gravity sensing data of the mobile client, the mobile client marks the gravity sensing data according to whether the gravity sensing data exists in the mobile client, that is, when the mobile client generates the gravity sensing data (the value of the acquired gravity sensing data is not 0), the gravity sensing data is marked as 1, and when the mobile client does not generate the gravity sensing data (that is, the value of the acquired gravity sensing data is 0), the gravity sensing data is marked as 0. The mobile client marks the gravity sensing data acquired in real time to obtain a corresponding mark value, and uploads the mark value of the gravity sensing data of the mobile client to the live broadcast platform server at intervals.
In another embodiment of the present invention, the uploading the marked value of the gravity sensing data of the mobile client to the live broadcast platform server according to the predetermined time interval specifically includes: and encrypting the marking value of the gravity sensing data of the mobile client and the timestamp for generating the gravity sensing data, and uploading the encrypted data to a live broadcast platform server.
In order to increase the security of data transmission, before the mobile client uploads the gravity sensing data to the live broadcast platform server, the gravity sensing data is encrypted. In addition, in order to increase the changeability of the data, when the data are uploaded to the live broadcast platform server, the mark value of the gravity sensing data of the mobile client and the timestamp of the gravity sensing data generated by the mobile client are encrypted and then uploaded to the live broadcast platform server as the encrypted data.
In an embodiment of the present invention, the encrypting the tag value of the gravity sensing data of the mobile client and the timestamp for generating the gravity sensing data specifically includes: and using the shared secret key and adopting a symmetric encryption algorithm to encrypt the marking value of the gravity sensing data and the time stamp for generating the gravity sensing data.
Wherein the shared key is obtained by: when logging in a live broadcast room, the mobile client correspondingly generates a pair of public key and private key information; and generating a shared secret key according to the public key information exchanged with the live broadcast platform server, wherein after the mobile client logs in the live broadcast rooms, a pair of public key and private key information is generated for the mobile client of each live broadcast room through the live broadcast platform server.
The process of encrypting the gravity sensing data by the mobile client is that the mobile client regenerates a pair of public key and private key information every time the mobile client opens the live broadcast room, and the public key and the private key of each live broadcast room are not consistent. Meanwhile, the live broadcast platform server side can generate a pair of public key and private key information for each mobile client side logging in the live broadcast room. Then, the mobile client and the live broadcast platform server exchange public key information, and a certain encryption algorithm is adopted to generate a shared secret key between the mobile client and the live broadcast platform server.
In an embodiment of the present invention, the generating, by the mobile client, a pair of public key and private key information when logging in the live broadcast room specifically includes: when a mobile client logs in a live broadcast room, random data are generated; generating a private key of the mobile client according to the room number of the live broadcast room and the random data; and generating a corresponding public key by adopting an asymmetric RSA encryption algorithm according to the private key.
The specific method for generating the public key and the private key by the mobile client is that when the mobile client logs in a live broadcast room, a section of random data is generated by calling a system function rand, and a program for generating the random data is Randdata ═ rand (). Then, an MD5 value is generated according to the room number of the live broadcast room where the mobile client is located and the random data to serve as a private key of the mobile client, a program for generating an MD5 value is ClientPravatekey (Md 5. Create) (Randdata + RoomId), the random data and the room number are spliced together by calling an interface Md5.Create of an Md5 function to calculate an Md5 value of the random data and the room number, and therefore private key data are obtained, wherein Randdata represent random data, and RoomId represents the room number of the live broadcast room. After the private key of the mobile client is generated, the corresponding public key is generated by adopting an asymmetric RSA encryption algorithm, namely a ClientPublinkey RSA. CreatePair (ClientPrivatekey), namely a generation pairing key interface RSA. CreatePair of RSA is called to generate the public key of the mobile client, and a pair of public key and private key information of the mobile client is generated through the algorithm.
When a mobile client logs in a live broadcast room, random data are generated at a live broadcast platform server; generating a private key of the mobile client according to the room number of the live broadcast room logged in by the mobile client, the UID of the user of the mobile client and the random data; according to the private key, a corresponding public key is generated by adopting an asymmetric RSA encryption algorithm, and specifically, reference may be made to the foregoing embodiment for a process of generating a public key and a private key at a live broadcast platform server, which is not described herein again.
When the mobile client generates corresponding public key and private key information for the mobile client and the live broadcast platform server generates corresponding public key and private key information for the mobile client in each live broadcast room, the mobile client exchanges the generated public key information with the public key information generated by the live broadcast platform server for the mobile client, and generates shared keys at the mobile client and the live broadcast platform server respectively, wherein the shared key generated at the mobile client and the shared key generated at the live broadcast platform server are the same value. The algorithm for generating the shared key on the mobile client is ShareKey RSA. CreateShaKey (ServerPublinke, ClientPrivatekey), wherein ServerPublinke represents public key information generated at the live platform server, and ClientPrivatekey represents public key information generated by the live platform server for the mobile client. The algorithm for generating the shared key on the live platform server is ShareKey ═ rsa.createsharekey (client public-key, ServerPrivatekey), and it can be seen that the shared key generated on the mobile client and the shared key generated on the live platform server are consistent.
And the live broadcast platform server receives the encrypted data uploaded by the mobile client, decrypts the encrypted data to obtain the mark of the gravity sensing data of the original mobile client, namely the mark is 1 to indicate that the mobile client generates the gravity sensing data, and the mark is 0 to indicate that the mobile client does not generate the gravity sensing data. And the live broadcast platform server determines whether the mobile client has a behavior of refreshing people according to whether the mobile client generates gravity sensing data. According to the analysis, when the mobile client normally logs in the live broadcast room and normally watches the live broadcast, the mobile client can generate gravity sensing data, and when the mobile client is in a people refreshing state, the gravity sensing data can not be generated. Therefore, when the mark of the decrypted gravity sensing data is 1, the mobile client is determined to be a legal client, and the behavior of people refreshing does not exist, and on the contrary, when the mark of the decrypted gravity sensing data is 0, the mobile client is determined to be an illegal client, and the suspicion of the behavior of people refreshing exists.
Referring to fig. 3, in order to implement the whole process of the method for preventing people from being refreshed in live broadcasting according to an embodiment of the present invention, when a mobile client logs in a live broadcasting room, a pair of public keys and private keys is generated for the mobile client on the mobile client, and meanwhile, a live broadcasting platform server generates a pair of public keys and private keys for the mobile client in each live broadcasting room. And the mobile client exchanges the generated public key with the public key generated by the live broadcast platform server, and generates a shared secret key on the mobile client and the live broadcast platform server respectively. After the mobile client logs in the live broadcast room, the gravity sensing data generated by the mobile client is obtained in real time, and the generated secret key is adopted to encrypt the gravity sensing data and upload the gravity sensing data to the live broadcast platform server. And the live broadcast platform server decrypts the received encrypted data by using the shared secret key to obtain the gravity sensing data generated by the mobile client, and judges the legality of the mobile client according to whether the gravity sensing data is generated or not in the live broadcast process of watching the value of the mobile client.
This embodiment has utilized the characteristic that the mobile client terminal equipment has the gravity inductor, adopts the mobile client terminal whether to produce gravity induction data in the live broadcast viewing process, judges the legitimacy of mobile client terminal to brush the action of people's smell in preventing the live broadcast, and this kind of detection is brushed the action of people's smell very simply.
Referring to fig. 4, the system for preventing people from being refreshed in live broadcasting according to an embodiment of the present invention includes a receiving module 41 and a determining module 42, where the receiving module 41 is configured to receive gravity sensing data uploaded by a mobile client, and the gravity sensing data is generated after the mobile client logs in a live broadcasting room.
The determining module 42 is configured to determine whether the mobile client has gravity sensing data, determine that the mobile client is a valid client if the gravity sensing data exists, and determine that the mobile client is an illegal client if the gravity sensing data does not exist, where the valid client does not have a behavior of refreshing people and the illegal client does have a behavior of refreshing people.
The receiving module 41 is specifically configured to:
receiving encrypted data uploaded by a mobile client, wherein the encrypted data comprises a marking value of gravity sensing data and a timestamp of the gravity sensing data generated by the mobile client;
accordingly, the determining module 42 is specifically configured to:
and decrypting the encrypted data to obtain a marking value of the gravity sensing data generated by the mobile client, and judging whether the gravity sensing data exists in the mobile client according to the marking value.
Referring to fig. 5, a system for preventing a popularity swiping behavior in a live broadcast according to an embodiment of the present invention is provided, including an obtaining module 51 and an uploading module 52, where the obtaining module 51 is configured to obtain gravity sensing data generated by a mobile client after logging in a live broadcast room.
And the uploading module 52 is configured to upload the acquired gravity sensing data to the live broadcast platform server, so that the live broadcast platform server determines whether the mobile client has the gravity sensing data, if so, the mobile client is determined to be a legal client, otherwise, the mobile client is determined to be an illegal client, where the legal client does not have a behavior of refreshing people and the illegal client has a behavior of refreshing people.
Referring to fig. 6, a system for preventing people from refreshing during live broadcasting according to another embodiment of the present invention includes an obtaining module 51, a marking module 53, a generating module 54, an encrypting module 55, and an uploading module 52.
The obtaining module 51 is configured to obtain gravity sensing data generated by the mobile client after logging in the live broadcast room.
And the uploading module 52 is configured to upload the acquired gravity sensing data to the live broadcast platform server, so that the live broadcast platform server determines whether the mobile client has the gravity sensing data, if so, the mobile client is determined to be a legal client, otherwise, the mobile client is determined to be an illegal client, where the legal client does not have a behavior of refreshing people and the illegal client has a behavior of refreshing people.
The obtaining module 51 is configured to obtain, in real time, gravity sensing data generated by the mobile client after logging in the live broadcast room.
And the marking module 53 is configured to mark the acquired gravity sensing data according to the value of the gravity sensing data to obtain a corresponding marking value.
And the uploading module 52 is configured to upload the marked value of the gravity sensing data of the mobile client to the live broadcast platform server according to a predetermined time interval.
The generating module 54 is configured to generate a pair of public key and private key information correspondingly when logging in a live broadcast room; and generating a shared secret key according to the public key information exchanged with the live broadcast platform server, wherein after the mobile client logs in the live broadcast rooms, a pair of public key and private key information is generated for the mobile client of each live broadcast room through the live broadcast platform server.
The generating module 54 is further configured to generate random data when the mobile client logs in the live broadcast room; generating a private key of the mobile client according to the room number of the live broadcast room and the random data; and generating a corresponding public key by adopting an asymmetric RSA encryption algorithm according to the private key.
And the encryption module 55 is configured to encrypt the marking value of the gravity sensing data and the timestamp generating the gravity sensing data by using the shared secret key and using a symmetric encryption algorithm, and upload the encrypted data to the live broadcast platform server.
Referring to fig. 7, in order to implement the method for preventing the popularity in the live broadcast according to an embodiment of the present invention, the method for preventing the popularity in the live broadcast includes: a processor (processor)701, a memory (memory)702, and a bus 703; the processor 701 and the memory 702 complete communication with each other through the bus 703.
The processor 701 is configured to call the program instructions in the memory 702 to execute the methods provided by the above-mentioned method embodiments, for example, including: receiving gravity sensing data uploaded by a mobile client, wherein the gravity sensing data is generated after the mobile client logs in a live broadcast room; and judging whether the mobile client has gravity sensing data or not, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing the popularity, and the illegal client has the behavior of refreshing the popularity.
The invention discloses a computer program product, which comprises a computer program stored on a non-transitory computer readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer can execute the method for preventing people from being refreshed in live broadcast provided by the corresponding embodiment, for example, the method comprises the following steps: receiving gravity sensing data uploaded by a mobile client, wherein the gravity sensing data is generated after the mobile client logs in a live broadcast room; and judging whether the mobile client has gravity sensing data or not, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing the popularity, and the illegal client has the behavior of refreshing the popularity.
The present invention also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for preventing a popularity behavior in live broadcast provided by the corresponding embodiments, for example, the method includes: receiving gravity sensing data uploaded by a mobile client, wherein the gravity sensing data is generated after the mobile client logs in a live broadcast room; and judging whether the mobile client has gravity sensing data or not, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing the popularity, and the illegal client has the behavior of refreshing the popularity.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the device and the like of the method for preventing people from being refreshed in live broadcasting are merely illustrative, where units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the various embodiments or some parts of the methods of the embodiments.
According to the method and the system for preventing the people-qi-swiping behavior in the live broadcast, provided by the invention, the gravity sensing data of the mobile client logged in the live broadcast room is detected, and the legality of the mobile client is judged according to whether the gravity sensing data exists in the mobile client, so that the people-qi-swiping behavior of an illegal mobile client logged in the live broadcast room is prevented; in addition, in the process of carrying out gravity sensing data transmission between the mobile client and the live broadcast platform server, the transmitted gravity sensing data is encrypted, and the reliability of data transmission is ensured.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for preventing people from being refreshed in live broadcast is characterized by comprising the following steps:
s1, receiving gravity sensing data uploaded by the mobile client, wherein the gravity sensing data is generated after the mobile client logs in a live broadcast room;
s2, judging whether the mobile client has gravity sensing data, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have the behavior of refreshing people and the illegal client has the behavior of refreshing people;
the receiving of the gravity sensing data uploaded by the mobile client specifically comprises:
receiving encrypted data uploaded by a mobile client, wherein the encrypted data comprises a marking value of gravity sensing data and a timestamp of the gravity sensing data generated by the mobile client;
correspondingly, the judging whether the mobile client has the gravity sensing data specifically comprises:
and decrypting the encrypted data to obtain a marking value of the gravity sensing data generated by the mobile client, and judging whether the gravity sensing data exists in the mobile client according to the marking value.
2. The method for preventing people from refreshing behavior in live broadcasting according to claim 1, wherein the decrypting the encrypted data specifically comprises:
decrypting the encrypted data by using the shared secret key;
wherein the shared key is obtained by:
when a mobile client logs in a live broadcast room, a live broadcast platform server generates a pair of public key and private key information corresponding to the mobile client;
and generating a shared secret key according to the public key information exchanged with the mobile client, wherein after the mobile client logs in the live broadcast room, a pair of public key and private key information is generated at the mobile client.
3. The method for preventing people-refreshing behavior in live broadcasting as claimed in claim 2, wherein when the mobile client logs in the live broadcasting room, the step of the live broadcasting platform server generating a pair of public key and private key information corresponding to the mobile client specifically comprises:
when a mobile client logs in a live broadcast room, random data are generated at a live broadcast platform server;
generating a private key of the mobile client according to the room number of the live broadcast room logged in by the mobile client, the UID of the user of the mobile client and the random data;
and generating a corresponding public key by adopting an asymmetric RSA encryption algorithm according to the private key.
4. A method for preventing people from being refreshed in live broadcast is characterized by comprising the following steps:
s1', when logging in the live broadcast room, acquiring gravity sensing data generated by the mobile client;
s2', uploading the acquired gravity sensing data to a live broadcast platform server, so that the live broadcast platform server judges whether the mobile client has the gravity sensing data, if so, determining that the mobile client is a legal client, otherwise, determining that the mobile client is an illegal client, wherein the legal client does not have a behavior of refreshing people and the illegal client has a behavior of refreshing people;
the step S1' specifically includes:
after logging in a live broadcast room, acquiring gravity sensing data generated by a mobile client in real time;
marking the acquired gravity sensing data according to the numerical value of the gravity sensing data to obtain a corresponding marking value;
correspondingly, the uploading the acquired gravity sensing data to the live broadcast platform server in the step S2' specifically includes:
and uploading the marking value of the gravity sensing data of the mobile client to a live broadcast platform server according to a preset time interval.
5. The method for preventing people from being refreshed in live broadcasting according to claim 4, wherein uploading the mark value of the gravity sensing data of the mobile client to the live broadcasting platform server according to the predetermined time interval specifically comprises:
and encrypting the marking value of the gravity sensing data of the mobile client and the timestamp for generating the gravity sensing data, and uploading the encrypted data to a live broadcast platform server.
6. The method for preventing people from being refreshed in live broadcasting of claim 5, wherein the encrypting the tag value of the gravity sensing data of the mobile client and the timestamp for generating the gravity sensing data specifically comprises:
using a shared secret key and adopting a symmetric encryption algorithm to encrypt the marking value of the gravity sensing data and the timestamp for generating the gravity sensing data;
wherein the shared key is obtained by:
when logging in a live broadcast room, the mobile client correspondingly generates a pair of public key and private key information;
and generating a shared secret key according to the public key information exchanged with the live broadcast platform server, wherein after the mobile client logs in the live broadcast rooms, a pair of public key and private key information is generated for the mobile client of each live broadcast room through the live broadcast platform server.
7. The method for preventing people from being refreshed in live broadcasting of claim 6, wherein the step of generating a pair of public and private key information by the mobile client when logging in the live broadcasting room comprises:
when a mobile client logs in a live broadcast room, random data are generated;
generating a private key of the mobile client according to the room number of the live broadcast room and the random data;
and generating a corresponding public key by adopting an asymmetric RSA encryption algorithm according to the private key.
8. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1-7.
CN201711191563.3A 2017-11-24 2017-11-24 Method and system for preventing people from being refreshed in live broadcast Active CN107979596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711191563.3A CN107979596B (en) 2017-11-24 2017-11-24 Method and system for preventing people from being refreshed in live broadcast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711191563.3A CN107979596B (en) 2017-11-24 2017-11-24 Method and system for preventing people from being refreshed in live broadcast

Publications (2)

Publication Number Publication Date
CN107979596A CN107979596A (en) 2018-05-01
CN107979596B true CN107979596B (en) 2020-10-16

Family

ID=62011554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711191563.3A Active CN107979596B (en) 2017-11-24 2017-11-24 Method and system for preventing people from being refreshed in live broadcast

Country Status (1)

Country Link
CN (1) CN107979596B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810626B (en) * 2018-07-03 2020-06-19 中影数字巨幕(北京)有限公司 Cinema monitoring method, medium and computing device
CN112995689B (en) * 2021-02-24 2023-01-03 上海哔哩哔哩科技有限公司 Method and device for determining brushing amount of live broadcast room

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601447A (en) * 2004-09-30 2005-03-30 清华大学 Interdynamic information perception method of cell phone games and external smart game platform of cell phone
CN104023013A (en) * 2014-05-30 2014-09-03 上海帝联信息科技股份有限公司 Data transmission method, server side and client
CN106385593A (en) * 2016-09-14 2017-02-08 武汉斗鱼网络科技有限公司 Method and system for counting number of persons watching live broadcast simultaneously based on elliptical curve algorithm
CN107330311A (en) * 2017-06-29 2017-11-07 苏州锦佰安信息技术有限公司 A kind of method and apparatus of man-machine identification

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150181288A1 (en) * 2013-12-19 2015-06-25 Ignite Video, Inc. Video sales and marketing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601447A (en) * 2004-09-30 2005-03-30 清华大学 Interdynamic information perception method of cell phone games and external smart game platform of cell phone
CN104023013A (en) * 2014-05-30 2014-09-03 上海帝联信息科技股份有限公司 Data transmission method, server side and client
CN106385593A (en) * 2016-09-14 2017-02-08 武汉斗鱼网络科技有限公司 Method and system for counting number of persons watching live broadcast simultaneously based on elliptical curve algorithm
CN107330311A (en) * 2017-06-29 2017-11-07 苏州锦佰安信息技术有限公司 A kind of method and apparatus of man-machine identification

Also Published As

Publication number Publication date
CN107979596A (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN107454441B (en) A kind of method, live streaming Platform Server and the computer readable storage medium of detection direct broadcasting room brush popularity behavior
CN106302502B (en) A kind of secure access authentication method, user terminal and server-side
WO2019134303A1 (en) Live stream room popularity processing method and apparatus, server and storage medium
CN104980278B (en) The method and apparatus for verifying the availability of biometric image
CN103997681B (en) Net cast is carried out to method and the system thereof of door chain process
US20210192551A1 (en) Using hashed media identifiers to determine audience measurement data including demographic data from third party providers
CN106470103B (en) Method and system for sending encrypted URL request by client
CN108881966B (en) Information processing method and related equipment
WO2019071859A1 (en) Method and apparatus for preventing gift swiping on live broadcast platform
CN112738117A (en) Data transmission method, device and system, storage medium and electronic device
CN107979596B (en) Method and system for preventing people from being refreshed in live broadcast
CN108259183B (en) Attention method, attention device, attention electronic equipment and attention medium
CN105024813A (en) Server, user equipment and interactive method of the user equipment and the server
CN113365097B (en) Live broadcast information stream processing method, device and system, electronic equipment and storage medium
CN111132155B (en) 5G secure communication method, device and storage medium
CN113365264A (en) Block chain wireless network data transmission method, device and system
CN108055356A (en) A kind of information processing method, server, client and readable storage medium storing program for executing
KR20140051483A (en) Method and apparatus for selectively providing protection of screen information data
CN110380843B (en) Information processing method and related equipment
CN103795531A (en) Secret key authentication method based on two-dimension code and system thereof
Mengjun et al. Privacy-preserving distributed location proof generating system
CN112769783B (en) Data transmission method, cloud server, receiving end and sending end
CN108965939A (en) Media data processing method, device, system and readable storage medium storing program for executing
CN110381342B (en) Information processing method and related equipment
CN108769748B (en) Information processing method and related 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