A method and device for monitoring access based on short links

Through similarity calculation and sensitive word judgment of keywords and word frequencies in short link records, subsequent monitoring of pushed short links is realized, which solves the problem of intermediate monitoring parties failing to monitor pushed short links and prevents users from accessing illegal pages. User interests are protected.

CN111782986BActive Publication Date: 2024-09-20BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910414745.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-17
Publication Date
2024-09-20
Estimated Expiration
2039-05-17

AI Technical Summary

Technical Problem

In the existing technology, the intermediate monitoring party only reviews the original link when the service party applies for push, but fails to subsequently monitor the pushed short link, resulting in users possibly accessing illegally modified pages, causing losses.

Method used

By reading the original links and keywords in the short link record and their word frequency, the current web page content is captured and the similarity of the keywords is calculated. If the similarity does not exceed the set threshold or contains sensitive words, the short link record status is updated. Access is prohibited to enable subsequent monitoring of pushed short links.

Benefits of technology

It effectively prevents the original link content from being significantly modified after passing the review, prevents users from accessing illegal pages, safeguards user interests, and prevents a surge in complaints and the blocking of information push channels caused by access to illegal pages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111782986B
    Figure CN111782986B
Patent Text Reader

Abstract

The present invention discloses a method and device for monitoring access based on short links, and relates to the field of computer technology. A specific implementation of the method includes: reading the original link and the first keyword and its frequency in the short link record, and the record status of the short link record is to allow access; according to the original link, crawling the web page content currently corresponding to the original link, and determining the second keyword and its frequency according to the current content; based on the first keyword and its frequency and the second keyword and its frequency, determining the similarity between the first keyword and the second keyword; if the similarity between the first keyword and the second keyword does not exceed the set threshold, updating the record status of the short link record to prohibit access. This implementation overcomes the technical problem that the intermediate monitoring party only reviews the content in the original link when the service party applies for push, and does not perform subsequent monitoring on the pushed short link after the review is passed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for monitoring access based on short links. Background Art

[0002] In Internet business, users often access the content pushed by the service provider through the short link they receive. However, the content in the original link initially submitted by the service provider needs to be reviewed by the intermediate monitoring party before it can be pushed to the user in the form of a short link.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] 1) The intermediate monitoring party in the prior art only reviews the content in the original link when the service party applies for push, and does not perform subsequent monitoring on the pushed short link after the review is passed.

[0005] 2) The existing technology cannot prevent the service provider from replacing the page corresponding to the original link with a phishing page or other page after pushing a short link to the user, thereby causing the user to visit an illegal website and incur losses. Summary of the invention

[0006] In view of this, an embodiment of the present invention provides a method and device for monitoring access based on short links, which can solve the problem in the prior art that there is no subsequent monitoring of the pushed short links after the review is passed.

[0007] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for monitoring access based on short links is provided, comprising: reading the original link and the first keyword and its word frequency in the short link record, and the record status of the short link record is to allow access; according to the original link, crawling the web page content currently corresponding to the original link, and determining the second keyword and its word frequency according to the current content; based on the first keyword and its word frequency and the second keyword and its word frequency, determining the similarity between the first keyword and the second keyword; if the similarity between the first keyword and the second keyword does not exceed the set threshold, updating the record status of the short link record to prohibit access; wherein, the first keyword is determined by the web page content corresponding to the original link when the original link is reviewed and approved.

[0008] Optionally, the method also includes, if the similarity between the first keyword and the second keyword meets a set threshold: obtaining the sensitive word corresponding to the category identifier in the short link record, and determining whether the second keyword includes the sensitive word; if the second keyword includes the sensitive word, updating the record status of the short link record to prohibit access.

[0009] Optionally, based on the first keyword and its word frequency and the second keyword and its word frequency, determining the similarity between the first keyword and the second keyword includes: normalizing the first keyword and the second keyword to obtain the normalized keywords; forming a keyword array based on the normalized keywords; determining the word vector of the first keyword and the word vector of the second keyword based on the first keyword and its word frequency, the second keyword and its word frequency and the keyword array; determining the similarity between the first keyword and the second keyword based on the word vector of the first keyword and the word vector of the second keyword.

