CN113973236A - Anti-hotlinking method and device for video service, computing equipment and storage medium - Google Patents

Anti-hotlinking method and device for video service, computing equipment and storage medium Download PDF

Info

Publication number
CN113973236A
CN113973236A CN202010722730.8A CN202010722730A CN113973236A CN 113973236 A CN113973236 A CN 113973236A CN 202010722730 A CN202010722730 A CN 202010722730A CN 113973236 A CN113973236 A CN 113973236A
Authority
CN
China
Prior art keywords
video
session identifier
video url
url
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010722730.8A
Other languages
Chinese (zh)
Other versions
CN113973236B (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010722730.8A priority Critical patent/CN113973236B/en
Publication of CN113973236A publication Critical patent/CN113973236A/en
Application granted granted Critical
Publication of CN113973236B publication Critical patent/CN113973236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Abstract

The invention discloses a video service anti-stealing link method, a video service anti-stealing link device, a computing device and a storage medium, wherein the method comprises the following steps: receiving a play request which is initiated by a play terminal and carries a session identifier; judging whether a video URL corresponding to the session identifier is stored in the memory; if not, establishing a corresponding video URL for the session identifier in the memory according to the playing request, and sending the video URL to the playing terminal so that the playing terminal can access the video resource through the video URL; and if so, deleting the video URL corresponding to the session identifier from the memory, then establishing a new video URL, and sending the new video URL to the playing terminal. The invention judges whether the playing request initiated by the playing terminal carries the unique session identification, determines the URL according to the judgment result, can greatly reduce the pressure of the dispatching server, effectively reduces the operation and maintenance cost and the hardware cost, and simultaneously thoroughly avoids the possibility of anti-theft chain.

Description

Anti-hotlinking method and device for video service, computing equipment and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a video service anti-stealing link method, a video service anti-stealing link device, a video service anti-stealing link computing device and a video service anti-stealing link storage medium.
Background
OTT (overhead) and IPTV are operation forms in which a playing terminal shares content resources with a user who purchases a service, and the playing terminals such as OTT and IPTV implement continuous real-time playing on a network in a streaming media manner, so that a video server is required to sequentially store each video file slice in real time.
However, more and more applications adopt a hotlinking mode to enrich own resources, so that the resources of a content provider can not be used by own users, but are provided for the hotlinking users, thereby not only greatly increasing the operation cost, but also destroying the perception of own users due to the paralysis of a content server caused by the hotlinking. In the existing anti-theft chain technology, the anti-theft chain is mainly realized through two directions: one direction is that the validity of each URL is verified by constructing the complexity of scheduling and allocation of Uniform Resource Locators (URLs) each time, and real Resource request addresses are allocated when the URLs are determined to be legal users, so that the method for avoiding the anti-theft chain by constructing the complexity of the URLs increases the performance burden of interactive verification of a scheduling server and a Resource server on one hand, and can not stop the cracking or counterfeiting interaction of an encryption algorithm on the other hand; the other direction is to determine whether there is a link stealing behavior by extracting and matching the feature information (such as signature information, IP information, referrer information, etc.) of the playing terminal and determining whether the feature information changes, however, since the feature information of the playing terminal is easily forged, for example, the IP information is forged by proxy, the referrer information is forged in a non-browser environment, or the signature information of the same legal member account within the expiration time is multiplexed, the video resource is transmitted to a plurality of illegal playing terminals for use.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method, apparatus, computing device and storage medium for anti-hotlinking of video services that overcome or at least partially address the above-mentioned problems.
According to an aspect of the present invention, there is provided a method for preventing a hotlink of a video service, which is applied to a scheduling server, and includes:
receiving a play request which is initiated by a play terminal and carries a session identifier;
judging whether a video URL corresponding to the session identifier is stored in a memory;
if not, establishing a corresponding video URL for the session identifier in a memory according to the playing request, and sending the video URL to the playing terminal so that the playing terminal can access video resources through the video URL;
and if so, deleting the video URL corresponding to the session identifier from the memory, establishing a corresponding new video URL for the session identifier, and sending the new video URL to the playing terminal.
According to another aspect of the present invention, there is provided a method for preventing a hotlink of a video service, which is applied to a play terminal, and includes:
receiving a session identifier returned by the authentication server after the authentication is passed;
constructing a playing request carrying the session identifier, and sending the playing request to a scheduling server so that the scheduling server can determine and return a corresponding video URL according to the playing request;
and receiving a video URL returned by the scheduling server, and accessing the video resource through the video URL.
According to another aspect of the present invention, there is provided a video service anti-hotlinking device, adapted to a scheduling server, including:
a first receiving module, configured to receive a play request with a session identifier, where the play request is initiated by a play terminal;
the judging module is used for judging whether a video URL corresponding to the session identifier is stored in the memory;
the processing module is used for establishing a corresponding video URL for the session identifier in the memory according to the playing request if the video URL corresponding to the session identifier is not stored in the memory; if the video URL corresponding to the session identifier is stored in the memory, deleting the video URL corresponding to the session identifier from the memory, and then establishing a corresponding new video URL for the session identifier;
the first sending module is used for sending the video URL to the playing terminal if the video URL corresponding to the session identifier is not stored in the memory, so that the playing terminal can access video resources through the video URL; and if the video URL corresponding to the session identifier is stored in the memory, sending the new video URL to the playing terminal.
According to another aspect of the present invention, there is provided a device for preventing hotlinking of video services, which is suitable for a play terminal, and comprises:
the second receiving module is used for receiving the session identifier returned by the authentication server after the authentication passes;
a request construction module, configured to construct a play request carrying the session identifier;
the second sending module is used for sending the playing request to a scheduling server so that the scheduling server can determine and return a corresponding video URL according to the playing request;
the second receiving module is further configured to: and receiving a video URL returned by the scheduling server, and accessing the video resource through the video URL.
According to another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the anti-stealing-link method applicable to the video service of the dispatch server.
According to another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the above-mentioned anti-hotlinking method for video services of a scheduling server.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the anti-theft chain method applicable to the video service of the playing terminal.
According to still another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the above-mentioned anti-hotlinking method for video services of a broadcasting terminal.
According to the anti-stealing-link method, the anti-stealing-link device, the computing equipment and the storage medium of the video service, a playing request which is initiated by a playing terminal and carries a session identifier is received; judging whether a video URL corresponding to the session identifier is stored in the memory; if not, establishing a corresponding video URL for the session identifier in the memory according to the playing request, and sending the video URL to the playing terminal so that the playing terminal can access the video resource through the video URL; and if so, deleting the video URL corresponding to the session identifier from the memory, establishing a corresponding new video URL for the session identifier, and sending the new video URL to the playing terminal. The invention can greatly reduce the pressure of the dispatching server, effectively reduce the operation and maintenance cost and the hardware cost and thoroughly put an end to the possibility of anti-theft chain by judging whether the playing request initiated by the playing terminal carries the unique session identification and determining the URL according to the judgment result.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for preventing a video service from stealing a link according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for anti-stealing link of video services according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating a video service anti-stealing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for preventing a hotlink of a video service provided by an embodiment of the invention;
fig. 5 is a schematic structural diagram of a computing device provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 shows a flowchart of an embodiment of the anti-stealing link method for video services according to the present invention, which is applied in a scheduling server. The scheduling server may be a cdn (content Delivery network) scheduling server, which refers to a content Delivery scheduling server, and distributes a play request of a user to an optimal node by publishing content of a source station to an edge node, so as to obtain a required content at the highest speed and improve an access speed of the user. As shown in fig. 1, the method comprises the steps of:
step S110: and receiving a play request which is initiated by the play terminal and carries the session identifier.
In this step, the playing terminals initiate playing requests carrying Session identifiers, specifically Session IDs, specifically, after the playing terminals are authenticated by the authentication server, each playing terminal can obtain an independent and unique Session ID allocated by the authentication server, the playing terminals initiate charging messages to the authentication server according to a preset period, the authentication server updates the Session IDs corresponding to the playing terminals according to the charging messages, and further, when the playing terminals initiate playing requests to the scheduling server for video resources, each initiated playing request carries a Session ID.
Step S120: judging whether a video URL corresponding to the session identifier is stored in the memory; if yes, go to step S140; if not, go to step S130.
Specifically, each time the scheduling server receives a play request with a Session ID, it determines whether a video URL corresponding to the current Session ID is stored in the memory through memory-level storage.
Step S130: and establishing a corresponding video URL for the session identifier in the memory according to the playing request, and sending the video URL to the playing terminal so that the playing terminal can access the video resource through the video URL.
Generally, a scheduling server needs to allocate a corresponding video URL to a playing terminal according to a Session ID to facilitate the playing terminal to obtain a video source corresponding to playing content, and if a video URL corresponding to a current Session ID is not stored in a memory, a video URL with an index of the Session ID is established for the playing terminal in the memory and is sent to the playing terminal, so that the playing terminal can request a video service of a corresponding program through the video URL to access the video resource.
In an optional manner, step S130 further includes: and establishing a video URL according to the video resource corresponding to the playing request, and storing the video URL in the memory by taking the session identifier as an index.
Specifically, according to the video resource corresponding to the play request, the Session ID is used to update the index on the memory while the video URL is established, and the Session ID is used to index and store the video URL.
Step S140: and deleting the video URL corresponding to the session identifier from the memory, establishing a corresponding new video URL for the session identifier, and sending the new video URL to the playing terminal.
Specifically, if the memory of the scheduling server stores the video URL corresponding to the Session ID, the video URL corresponding to the Session ID is deleted, a new video URL is established for the video service requested by the Session ID, and the new video URL is updated and indexed on the memory to be the Session ID, that is, the new video URL is stored using the Session ID as an index and is sent to the play terminal, so that the play terminal can access the video resource through the video URL.
In an optional manner, before establishing a corresponding new video URL for the session identifier, the method further includes: informing a video server corresponding to the video URL to perform failure processing on the video URL; and receiving a failure processing success notification message returned by the video server. Specifically, the scheduling server generates a session invalidation notification message and sends the session invalidation notification message to the video server corresponding to the video URL, so that the video server stops providing service for the video URL according to the session invalidation notification message. After the video server stops serving the video URL, the video server returns a failure processing success notification message to the scheduling server so as to notify the scheduling server that the failure processing has been completed.
Specifically, the video URL corresponding to the Session ID is deleted, and the video server corresponding to the video URL is notified to perform invalidation processing on the video URL, that is, a Session invalidation notification message is sent to the video server corresponding to the video URL, and after receiving the invalidation message of the scheduling server for the Session ID, the video server invalidates the original video URL corresponding to the Session ID, stops continuing to serve the video URL, and returns the invalidation processing success notification message to the scheduling server.
By adopting the method provided by the embodiment, the playing request which is initiated by the playing terminal and carries the session identifier is received; judging whether a video URL corresponding to the session identifier is stored in the memory; if not, establishing a corresponding video URL for the session identifier in the memory according to the playing request, and sending the video URL to the playing terminal so that the playing terminal can access the video resource through the video URL; and if so, deleting the video URL corresponding to the session identifier from the memory, establishing a corresponding new video URL for the session identifier, and sending the new video URL to the playing terminal. In the embodiment, through memory-level storage and scheduling, it is ensured that only one Session ID exists as an index for each playing terminal, and that only one video URL in the current latest state exists for each Session ID, which is effective, that is, even if the original Session ID is stolen, batch-level user-scale resource reuse cannot be performed, so that the operation, server, bandwidth and storage costs of the scheduling server are effectively reduced, and only one video URL in the latest state exists in the current memory of the scheduling server, which can stably and reliably prevent the possibility of stealing links.
Fig. 2 is a flowchart illustrating another embodiment of the method for preventing hotlinking of video services according to the present invention, which is applied in a broadcasting terminal. As shown in fig. 2, the method comprises the steps of:
step S210: and receiving the session identifier returned by the authentication server after the authentication is passed.
After the playing terminal is started, the authentication server can authenticate whether the playing terminal is legal, and the method specifically includes: verifying the legality of the account number and the password of the playing terminal; and verifying whether the account of the playing terminal is expired. If the account number and the password of the playing terminal fail to be authenticated or the account number of the playing terminal expires, the authentication server sends a corresponding authentication failure message to the playing terminal; if the account number and the password of the playing terminal are successfully authenticated and the account number of the playing terminal is not expired, the authentication is passed, and the authentication server allocates a unique Session ID to the playing terminal, so that the Session ID is carried by the playing terminal to verify the validity of the playing request of the playing terminal when the playing terminal initiates the playing request each time.
It should be noted that the Session ID may be encrypted information.
In an optional manner, the method may further include the steps of: and initiating a charging message to the authentication server according to a preset period so that the authentication server updates the session identifier corresponding to the playing terminal according to the charging message, and returns the updated session identifier to the playing terminal.
Specifically, in order to prevent the Session ID from being stolen, the playing terminal may initiate a charging message to the authentication server according to a preset period, the authentication server receives the charging message initiated by the playing terminal, and updates the Session ID corresponding to the playing terminal according to the charging message, for example, the original Session ID is deleted and invalidated, and the updated Session ID is re-allocated to the playing terminal, so that the Session ID is updated in time, and the video resource is prevented from being transmitted to a plurality of illegal playing terminals for use after the Session ID is stolen. Specifically, the preset period can be manually set according to actual needs.
Step S220: and constructing a playing request carrying the session identifier, and sending the playing request to the scheduling server so that the scheduling server can determine and return the corresponding video URL according to the playing request.
In this step, the playing terminal constructs a playing request carrying the Session ID after the authentication is passed, and sends the playing request to the scheduling server, the scheduling server receives the playing request carrying the Session ID initiated by the playing terminal, the scheduling server receives the playing request carrying the Session identifier initiated by the playing terminal, and establishes a corresponding video URL for the Session ID in the memory according to the playing request, and sends the corresponding video URL to the playing terminal.
Step S230: and receiving a video URL returned by the scheduling server, and accessing the video resource through the video URL.
Specifically, a video URL corresponding to the Session ID returned by the scheduling server is received, and the playing terminal can request a video service of a corresponding program through the video URL to access the video resource.
By adopting the method provided by the embodiment, the playing terminal is authenticated through the authentication server, the only Session ID is distributed to the playing terminal after the authentication is passed, and the charging message is sent according to the preset period to update the Session ID in time, so that the possibility of Session ID forgery is prevented; meanwhile, through memory-level storage and scheduling, each playing terminal is ensured to have only one Session ID as an index, and each Session ID is ensured to have only one video URL in the current latest state to be effective, that is, even if the original Session ID is stolen, batch-level user-scale resource reuse cannot be performed, so that the operation, server, bandwidth and storage costs of the scheduling server are effectively reduced, and the current memory of the scheduling server has only one video URL in the latest state to be effective, so that the possibility of stealing links can be stably and reliably avoided.
Fig. 3 is a schematic structural diagram of an embodiment of the anti-stealing-link device for video services according to the invention. The apparatus is suitable for a dispatch server, and as shown in fig. 3, the apparatus includes: a first receiving module 310, a determining module 320, a processing module 330 and a first transmitting module 340.
A first receiving module 310, configured to receive a play request with a session identifier, where the play request is initiated by a play terminal. The determining module 320 is configured to determine whether a video URL corresponding to the session identifier is stored in the memory.
The processing module 330 is configured to, if a video URL corresponding to the session identifier is not stored in the memory, establish a corresponding video URL for the session identifier in the memory according to the play request; and if the video URL corresponding to the session identifier is stored in the memory, deleting the video URL corresponding to the session identifier from the memory, and then establishing a corresponding new video URL for the session identifier.
In an optional manner, the processing module 330 is further configured to establish a video URL according to a video resource corresponding to the play request, and store the video URL in the memory by using the session identifier as an index.
In an optional manner, the apparatus further includes a disabling module, configured to notify a video server corresponding to the video URL to disable the video URL. The first receiving module is further configured to: and receiving a failure processing success notification message returned by the video server.
In an optional manner, the disabling module is further configured to generate a session disabling notification message, and send the session disabling notification message to a video server corresponding to the video URL, so that the video server stops providing services for the video URL according to the session disabling notification message.
The first sending module 340 is configured to send the video URL to the playing terminal if the video URL corresponding to the session identifier is not stored in the memory, so that the playing terminal can access the video resource through the video URL; and if the video URL corresponding to the session identifier is stored in the memory, sending the new video URL to the playing terminal.
By adopting the device provided by the embodiment, the play request which is initiated by the play terminal and carries the session identifier is received; judging whether a video URL corresponding to the session identifier is stored in the memory; if not, establishing a corresponding video URL for the session identifier in the memory according to the playing request, and sending the video URL to the playing terminal so that the playing terminal can access the video resource through the video URL; and if so, deleting the video URL corresponding to the session identifier from the memory, establishing a corresponding new video URL for the session identifier, and sending the new video URL to the playing terminal. In this embodiment, through memory-level storage and scheduling, it is ensured that each playing terminal only has a unique session identifier as an index, and that each session identifier only has a video URL in the current latest state to be valid, that is, even if the original session identifier is stolen, batch-level user-scale resource reuse cannot be performed, so that the operation, server, bandwidth, and storage costs of the scheduling server are effectively reduced, and the current memory of the scheduling server has only a video URL in the latest state to be valid, which can stably and reliably prevent the possibility of stealing links.
Fig. 4 is a schematic structural diagram of another anti-stealing-link apparatus for video services according to an embodiment of the present invention, which is suitable for a playback terminal, and as shown in fig. 4, the apparatus includes: a second receiving module 410, a request construction module 420, and a second sending module 430.
And a second receiving module 410, configured to receive the session identifier returned by the authentication server after the authentication passes.
A request constructing module 420, configured to construct a play request carrying the session identifier.
The second sending module 430 is configured to send the play request to the scheduling server, so that the scheduling server determines and returns a corresponding video URL according to the play request.
The second receiving module 410 is further configured to: and receiving a video URL returned by the scheduling server, and accessing the video resource through the video URL.
In an optional manner, the second sending module 430 is further configured to: and initiating a charging message to the authentication server according to a preset period so that the authentication server updates the session identifier corresponding to the playing terminal according to the charging message, and returns the updated session identifier to the playing terminal.
By adopting the device provided by the embodiment, the possibility of session identifier forgery is prevented by receiving the session identifier returned after authentication is passed and sending the charging message according to the preset period to update the session identifier in time; the playing request with the session identifier is constructed, and the playing request is sent to the scheduling server, so that the scheduling server determines and returns the corresponding video URL according to the playing request, and the fact that only the unique session identifier exists in each playing terminal is used as an index is ensured, the video URL established by the scheduling server is only effective for the session identifier in the current latest state, that is, even if the original session identifier is stolen, resource reuse of batch-level user scale cannot be performed, and therefore the operation, server, bandwidth and storage costs of the scheduling server are effectively reduced, and the possibility of stealing links can be stably and reliably avoided because only one video URL in the latest state exists in the current memory of the scheduling server.
The embodiment of the invention provides a nonvolatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute a chain stealing prevention method suitable for video service of a scheduling server in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
receiving a play request which is initiated by a play terminal and carries a session identifier;
judging whether a video URL corresponding to the session identifier is stored in the memory;
if not, establishing a corresponding video URL for the session identifier in the memory according to the playing request, and sending the video URL to the playing terminal so that the playing terminal can access the video resource through the video URL;
and if so, deleting the video URL corresponding to the session identifier from the memory, establishing a corresponding new video URL for the session identifier, and sending the new video URL to the playing terminal.
The embodiment of the present invention provides another non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute a hotlink protection method applicable to a video service of a play terminal in any method embodiment described above.
The executable instructions may be specifically configured to cause the processor to:
receiving a session identifier returned by the authentication server after the authentication is passed;
constructing a playing request carrying a session identifier, and sending the playing request to a scheduling server so that the scheduling server can determine and return a corresponding video URL according to the playing request;
and receiving a video URL returned by the scheduling server, and accessing the video resource through the video URL.
Fig. 5 is a schematic structural diagram of an embodiment of a computing device according to the present invention, and a specific embodiment of the present invention does not limit a specific implementation of the computing device.
As shown in fig. 5, the computing device may include:
a processor (processor), a Communications Interface (Communications Interface), a memory (memory), and a Communications bus.
Wherein: the processor, the communication interface, and the memory communicate with each other via a communication bus. A communication interface for communicating with network elements of other devices, such as clients or other servers. And the processor is used for executing programs, and particularly can execute relevant steps in the anti-theft chain method embodiment of the video service.
In particular, the program may include program code comprising computer operating instructions.
The processor may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The server comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And the memory is used for storing programs. The memory may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (10)

1. A video service anti-stealing-link method is suitable for a scheduling server, and is characterized by comprising the following steps:
receiving a play request which is initiated by a play terminal and carries a session identifier;
judging whether a video URL corresponding to the session identifier is stored in a memory;
if not, establishing a corresponding video URL for the session identifier in a memory according to the playing request, and sending the video URL to the playing terminal so that the playing terminal can access video resources through the video URL;
and if so, deleting the video URL corresponding to the session identifier from the memory, establishing a corresponding new video URL for the session identifier, and sending the new video URL to the playing terminal.
2. The method of claim 1, wherein the establishing a corresponding video URL for the session identifier in the memory according to the play request further comprises:
and establishing a video URL according to the video resource corresponding to the playing request, and storing the video URL in the memory by taking the session identifier as an index.
3. The method of claim 1, wherein prior to said establishing a corresponding new video URL for said session identifier, said method further comprises:
informing a video server corresponding to the video URL to perform failure processing on the video URL;
and receiving a failure processing success notification message returned by the video server.
4. The method of claim 3, wherein notifying a video server corresponding to the video URL to invalidate the video URL further comprises:
and generating a session failure notification message, and sending the session failure notification message to a video server corresponding to the video URL, so that the video server stops providing service for the video URL according to the session failure notification message.
5. A video service anti-stealing link method is suitable for a playing terminal, and is characterized by comprising the following steps:
receiving a session identifier returned by the authentication server after the authentication is passed;
constructing a playing request carrying the session identifier, and sending the playing request to a scheduling server so that the scheduling server can determine and return a corresponding video URL according to the playing request;
and receiving a video URL returned by the scheduling server, and accessing the video resource through the video URL.
6. The method according to claim 5, wherein after receiving the session identifier returned by the authentication server after passing the authentication, the method further comprises:
and initiating a charging message to the authentication server according to a preset period so that the authentication server updates the session identifier corresponding to the playing terminal according to the charging message, and returns the updated session identifier to the playing terminal.
7. A device for preventing a video service from being stolen, adapted to a scheduling server, comprising:
a first receiving module, configured to receive a play request with a session identifier, where the play request is initiated by a play terminal;
the judging module is used for judging whether a video URL corresponding to the session identifier is stored in the memory;
the processing module is used for establishing a corresponding video URL for the session identifier in the memory according to the playing request if the video URL corresponding to the session identifier is not stored in the memory; if the video URL corresponding to the session identifier is stored in the memory, deleting the video URL corresponding to the session identifier from the memory, and then establishing a corresponding new video URL for the session identifier;
the first sending module is used for sending the video URL to the playing terminal if the video URL corresponding to the session identifier is not stored in the memory, so that the playing terminal can access video resources through the video URL; and if the video URL corresponding to the session identifier is stored in the memory, sending the new video URL to the playing terminal.
8. A video service anti-stealing-link device is suitable for a playing terminal and is characterized by comprising:
the second receiving module is used for receiving the session identifier returned by the authentication server after the authentication passes;
a request construction module, configured to construct a play request carrying the session identifier;
the second sending module is used for sending the playing request to a scheduling server so that the scheduling server can determine and return a corresponding video URL according to the playing request;
the second receiving module is further configured to: and receiving a video URL returned by the scheduling server, and accessing the video resource through the video URL.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the video service anti-theft chain method according to any one of claims 1-4.
10. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the anti-hotlinking method for video services according to any one of claims 1 to 4.
CN202010722730.8A 2020-07-24 2020-07-24 Anti-hotlinking method and device for video service, computing equipment and storage medium Active CN113973236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010722730.8A CN113973236B (en) 2020-07-24 2020-07-24 Anti-hotlinking method and device for video service, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010722730.8A CN113973236B (en) 2020-07-24 2020-07-24 Anti-hotlinking method and device for video service, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113973236A true CN113973236A (en) 2022-01-25
CN113973236B CN113973236B (en) 2023-09-19

Family

ID=79585568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010722730.8A Active CN113973236B (en) 2020-07-24 2020-07-24 Anti-hotlinking method and device for video service, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113973236B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004768A (en) * 2005-12-15 2007-07-25 株式会社Ntt都科摩 Content transmission system, transmission server, communication terminal, and content transmission method
CN101350918A (en) * 2008-09-05 2009-01-21 清华大学 Method for protecting copyright of video content
US20100100935A1 (en) * 2007-01-26 2010-04-22 Junichi Sato Content distribution system, content distribution method and program
CN101729857A (en) * 2009-11-24 2010-06-09 中兴通讯股份有限公司 Method for accessing video service and video playing system
JP2011146038A (en) * 2009-12-14 2011-07-28 Rakuten Inc Page transition device, page transition system, and page transition method
CN104811438A (en) * 2015-03-26 2015-07-29 网宿科技股份有限公司 Asynchronous hotlink protection method and system based on scheduling system
CN104980771A (en) * 2014-04-09 2015-10-14 中国电信股份有限公司 Method and system for stream media-on-demand through internet protocol television (IPTV)
CN107196811A (en) * 2017-07-13 2017-09-22 上海幻电信息科技有限公司 Video website door chain control system and method
CN110213522A (en) * 2019-05-27 2019-09-06 腾讯科技(深圳)有限公司 A kind of video data handling procedure, device and relevant device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004768A (en) * 2005-12-15 2007-07-25 株式会社Ntt都科摩 Content transmission system, transmission server, communication terminal, and content transmission method
US20100100935A1 (en) * 2007-01-26 2010-04-22 Junichi Sato Content distribution system, content distribution method and program
CN101350918A (en) * 2008-09-05 2009-01-21 清华大学 Method for protecting copyright of video content
CN101729857A (en) * 2009-11-24 2010-06-09 中兴通讯股份有限公司 Method for accessing video service and video playing system
JP2011146038A (en) * 2009-12-14 2011-07-28 Rakuten Inc Page transition device, page transition system, and page transition method
CN104980771A (en) * 2014-04-09 2015-10-14 中国电信股份有限公司 Method and system for stream media-on-demand through internet protocol television (IPTV)
CN104811438A (en) * 2015-03-26 2015-07-29 网宿科技股份有限公司 Asynchronous hotlink protection method and system based on scheduling system
CN107196811A (en) * 2017-07-13 2017-09-22 上海幻电信息科技有限公司 Video website door chain control system and method
CN110213522A (en) * 2019-05-27 2019-09-06 腾讯科技(深圳)有限公司 A kind of video data handling procedure, device and relevant device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高嵩;赵方;宋茂强;: "移动流媒体视频监控系统的研究与设计", 计算机应用研究, no. 03 *

Also Published As

Publication number Publication date
CN113973236B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN110536146B (en) Live broadcast method and device based on cloud game and storage medium
CN107979514B (en) Method and device for binding devices
CN106790238B (en) Cross-site request forgery CSRF defense authentication method and device
CN109547458B (en) Login verification method and device, computer equipment and storage medium
KR20180081113A (en) Message management method, device and storage medium
CN104954330B (en) A kind of methods, devices and systems to be conducted interviews to data resource
CN106878283B (en) Authentication method and device
CN109495486B (en) Single-page Web application integration CAS method based on JWT
CN103428179A (en) Method, system and device for logging into multi-domain-name website
CN106209727B (en) Session access method and device
CN109391686B (en) Processing method of access request and CDN node server
CN109067746B (en) Communication method and device between client and server
CN101252767B (en) Traffic providing system and authority identifying method in traffic providing
CN112948802A (en) Single sign-on method, device, equipment and storage medium
CN111182537A (en) Network access method, device and system for mobile application
CN105592083B (en) Method and device for terminal to access server by using token
CN107888623B (en) Method and device for preventing hijacking of audio and video data streams of live broadcast software
CN113709530A (en) Resource downloading method, system, electronic equipment and storage medium
CN106453305A (en) Member live broadcast link stealing prevention method and device, and network server
CN108009439B (en) Resource request method, device and system
CN112491890A (en) Access method and device
CN116991936A (en) Block chain-based rights and interests credential management method, apparatus, electronic device and medium
CN110266736A (en) A kind of optimization method and device for the portal certification based on https agreement
CN106657140B (en) Application authorization method and device
CN111371787B (en) Login registration method, device, system, server and medium for middle station service

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