[0010] Optionally, a keyword array is formed based on the normalized keywords, including: taking the sum of the word frequency of the first keyword and the word frequency of the second keyword as the word frequency of the normalized keyword; sorting the normalized keywords according to the word frequency of the normalized keywords to obtain a keyword sequence; and the normalized keywords form a keyword array based on the keyword sequence.

[0011] Optionally, based on the first keyword, its word frequency and the keyword array, determining the word vector of the first keyword includes: traversing the keyword array: taking the word frequency of the first keyword as the corresponding value of the first keyword in the keyword array; setting the corresponding value of the second keyword in the keyword array to 0; and determining the word vector of the first keyword based on the corresponding values ​​in the keyword array.

[0012] According to another aspect of an embodiment of the present invention, there is provided a device for monitoring access based on short links, comprising: a reading module, used to read an original link and a first keyword and its word frequency in a short link record, wherein the record status of the short link record is to allow access; a real-time crawling module, used to crawl, according to the original link, the web page content currently corresponding to the original link, and determine a second keyword and its word frequency according to the current content; a similarity determination module, used to determine the similarity between the first keyword and the second keyword based on the first keyword and its word frequency and the second keyword and its word frequency; a monitoring module, used to update the record status of the short link record to prohibit access if the similarity between the first keyword and the second keyword does not exceed a set threshold; wherein the first keyword is determined by the web page content corresponding to the original link when the original link is reviewed and approved.

[0013] Optionally, the monitoring module is also used to, if the similarity between the first keyword and the second keyword meets a set threshold: then, based on the category identifier in the short link record, obtain the sensitive word corresponding to the category identifier, and determine whether the second keyword includes the sensitive word; if the second keyword includes the sensitive word, update the record status of the short link record to access prohibited.

[0014] Optionally, the similarity determination module is also used to: normalize the first keyword and the second keyword to obtain the normalized keywords; form a keyword array based on the normalized keywords; determine the word vector of the first keyword and the word vector of the second keyword based on the first keyword and its word frequency, the second keyword and its word frequency and the keyword array; determine the similarity between the first keyword and the second keyword based on the word vector of the first keyword and the word vector of the second keyword.

[0015] Optionally, the similarity determination module is also used to: take the sum of the word frequency of the first keyword and the word frequency of the second keyword as the word frequency of the normalized keyword; sort the normalized keywords according to the word frequency of the normalized keywords to obtain a keyword sequence; and the normalized keywords form a keyword array based on the keyword sequence.

[0016] Optionally, the similarity determination module is also used to: traverse the keyword array: use the word frequency of the first keyword as the corresponding value of the first keyword in the keyword array; set the corresponding value of the second keyword in the keyword array to 0; and determine the word vector of the first keyword based on the corresponding value in the keyword array.

[0017] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for monitoring access based on short links as provided in the aforementioned embodiment.

[0018] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method for monitoring access based on short links provided in the above-mentioned embodiment is implemented.

[0019] An embodiment of the above invention has the following advantages or beneficial effects: by means of technical means of extracting keywords and their word frequencies and calculating the similarity of keywords before and after the review is passed, the technical problem that the intermediate monitoring party only reviews the content in the original link when the service party applies for push, and does not perform subsequent monitoring of the pushed short link after the review is passed is overcome, thereby achieving the technical effect of subsequent monitoring of the pushed short link, effectively avoiding the situation where the content corresponding to the original link is significantly modified after the review is passed, and at the same time preventing users from accessing illegally modified pages, thereby safeguarding user interests.

[0020] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0022] Figure 1 is a schematic diagram of a basic process of a method for monitoring access based on a short link according to an embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of a preferred process of a method for monitoring access based on a short link according to an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of main modules of a device for monitoring access based on a short link according to an embodiment of the present invention;

[0025] Figure 4 is a schematic diagram of a short link push system based on a short link monitoring method according to an embodiment of the present invention;

[0026] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0027] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0029] The embodiments of the present invention are described in detail by taking the following application scenarios as examples:

[0030] Enterprises (i.e., service providers in the present invention) often need to send text messages (i.e., push messages) to users, and some text message contents need to include some hyperlinks related to the enterprise. SMS virtual operators (i.e., the intermediate monitoring party in the present invention) generally process the hyperlinks contained in the text message content according to the following process: the enterprise submits the hyperlink it wishes to send (i.e., the original link); the SMS virtual operator reviews the content corresponding to the hyperlink, and after the review is passed, the SMS virtual operator returns a short link to the enterprise; the enterprise attaches this short link to the text message; when the text message is sent to the user, the user clicks on the short link, which will be statistically calculated at the SMS virtual operator, and then jump to the hyperlink the enterprise wishes to send.

[0031] Figure 1 Schematic diagram of the basic process of the method for monitoring access based on short links according to an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a method for monitoring access based on a short link, including:

[0032] Step S101. Read the original link and the first keyword and its frequency in the short link record, and the record status of the short link record is access allowed;

[0033] Step S102. According to the original link, crawl the webpage content currently corresponding to the original link, and determine the second keyword and its frequency according to the current content;

[0034] Step S103. Determine the similarity between the first keyword and the second keyword based on the first keyword and its word frequency and the second keyword and its word frequency;

[0035] Step S104: if the similarity between the first keyword and the second keyword does not exceed a set threshold, updating the record status of the short link record to prohibit access;

[0036] The first keyword is determined by the webpage content corresponding to the original link when it is reviewed. Specifically, the webpage content corresponding to the original link when it is reviewed can be segmented into Chinese words and the word frequency can be calculated to determine the first keyword. Similarly, the second keyword can be determined by performing Chinese word segmentation on the webpage content currently corresponding to the captured original link and calculating the word frequency.

[0037] Specifically, the short link record table constructed by the intermediate monitoring party is shown in Table 1.

[0038] Table 1

[0039]

[0040]

[0041] The embodiment of the present invention overcomes the technical problem that the intermediate monitoring party only reviews the content in the original link when the service party applies for push, and does not perform subsequent monitoring of the pushed short link after the review is passed, by means of technical means of extracting keywords and their word frequencies and calculating the similarity of the keywords before and after the review is passed. Therefore, the technical effect of subsequent monitoring of the pushed short link is achieved, and the situation that the content corresponding to the original link is significantly modified after the review is passed is effectively avoided. At the same time, users are prevented from accessing illegal pages, thereby safeguarding the interests of users.

[0042] In an embodiment of the present invention, the method further includes: if the similarity between the first keyword and the second keyword meets a set threshold, then according to the category identifier in the short link record, obtaining the sensitive word corresponding to the category identifier, and determining whether the second keyword includes the sensitive word; if the second keyword includes the sensitive word, updating the record status of the short link record to prohibit access, and sending an early warning to the user. By determining whether a page contains sensitive words and timely blocking users from accessing illegal pages, the embodiment of the present invention can avoid losses to users, thereby avoiding a surge in complaints caused by user losses, leading to serious situations such as the closure of information push channels, etc.

[0043] Specifically, the category identifier in the short link record may be the Comp_type (industry identifier to which the enterprise belongs) in Table 1. The corresponding sensitive word rule (sensitive word) or other restriction rules may be retrieved from the sensitive word rule table through the industry identifier. The sensitive word rule table is shown in Table 2.

[0044] Table 2

[0045]

[0046]

[0047] In step S103 of the embodiment of the present invention, based on the first keyword and its word frequency and the second keyword and its word frequency, the similarity between the first keyword and the second keyword is determined, including: normalizing the first keyword and the second keyword to obtain the normalized keywords; forming a keyword array based on the normalized keywords; determining the word vector of the first keyword and the word vector of the second keyword based on the first keyword and its word frequency, the second keyword and its word frequency and the keyword array; determining the similarity between the first keyword and the second keyword based on the word vector of the first keyword and the word vector of the second keyword.

[0048] The keywords implemented in the present invention are normalized, and the determined word vectors can make the calculation of similarity more accurate, thereby achieving the technical effect of subsequent monitoring of the pushed short links. Among them, normalization means deleting repeated keywords; for example: the first keywords obtained during the review are: A, B, C; the second keywords obtained after the current crawl are: B, C, D; the keywords after normalization are: A, B, C, D.

[0049] For example, the first keyword and its frequency are: fashion 14, New Year goods 6, membership 5, sports 4;

[0050] The second keywords and their frequency are: fashion 15, New Year goods 5, membership 5, clothing 3.

[0051] After normalization, the normalized keywords are: fashion, New Year’s goods, membership, sports, and clothing.

[0052] Based on the above embodiment, in the embodiment of the present invention, a keyword array is formed according to the normalized keywords, including: taking the sum of the word frequency of the first keyword and the word frequency of the second keyword as the word frequency of the normalized keyword; sorting the normalized keywords according to the word frequency of the normalized keywords (preferentially sorting in order of frequency from large to small, or also sorting in order from small to large) to obtain a keyword sequence; the normalized keywords form a keyword array based on the keyword sequence. The implementation of the present invention determines the keyword array according to the word frequency of the keyword, which can make the obtained word vector calculate the similarity more accurately, thereby achieving the technical effect of subsequent monitoring of the pushed short link.

[0053] Specifically, after normalization, the normalized keywords are sorted in descending order of their frequency, and a keyword sequence is obtained: fashion 29, new year goods 11, membership 10, sports 4, clothing 3. Thus, the keyword array can be (fashion, new year goods, membership, sports, clothing).

[0054] Based on the above embodiment, in the embodiment of the present invention, the word vector of the first keyword is determined based on the first keyword and its word frequency and the keyword array, including: traversing the keyword array: taking the word frequency of the first keyword as the corresponding value of the first keyword in the keyword array; setting the corresponding value of the second keyword in the keyword array to 0; and determining the word vector of the first keyword based on the corresponding value in the keyword array. At the same time, when determining the word vector of the second keyword, the idea is the same as the above content: traversing the keyword array: taking the word frequency of the second keyword as the corresponding value of the second keyword in the keyword array; setting the corresponding value of the first keyword in the keyword array to 0; and determining the word vector of the second keyword based on the corresponding value in the keyword array. The implementation of the present invention determines the word vector of a keyword based on the word frequency of the keyword, which can make the calculated similarity more accurate, thereby achieving the technical effect of accurately monitoring the status of short links.

[0055] Based on the above example, the word vector of the first keyword is (14, 6, 5, 4, 0), and the word vector of the second keyword is (15, 5, 5, 0, 3).

[0056] The calculation of similarity based on word vectors can be done by calculating cosine similarity. Cosine similarity measures the similarity between two vectors by measuring the cosine value of the angle between them. The cosine value of a 0-degree angle is 1, while the cosine value of any other angle is not greater than 1; and its minimum value is -1. Therefore, the cosine value of the angle between two vectors determines whether the two vectors point in roughly the same direction. When two vectors have the same direction, the cosine similarity value is 1; when the angle between the two vectors is 90°, the cosine similarity value is 0; when the two vectors point in completely opposite directions, the cosine similarity value is -1. This result is independent of the length of the vector, but only related to the direction in which the vector points. Cosine similarity is usually used in positive space, so the value given is between 0 and 1. The cosine value between two vectors a and b can be calculated by using the Euclidean dot product formula: a·b=||a||||b||cosθ.

[0057] Given two attribute vectors A and B, their cosine similarity θ is given by the dot product and the length of the vectors as follows:

[0058]

[0059] Among them, A i , B i Represent the components of attribute vectors A and B respectively, and n is the number of components.

[0060] Based on the above example, the cosine similarity between the word vector of the first keyword (14,6,5,4,0) and the word vector of the second keyword (15,5,5,0,3) is calculated to be 0.9517.

[0061] Figure 2 2 is a schematic diagram of a preferred process of a method for monitoring access based on a short link according to an embodiment of the present invention. Figure 2 As shown, the background scans all the original links that have been reviewed and approved at fixed intervals (for example, every 5 minutes); the background enables a fixed number of multi-threads each time to perform simultaneous calculations, for example, 50 threads are started at the same time for calculations; each thread takes out the short link record according to the short link record ID to be processed, obtains the original link in question from the short link record, grabs the current content of the web page corresponding to the original link, performs Chinese word segmentation on the obtained current content and calculates the word frequency to obtain the current keyword (second keyword) and word frequency; takes out the keyword (first keyword) and word frequency when the original link is reviewed from the record, and Calculate the cosine similarity with the current keyword and word frequency; determine whether the cosine similarity exceeds the set threshold (the set threshold can be but is not limited to 0.3). If it is less than or equal to 0.3, set the record status in the short link record to Status = 2 (indicating that the cosine similarity between the current page content and the page content during the review is too low); if the cosine similarity is greater than 0.3, it means that the content of the current web page is very similar to the content of the web page during the review, and take out the industry to which the Comp_type enterprise of the record belongs, and then take out the sensitive word rules or sensitive words corresponding to Comp_type in the sensitive word rule table. Verify the sensitive word rules or sensitive words of the industry for the second keyword in turn. If the second keyword contains sensitive words or does not meet the verification requirements based on the sensitive word rules, set the record status in the short link record to Status = 3 (indicating that the page contains sensitive words).

[0062] The background first finds out all the records that have been reviewed, for example, a total of 200. Then 50 threads are started, and each thread is assigned a processing number. For example, the first thread is assigned a processing number of 0, the second thread is assigned a processing number of 1, and the 50th thread is assigned a processing number of 49. After that, each thread traverses all the records obtained by the main thread. When the ID number of the record, modulo 50, is equal to the processing number of the thread, the thread processes the record. For example, if there are 200 records, if the IDs of these 200 records are continuous, each thread processes 4 records. If there are jumps in the records, some threads process less than 4 records, and some process more than 4 records.

[0063] Figure 3 Schematic diagram of main modules of a device for monitoring access based on a short link according to an embodiment of the present invention. Figure 3As shown, an embodiment of the present invention provides a device 300 for monitoring access based on a short link, including:

[0064] The reading module 301 is used to: read the original link and the first keyword and its frequency in the short link record, and the record status of the short link record is access allowed;

[0065] The real-time crawling module 302 is used to: crawl the webpage content currently corresponding to the original link according to the original link, and determine the second keyword and its frequency according to the current content;

[0066] A similarity determination module 303 is used to determine the similarity between the first keyword and the second keyword based on the first keyword and its word frequency and the second keyword and its word frequency;

[0067] The monitoring module 304 is used to update the record status of the short link record to access prohibited if the similarity between the first keyword and the second keyword does not exceed a set threshold; wherein the first keyword is determined by the corresponding web page content when the original link is reviewed and approved.

[0068] The embodiment of the present invention overcomes the technical problem that the intermediate monitoring party only reviews the content in the original link when the service party applies for push, and does not perform subsequent monitoring of the pushed short link after the review is passed, by means of technical means of extracting keywords and their word frequencies and calculating the similarity of the keywords before and after the review is passed. Therefore, the technical effect of subsequent monitoring of the pushed short link is achieved, and the situation that the content corresponding to the original link is significantly modified after the review is passed is effectively avoided. At the same time, users are prevented from accessing illegal pages, thereby safeguarding the interests of users.

[0069] In the embodiment of the present invention, the monitoring module 304 is also used for: if the similarity between the first keyword and the second keyword meets the set threshold, then according to the category identifier in the short link record, obtaining the sensitive word corresponding to the category identifier, and judging whether the second keyword includes the sensitive word; if the second keyword includes the sensitive word, then updating the record status of the short link record to prohibit access. The embodiment of the present invention can prevent users from incurring losses by judging whether the page contains sensitive words and timely blocking users from accessing illegal pages, thereby avoiding a surge in complaints caused by user losses, leading to serious situations such as the closure of information push channels, etc.

[0070] In the embodiment of the present invention, the similarity determination module 303 is further used to: normalize the first keyword and the second keyword to obtain the normalized keywords; form a keyword array according to the normalized keywords; determine the word vector of the first keyword and the word vector of the second keyword based on the first keyword and its word frequency, the second keyword and its word frequency and the keyword array; determine the similarity between the first keyword and the second keyword according to the word vector of the first keyword and the word vector of the second keyword. The keywords implemented in the present invention are normalized, and the determined word vectors can make the calculation of similarity more accurate, thereby achieving the technical effect of subsequent monitoring of the pushed short links.

[0071] In an embodiment of the present invention, the similarity determination module 303 is further used to: take the sum of the word frequency of the first keyword and the word frequency of the second keyword as the word frequency of the normalized keyword; sort the normalized keywords according to the word frequency of the normalized keywords to obtain a keyword sequence; and the normalized keywords form a keyword array based on the keyword sequence. The implementation of the present invention determines the keyword array according to the word frequency of the keyword, which can make the obtained word vector calculate the similarity more accurately, thereby achieving the technical effect of accurately monitoring short links.

[0072] In an embodiment of the present invention, the similarity determination module 303 is further used to: traverse the keyword array: use the word frequency of the first keyword as the corresponding value of the first keyword in the keyword array; set the corresponding value of the second keyword in the keyword array to 0; and determine the word vector of the first keyword based on the corresponding value in the keyword array. The present invention implements the method of determining the word vector of a keyword based on the word frequency of the keyword, which can make the calculated similarity more accurate, thereby achieving the technical effect of accurately monitoring the status of short links.

[0073] Figure 4 Schematic diagram of a short link push system based on a short link monitoring method according to an embodiment of the present invention. Figure 4As shown, the enterprise submits the original link that needs to be accessed, and the system records the original link in Src_link of the short link record table; the SMS virtual operator conducts a content review of the web page corresponding to the original link. After the SMS virtual operator confirms that there is no problem with the web page corresponding to the original link, it clicks Review Confirmation; the system captures the content of the original link for review, and performs Chinese word segmentation and word frequency calculation on the captured content, forms an array of the top 30 words with the highest word frequency and word frequency, packages them into json, and records them in Key_list in the short link record. The system sets the Status in the short link record to 1 (indicating that the review has passed) , and generate a short link and notify the enterprise. The original link of the enterprise is reviewed and the short link is pushed to the user; after the short link record is completed, the short link record is stored in the short link database; the system monitors the status of the short link in real time or regularly based on the method of monitoring the short link, and updates the record status in the short link record; when Status = 0, it means that it has not been reviewed (or the review has not passed); when Status = 1, the record status is allowed to access (that is, the user can access the pushed content through the short link); when Status = 2 or 3, the record status is prohibited to access (that is, you can directly jump to a page that does not allow access). Among them, json packaging can also be serialized or encrypted. The main thing here is to design a field to record a snapshot of the entire page. If we design it as a subtable, such as a word frequency subtable, it can be divided into multiple records, and the father id is this Src_link.

[0074] Figure 5 An exemplary system architecture 500 is shown to which the method for monitoring access based on a short link or the device for monitoring access based on a short link according to the embodiment of the present invention can be applied.

[0075] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0076] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0077] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0078] Server 505 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using terminal devices 501, 502, and 503. The backend management server may analyze and process received data such as product information query requests, and feed back the processing results to the terminal device.

[0079] It should be noted that the method for monitoring access based on a short link provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for monitoring access based on a short link is generally set in the server 505 .

[0080] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0081] According to an embodiment of the present invention, the present invention also provides an electronic device and a computer-readable medium.

[0082] The electronic device of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for monitoring access based on short links as provided in an embodiment of the present invention.

[0083] The computer-readable medium of the present invention stores a computer program thereon, and when the program is executed by a processor, the method for monitoring access based on short links provided in an embodiment of the present invention is implemented.

[0084] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0085] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0086] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0087] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0088] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0089] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0090] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, may be described as: a processor including: a reading module, a real-time capture module, a similarity determination module, and a monitoring module. The names of these modules do not constitute limitations on the modules themselves in certain circumstances, for example, the reading module may also be described as a "module for reading short link records".

[0091] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: reading the original link and the first keyword and its frequency in the short link record, and the record status of the short link record is to allow access; according to the original link, crawling the webpage content currently corresponding to the original link, and determining the second keyword and its frequency according to the current content; based on the first keyword and its frequency and the second keyword and its frequency, determining the similarity between the first keyword and the second keyword; if the similarity between the first keyword and the second keyword does not exceed the set threshold, then updating the record status of the short link record to prohibit access.

[0092] It can be seen from the method of monitoring access based on short links according to an embodiment of the present invention that, by means of technical means of extracting keywords and their word frequencies and calculating the similarity of keywords before and after the review is passed, the technical problem that the intermediate monitoring party only reviews the content in the original link when the service party applies for push, and does not perform subsequent monitoring of the pushed short link after the review is passed is overcome, thereby achieving the technical effect of subsequent monitoring of the pushed short link, effectively avoiding the situation where the content corresponding to the original link is significantly modified after the review is passed, and also preventing users from accessing illegal pages, thereby safeguarding user interests.

[0093] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for monitoring access based on short links, characterized in that: Applicable to intermediate monitoring parties, including: Reading the original link and the first keyword and its frequency in the short link record, wherein the record status of the short link record is access allowed; According to the original link, crawl the webpage content currently corresponding to the original link, and determine the second keyword and its word frequency according to the current content; Determining the similarity between the first keyword and the second keyword based on the first keyword and its word frequency and the second keyword and its word frequency; If the similarity between the first keyword and the second keyword does not exceed a set threshold, updating the record status of the short link record to prohibit access; Wherein, the first keyword is determined by the webpage content corresponding to the original link when it is reviewed and approved; The method further includes if the similarity between the first keyword and the second keyword meets a set threshold: then, according to the category identifier in the short link record, obtaining a sensitive word corresponding to the category identifier, and determining whether the second keyword includes the sensitive word; If the second keyword includes the sensitive word, the record status of the short link record is updated to prohibit access.

2. The method according to claim 1, characterized in that Determining the similarity between the first keyword and the second keyword based on the first keyword and its word frequency and the second keyword and its word frequency includes: Normalizing the first keyword and the second keyword to obtain a normalized keyword; According to the normalized keywords, a keyword array is formed; Determine a word vector of the first keyword and a word vector of the second keyword based on the first keyword and its word frequency, the second keyword and its word frequency, and the keyword array; The similarity between the first keyword and the second keyword is determined according to the word vector of the first keyword and the word vector of the second keyword.

3. The method according to claim 2, characterized in that According to the normalized keywords, a keyword array is formed, including: The sum of the word frequency of the first keyword and the word frequency of the second keyword is used as the word frequency of the keyword after the normalization processing; Sorting the normalized keywords according to the word frequencies of the normalized keywords to obtain a keyword sequence; The normalized keywords form a keyword array based on the keyword sequence.

4. The method according to claim 2, characterized in that: Determining a word vector of the first keyword based on the first keyword and its word frequency and the keyword array includes: Traversing the keyword array: taking the word frequency of the first keyword as the corresponding value of the first keyword in the keyword array; setting the corresponding value of the second keyword in the keyword array to 0; Based on the corresponding values ​​in the keyword array, determine the word vector of the first keyword.

5. A device for monitoring access based on short links, characterized in that: Applicable to intermediate monitoring parties, including: A reading module, used to: read the original link and the first keyword and its frequency in the short link record, and the record status of the short link record is access allowed; A real-time crawling module is used to: crawl the webpage content currently corresponding to the original link according to the original link, and determine the second keyword and its word frequency according to the current content; A similarity determination module, configured to determine the similarity between the first keyword and the second keyword based on the first keyword and its word frequency and the second keyword and its word frequency; A monitoring module, configured to: if the similarity between the first keyword and the second keyword does not exceed a set threshold, update the record status of the short link record to prohibit access; Wherein, the first keyword is determined by the webpage content corresponding to the original link when it is reviewed and approved; The monitoring module is also used to If the similarity between the first keyword and the second keyword meets the set threshold: then, according to the category identifier in the short link record, obtaining a sensitive word corresponding to the category identifier, and determining whether the second keyword includes the sensitive word; If the second keyword includes the sensitive word, the record status of the short link record is updated to prohibit access.

6. The device according to claim 5, characterized in that The similarity determination module is also used to: Normalizing the first keyword and the second keyword to obtain a normalized keyword; According to the normalized keywords, a keyword array is formed; Determine a word vector of the first keyword and a word vector of the second keyword based on the first keyword and its word frequency, the second keyword and its word frequency, and the keyword array; The similarity between the first keyword and the second keyword is determined according to the word vector of the first keyword and the word vector of the second keyword.

7. The device according to claim 6, characterized in that The similarity determination module is also used to: The sum of the word frequency of the first keyword and the word frequency of the second keyword is used as the word frequency of the keyword after the normalization processing; Sorting the normalized keywords according to the word frequencies of the normalized keywords to obtain a keyword sequence; The normalized keywords form a keyword array based on the keyword sequence.

8. The device according to claim 6, characterized in that The similarity determination module is also used to: Traversing the keyword array: taking the word frequency of the first keyword as the corresponding value of the first keyword in the keyword array; setting the corresponding value of the second keyword in the keyword array to 0; Based on the corresponding values ​​in the keyword array, determine the word vector of the first keyword.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.