Page risk content identification method and device, equipment and storage medium

By comparing the page characteristic value with the characteristic value of the risk-identified page, it is determined whether the second page is repeated, which solves the problem of missing and repeated detection in the detection of page risk content in the existing technology, and improves the accuracy and efficiency of identification.

CN118673226APending Publication Date: 2024-09-20BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310267461.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

When the existing technology detects risky content on a page, there are problems such as leakage of risky content and repeated page detection, which affects the accuracy and efficiency of identifying risky content.

Method used

By obtaining the page characteristic value and comparing it with the characteristic value of the risk-identified page, it is determined whether the second page is a duplicate of the identified page, thereby avoiding repeated identification and missed release, and improving the accuracy and efficiency of page risk content identification.

Benefits of technology

It realizes distinguishing pages from the dimension of page content, avoids repeated identification of the same pages and leakage of risky content, and improves the accuracy and disposal efficiency of identifying risky content on pages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673226A
    Figure CN118673226A
Patent Text Reader

Abstract

The embodiment of the invention provides a page risk content identification method and device, equipment and a storage medium. The method comprises the steps that a page feature value sent by a client side is obtained, and the page feature value is a character string determined based on content information of a first page of a target application program; the page feature value is compared with a page feature value of a page subjected to risk identification, and the page subjected to risk identification is a page with a risk content identification result; a second page is determined according to the feature value comparison result, page risk content identification is conducted on the second page, and the second page is the first page which is not repeated with the page subjected to risk identification. According to the embodiment of the invention, the page is distinguished from the dimension of the page content, repeated identification of the page with the same page content can be avoided, the situations of missing of the risk content, repeated detection of the page and the like are reduced, and the accuracy of identifying the risk content of the page and the page processing efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to network information technology, and more particularly to a method, apparatus, device and storage medium for identifying risky content of a page related to page security. Background Art

[0002] With the popularization of Internet applications, users can easily obtain information from the Internet, resulting in more and more risky content being displayed to users through web pages, making users' behavior of accessing web pages fraught with security risks.

[0003] At present, risk detection is usually performed on pages pointed to by different URLs (Uniform Resource Locators), and the URLs corresponding to risky pages are blocked. However, page risk detection based on the URL dimension has at least the problem of missing risk content and repeated page detection, which affects the accuracy of identifying risky content on the page and the efficiency of page handling. Summary of the invention

[0004] The embodiments of the present disclosure provide a method, apparatus, device and storage medium for identifying risky content on a page, which can improve the problems of missing risky content and repeated page detection, and enhance the accuracy of identifying risky content on a page and the efficiency of page handling.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for identifying risky content on a page, comprising:

[0006] Acquire a page feature value sent by the client, wherein the page feature value is a character string determined based on content information of a first page of a target application;

[0007] Comparing the page feature value with the page feature value of a risk-identified page, wherein the risk-identified page is a page with a risk content identification result;

[0008] A second page is determined according to the result of the feature value comparison, and page risk content identification is performed on the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

[0009] In a second aspect, the present disclosure also provides a method for identifying risky content on a page, including:

[0010] Get the code information of the first page of the target application;

[0011] Acquire content text and material content according to the code information, and generate a page feature value of the first page according to the content text and material content;

[0012] The page feature value is sent to a server, and the server compares the page feature value with the page feature value of a risk-identified page, determines a second page according to the feature value comparison result, and performs page risk content identification on the second page, wherein the risk-identified page is a page with a risk content identification result, and the second page is a first page that is not duplicated with the risk-identified page.

[0013] In a third aspect, the present disclosure also provides a device for identifying risky content on a page, the device comprising:

[0014] A feature value acquisition module, used to acquire a page feature value sent by a client, wherein the page feature value is a character string determined based on content information of a first page of a target application;

[0015] A feature value comparison module, used to compare the page feature value with the page feature value of a risk-identified page, wherein the risk-identified page is a page with a risk content identification result;

[0016] The risk identification module is used to determine the second page according to the feature value comparison result, and identify the page risk content of the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

[0017] In a fourth aspect, the present disclosure also provides a device for identifying risky content on a page, the device comprising:

[0018] An information acquisition module, used to acquire code information of the first page of the target application;

[0019] A feature value generating module, configured to obtain a content text and a material content according to the code information, and generate a page feature value of the first page according to the content text and the material content;

[0020] A feature value sending module is used to send the page feature value to a server, and the server compares the page feature value with the page feature value of a risk-identified page, determines a second page according to the feature value comparison result, and performs page risk content identification on the second page, wherein the risk-identified page is a page with a risk content identification result, and the second page is a first page that is not repeated with the risk-identified page.

[0021] In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0022] one or more processors;

[0023] a storage device for storing one or more programs,

[0024] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for identifying risky content on a page as described in the embodiment of the present disclosure.

[0025] In a sixth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the page risk content identification method as described in the embodiment of the present disclosure.

[0026] The disclosed embodiments provide a method, apparatus, device and storage medium for identifying risky content on a page. The method compares a page feature value of a first page with a page feature value of a risk-identified page, determines a second page in the first page that is not duplicated with the risk-identified page according to a feature value comparison result, and identifies the risky content of the second page, thereby distinguishing pages from the dimension of page content. This can avoid repeated identification of pages with the same content, reduce the omission of risky content and repeated detection of pages, and improve the accuracy of page risk content identification and page handling efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0028] Figure 1 A schematic diagram of a flow chart of a method for identifying risky content on a page provided by an embodiment of the present disclosure;

[0029] Figure 2 A flowchart of another method for identifying risky content on a page provided by an embodiment of the present disclosure;

[0030] Figure 3 A schematic diagram of a method for identifying a private page based on page feature values ​​provided by an embodiment of the present disclosure;

[0031] Figure 4 A flowchart of another method for identifying risky content on a page provided by an embodiment of the present disclosure;

[0032] Figure 5 A schematic diagram of interaction between a client and a server provided in an embodiment of the present disclosure;

[0033] Figure 6 A flowchart of another method for identifying risky content on a page provided by an embodiment of the present disclosure;

[0034] Figure 7A corresponding relationship diagram of a URL, a page screenshot and a page feature value provided in an embodiment of the present disclosure;

[0035] Figure 8 A schematic diagram of the structure of a device for identifying risky content on a page provided by an embodiment of the present disclosure;

[0036] Fig. 9 A schematic diagram of the structure of another device for identifying risky content on a page provided by an embodiment of the present disclosure;

[0037] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0038] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0039] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0040] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0041] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0042] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0043] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0044] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0045] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0046] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0047] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0048] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0049] In the current content detection and governance scenarios of mini-program pages, the industry conducts content identification on pages with different URLs to prevent risky content from being distributed and displayed to users, and processes pages detected to contain risky content in the URL dimension. The current way to define a mini-program page is to form a page URL through the mini-program ID, page path, and page query triple. When it is detected that a page pointed to by a certain URL contains risky content, it is blocked when the user opens the page corresponding to the URL. The differences and similarities in the URLs are used to determine whether at least two pages are the same page. If the URLs are the same, the same treatment method is used.

[0050] However, since the content of the same URL page may change over time or due to developer actions, after risk content identification for a URL is performed, risk content that may appear on the page after the change may be missed, affecting the accuracy of risk content identification.

[0051] Alternatively, the same URL points to different page contents, and different users may present different contents when accessing the same URL. As a result, after risky content is identified for a URL, other pages that do not contain risky content may be dealt with in conjunction, affecting the accuracy of risky content identification.

[0052] Alternatively, pages pointed to by different URLs may have the same page content. For example, the page query contains information such as timestamps, but the URLs are different only due to differences in opening time. If the risk content of a page is identified based on the URL dimension, a large number of pages with the same content may be identified for risk content, wasting computing resources and affecting the efficiency of risk processing. It is also possible that after a page with risk content is processed, other pages with the same content may still be displayed due to inconsistent URLs, resulting in the problem of missing risks and affecting the accuracy of risk content identification.

[0053] In order to solve the technical problems existing in the above-mentioned risky content identification solution for a page, an embodiment of the present disclosure provides a method for identifying risky content for a page.

[0054] Figure 1 A flow chart of a method for identifying risky content on a page provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to scenarios where risky content is identified on a page, especially scenarios where risky content is identified on a mini-program page. The method can be performed by a page risk content identification device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a server, etc.

[0055] like Figure 1 As shown, the method includes:

[0056] S110: Obtain the page feature value sent by the client.

[0057] The client may be an application installed on a user terminal, etc. The client may be equipped with a mini-program, so that the mini-program can be used through the client without downloading or installing the mini-program. The page feature value may be a string determined based on the content information of the first page of the target application, and the page feature value may be used to represent the page. The target application may be a mini-program, which refers to an application installed on other platforms and can be used in the platform without downloading and installing. The first page may be a page visited by the user.

[0058] In some embodiments, the client can calculate and report the page characteristic value after loading the mini-program page. The server obtains the page characteristic value sent by the client. For example, the client responds to the access request of the mini-program page, obtains the page resource, loads and parses the page resource to obtain the page content, calculates the page characteristic value according to the page content, and reports the page characteristic value to the server, so that the server obtains the page characteristic value of the mini-program page. Optionally, the server can also obtain the page characteristic value of the mini-program page by polling the client.

[0059] S120: Compare the page feature value with the page feature value of the risk-identified page.

[0060] The risk-identified page is a page with risk content identification results. For example, the risk-identified page is a page that has been identified for risk content, and a risk content identification result is obtained to determine whether the page has risk content.

[0061] It should be noted that there are many ways to identify risky content on a mini program page, which are not specifically limited in the embodiments of the present disclosure. In some embodiments, the page image and / or page text of the mini program page is collected, and multiple risk content identification models are combined to detect whether the page contains risky content.

[0062] In other embodiments, the server simulates the client behavior to obtain detailed information of a high-visit page, and inputs the detailed information of the page into a variety of risk content identification models for identification, thereby detecting whether the page contains risky content.

[0063] In some other embodiments, the server sends a lightweight content recognition model to the client, performs initial risk content recognition on the target page through the content recognition model in the client, and obtains the risk page that the client recognizes as having risk content. The server performs a re-detection of the page content based on the page image and / or page text of the risk page, combined with the detailed information of the page obtained by the server simulation, and screens out the risk pages with a probability of risk content greater than a set threshold, and determines the risk content recognition result through manual review. Among them, the detailed information of the page can be understood as the content of the page displayed by the client through the server simulation.

[0064] Exemplarily, a page feature value base library may be established, and the page feature values ​​of risk-identified pages may be added to the page feature value base library to obtain a page feature value library. In the disclosed embodiment, obtaining the page feature values ​​of risk-identified pages may include obtaining each page feature value in the page feature value library.

[0065] In the embodiment of the present disclosure, the risk content identification result of the risk-identified page is also associated with the page characteristic value. It should be noted that there are many ways to associate the risk content identification result of the risk-identified page with the page characteristic value, and the present disclosure does not specifically limit it. For example, with the page characteristic value as the key and the risk content identification result as the value, the risk content identification result of the risk-identified page and the page characteristic value are associated and stored in a key-value pair manner. Alternatively, the page characteristic value is used as the index of the risk content identification result, and the association relationship between the risk content identification result of the risk-identified page and the page characteristic value is established in an index manner.

[0066] In some embodiments, comparing the page feature value with the page feature value of the risk-identified page includes comparing the page feature value with the page feature value in a preset page feature value library, wherein the preset page feature value library includes the page feature value of the risk-identified page; and determining the feature value comparison result according to whether the page feature value exists in the preset page feature value library. If the page feature value is traversed to the page feature value library, it is determined that the feature value comparison result is that the page feature value exists in the page feature value library. If the page feature value is not traversed to the page feature value library, it is determined that the feature value comparison result is that the page feature value does not exist in the page feature value library.

[0067] S130. Determine a second page according to the feature value comparison result, and perform page risk content identification on the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

[0068] The feature value comparison result may be a result obtained by performing consistency comparison between the page feature value and the page feature value of the risk-identified page. For example, the feature value comparison result may include a traversal result obtained by traversing the page feature value library using the page feature value.

[0069] In some embodiments, after determining the feature value comparison result based on whether the page feature value exists in a preset page feature value library, it also includes: if the feature value comparison result of the first page meets the first condition, it is determined that the current first page is a duplicate of the risk-identified page, and the risk content identification result of the risk-identified page corresponding to the page feature value is reused.

[0070] In some embodiments, determining the second page based on the feature value comparison result includes: if the feature value comparison result of the first page meets the second condition, determining the current first page as a second page that does not overlap with the risk-identified page, and performing page risk content identification on the second page.

[0071] The first condition may be that the page feature value exists in the page feature value library, and the second condition may be that the page feature value does not exist in the page feature value library.

[0072] For example, when the characteristic value reported by the client exists in the page characteristic value library, the risk content identification result of the risk-identified page corresponding to the page characteristic value is obtained, and the first page reuses the risk content identification result of the risk-identified page, that is, it is determined that the risk content identification result of the first page is the same as that of the risk-identified page, and for this type of first page, the past risk content identification results are reused, which can avoid repeated detection of a large number of pages with the same page content, resulting in a waste of computing resources.

[0073] In the case that the page feature value reported by the client does not exist in the page feature value library, the risk content of the second page is identified based on the page content to obtain the risk content identification result of the second page. The risk content identification method is not described here. For the second page corresponding to the page feature value that does not exist in the page feature value library, risk content identification based on the page content can avoid the problem of risk omission.

[0074] Optionally, in the case where the page feature value of the client does not exist in the page feature value library, after the second page performs risk content identification on the page, the risk content identification result of the second page is associated with the page feature value, and the page feature value of the second page is added to the preset page feature value library. For page feature values ​​that do not exist in the page feature value library, after risk content identification is performed on the corresponding second page, an association relationship between the page feature value of the second page and the risk content identification result can be established, and the page feature value can be added to the page feature value library, thereby realizing real-time updating of the page feature value library based on online operation conditions.

[0075] Optionally, after determining the risk content identification result of the first page, the server may adopt a corresponding disposal method to handle the risk. For example, if the risk content identification result of the first page is that the page contains risky content, an interception instruction message is sent to the client to instruct the client to intercept the first page to avoid displaying risky content to the user. Alternatively, the server sends a page risk mark to the client to instruct the client to intercept pages with page risk marks. If the risk content identification result of the first page is that the page does not contain risky content, a default message is sent to the client to instruct the client to display the first page. Alternatively, if the client does not receive a page shielding message returned by the server within a set time after reporting the page feature value, it is determined that the first page does not contain risky content and the first page is displayed.

[0076] The technical solution of the disclosed embodiment compares the page feature value of the first page with the page feature value of the risk-identified page, determines the second page in the first page that is not duplicated with the risk-identified page according to the feature value comparison result, identifies the page risk content of the second page, and distinguishes pages from the dimension of page content. This can avoid repeated identification of pages with the same page content, reduce the omission of risk content and page duplicate detection, and improve the accuracy of page risk content identification and page handling efficiency.

[0077] Figure 2 This is a flow chart of another method for identifying risky content on a page provided by an embodiment of the present disclosure. Based on the above embodiment, the present disclosure embodiment adds a method for determining a privacy page. Figure 2 As shown, the method includes:

[0078] S210: Obtain the page feature value sent by the client.

[0079] S220 , detecting whether the first page is a private page according to the page feature value, if so, executing S230 , otherwise executing S240 .

[0080] Since private pages usually involve page contents with access permission restrictions, it is necessary to perform private page detection before identifying risky contents on the first page.

[0081] Exemplarily, detecting whether the first page is a private page according to the page feature value includes: acquiring a correspondence between a user identifier of the first page and the page feature value, and determining whether the first page is a private page according to the correspondence.

[0082] Among them, the user identification may be identification information of the user accessing the first page. For example, the user identification may include information such as user name, user ID, device ID, device IMEI, etc. The corresponding relationship may refer to the corresponding relationship between the user identification and the page feature value of the same page. For example, the corresponding relationship may include a one-to-one correspondence between the user identification and the page feature value when the same user accesses the same page. The corresponding relationship may also include a many-to-many correspondence between the user identification and the page feature value when different users access the same page. The corresponding relationship may also include a many-to-one correspondence between the user identification and the page feature value when different users access the same page, etc.

[0083] Exemplarily, when the server detects a page access event of the client, it can establish an association relationship between the first page and the user identifier. Since the first page has a corresponding relationship with the page feature value, the corresponding relationship between the user identifier and the page feature value can be determined. Optionally, when the client reports the page feature value of the first page to the server, it can also report the user identifier who accesses the first page. The server associates the user identifier and the page feature value to obtain the corresponding relationship between the user identifier and the page feature value.

[0084] For example, after obtaining the correspondence between the user identifier and the page feature value, the user identifier is clustered according to the page feature value, and whether the first page is a private page is determined according to the clustering result. In the embodiment of the present disclosure, clustering may refer to clustering user identifiers with the same page feature value into a cluster for the first page. Accordingly, the clustering result may be expressed as a user identifier cluster under different page feature values ​​for the same first page (which may have the same URL).

[0085] Since private pages usually involve page contents with access permission restrictions, private pages of different users correspond to different page feature values. Figure 3 A schematic diagram of a method for identifying a private page based on page feature values ​​provided by an embodiment of the present disclosure. Figure 3 As shown, if the page feature value of the same user for the same first page remains unchanged for a long time, and different users have different page feature values ​​for the same first page, then the first page is determined to be a private page (e.g., page A). If different users have the same page feature value for the same first page, then the first page is determined to be a publicly accessible page (e.g., page C).

[0086] Correspondingly, if for the same first page, the clustering result is multiple clusters, and the user identifiers in each cluster are the same, then the first page is determined to be a private page. If for the same first page, the clustering result is one cluster, and the user identifiers in the clusters are different, then the first page is determined to be a public access page.

[0087] In some embodiments, a whitelist may be used to store page feature values ​​for pages that do not require risk content identification. That is, pages whose page feature values ​​are in the whitelist are not subject to risk content identification. It should be noted that the method of using a whitelist to store page feature values ​​in the embodiments of the present disclosure is only an example and not a limitation. Other solutions that can be thought of by those skilled in the art for excluding certain special cases should also belong to the inventive concept of the present disclosure.

[0088] Optionally, if the first page is determined to be a private page based on the correspondence between the user identifier and the page feature value, the page feature value of the private page is added to the whitelist, so that after the page feature value of the first page is obtained next time, the whitelist can be used to determine whether to perform a risky content identification operation on the first page.

[0089] S230: Abandon the risk content identification operation on the first page.

[0090] In the case that the first page is a private page, the risk content identification operation on the first page is abandoned.

[0091] S240: Compare the page feature value with the page feature value of the risk-identified page.

[0092] S250: Determine a second page according to the feature value comparison result, and perform page risk content identification on the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

[0093] In some embodiments, the page feature value is compared with the page feature value in a preset page feature value library, wherein the preset page feature value library includes the page feature value of the risk-identified page. If the feature value comparison result of the first page meets the first condition, it is determined that the current first page is repeated with the risk-identified page, and the risk content identification result of the risk-identified page corresponding to the page feature value is reused; if the feature value comparison result of the first page meets the second condition, the current first page is determined to be a second page that is not repeated with the risk-identified page, and the second page is subjected to page risk content identification based on the page content.

[0094] In some other embodiments, after the risk content of the second page is identified, the method further includes: associating the risk content identification result of the second page with the page feature value, and adding the page feature value of the second page to a preset page feature value library.

[0095] The technical solution of the embodiment of the present disclosure detects whether the first page is a private page according to the page feature value, and abandons the risk content identification operation on the private page.

[0096] Figure 4 A flow chart of another method for identifying risky content on a page provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the scenario of identifying risky content on a first page, especially the scenario of identifying risky content on a mini-program page. The method can be performed by a page risk content identification device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal or a PC, etc.

[0097] like Figure 4 As shown, the method includes:

[0098] S410: Obtain code information of the first page of the target application.

[0099] Among them, the target application can be a third-party application installed on the platform, for example, the target application can be a small program installed on the client. The first page can be a page accessed by the user. For example, the first page can be a small program page opened by the user, or a page loaded by the client in response to the access request of the small program page. In response to the access request of the small program page, the client obtains the page resource of the first page, loads and parses the page resource to obtain code information. Among them, the page resource can include code information, content text, material content, etc. The code information is the code corresponding to the page, for example, the code information can be a descriptive text composed of HTML (Hyper Text Markup Language) commands, and the HTML command can describe text, graphics, animation, sound, table, link, etc. The content text can be the text between tags in the HTML command. The material content can include links, reference files, graphic data, audio data, video data, etc. in the HTML command.

[0100] Exemplarily, the client responds to the access request of the mini-program page, obtains the page resource of the first page, and loads and parses the page resource to obtain code information.

[0101] S420: Acquire content text and material content according to the code information, and generate a page feature value of the first page according to the content text and material content.

[0102] The page feature value may be a character string determined based on the content information of the first page, and the page feature value may be used to represent the page.

[0103] In some embodiments, the client can parse the code information of the first page to obtain the content text and material text in the code information, and calculate the hash value of the page based on the content text and material text. For example, the code information is parsed to obtain the main body code information between the main body tags; based on the main body code information, the content text between the tags and the material content in the code are obtained; the content text and the material content are spliced ​​to obtain the spliced ​​text, and the page feature value is determined based on the spliced ​​text.

[0104] Specifically, the code information is parsed to obtain the main code information between the main tags. The main tag is usually a tag. The main code information contains tags, and the content text between the tags is extracted by regular expressions. The code of the main code information also contains material content, and the material content in the code is extracted by regular expressions. The concatenated text obtained by concatenating the content text and the material content is calculated, and the hash value of the concatenated text is used as the page feature value.

[0105] It should be noted that the embodiment of the present disclosure may use any hash value algorithm to calculate the hash value of the concatenated text, for example, using the MD5 algorithm to calculate the hash value of the concatenated text as the page feature value.

[0106] In some other embodiments, the content text and material content in the code information can be marked, and the marked code information is used to train a feature extraction model, so that the trained feature extraction model can extract the content text and material content in the code information, and generate a page feature value based on the content text and material content. Accordingly, the content text and material content are obtained according to the code information, and the page feature value of the first page is generated according to the content text and material content, including inputting the code information into the feature extraction model, obtaining the page feature value output by the feature extraction model, wherein the feature extraction model is used to extract the content text and material content in the code information, and generate the page feature value based on the content text and material content.

[0107] In some other embodiments, a page image (e.g., a page screenshot) may be obtained, and a hash value of the page image may be calculated using an image hash algorithm. Alternatively, the client may calculate a hash value of the page image using a feature extraction algorithm. The feature extraction algorithm may include an artificial feature operator, a neural network algorithm, a local sensitive hash algorithm, etc.

[0108] Optionally, since the material content of the page may be repeated, before splicing the content text and the material content, the following may be included: performing a deduplication operation on the material content to obtain new material content, and then splicing the content text and the new material content. The disclosed embodiment does not specifically limit the splicing order, and the content text may be spliced ​​to the material content after deduplication screening, or the material content after deduplication screening may be spliced ​​to the content text. However, it should be noted that the same splicing order should be used for all pages of the target application.

[0109] For example, performing a deduplication operation on the material content may include: filtering out duplicate links in the material content by comparing the consistency of links. Filtering out duplicate quoted texts in the material content by comparing the consistency of quoted texts. Filtering out duplicate graphic data in the material content by comparing the consistency of graphic data. Filtering out duplicate audio data in the material content by comparing the consistency of audio data. Filtering out duplicate video data in the material content by comparing the consistency of video data.

[0110] Optionally, since the material content may contain some information irrelevant to the page content, such as spaces, punctuation marks, etc., the information irrelevant to the page content in the material content may be filtered out by using preset filtering rules.

[0111] S430, sending the page feature value to the server, comparing the page feature value with the page feature value of the risk-identified page by the server, determining a second page according to the feature value comparison result, and performing page risk content identification on the second page.

[0112] The risk-identified page is a page having risk content identification results, and the second page is a first page that is not duplicated with the risk-identified page.

[0113] Figure 5 A schematic diagram of interaction between a client and a server provided in an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the page risk content identification system 100 includes a laptop 103, a smart phone 102, a tablet computer 101 and a server 105, and the laptop 103, the smart phone 102, and the tablet computer 101 are connected to the server 105 through the Internet 104. For example, in the page risk content identification system, the client is configured on electronic devices such as the laptop 103, the smart phone 102, and the tablet computer 101, and the server is configured on electronic devices such as the server 105. A long connection can be established between the client and the server, and the client can send the page feature value to the server through the long connection after calculating the page feature value.

[0114] Optionally, if the client receives an interception indication message sent by the server, the interception indication message is parsed to obtain the first page, and the first page is abandoned for display. If the client receives a page risk mark sent by the server, the first page corresponding to the page risk mark is abandoned for display. If the client receives a default message sent by the server, the first page is displayed. If the client does not receive a page blocking message returned by the server within a set time after reporting the page feature value, it is determined that the first page does not contain risky content, and the first page is displayed.

[0115] Among them, displaying the first page can be understood as displaying the first page content through the client. For example, the client performs page rendering based on the loaded page resources. Page rendering can be a process in which the client completes page layout and drawing based on the loaded page resources. It should be noted that after a page rendering is completed, the target application jumps from one stable display page to another stable display page.

[0116] The technical solution of the disclosed embodiment obtains the code information of the first page of the target application, generates and reports a page feature value based on the code information, compares the page feature value of the first page with the page feature value of the risk-identified page through the server, and determines the risk content identification result of the first page based on the feature value comparison result, thereby distinguishing pages from the dimension of page content, avoiding repeated identification of pages with the same page content, reducing the omission of risk content and repeated page detection, and improving the accuracy of page risk content identification and page handling efficiency.

[0117] Figure 6 This is a flow chart of another method for identifying risky content on a page provided by an embodiment of the present disclosure. The embodiment of the present disclosure specifically describes a method for calculating a page feature value based on HTML code information.

[0118] like Figure 6 As shown, the method includes:

[0119] S610: Obtain HTML code of the first page of the target application.

[0120] S620: Extract body code information corresponding to the body content in the HTML code.

[0121] S630: Extract the content text between the tags of the main code information.

[0122] S640: extracting material content in the main code information, including links, reference files and coded data.

[0123] The encoded data may include graphic data, audio data, video data, etc.

[0124] S650: After deduplication and screening of the material content, splicing with the content text is performed.

[0125] S660: Calculate the MD5 value of the concatenated long text, which is the page feature value of the first page.

[0126] Figure 7 A correspondence diagram of a URL, a page screenshot, and a page feature value provided in an embodiment of the present disclosure. Figure 7The first three rows show that for pages with different URLs but the same page feature values, the page contents displayed in their page screenshots are also the same. Figure 7 The last three lines show that for pages with the same URL but different page feature values, the page contents displayed in the page screenshots are completely inconsistent. Figure 7 It can be seen that even if it is the same URL, if the page content is modified, the page feature value will be different. Therefore, the page feature value can make up for the deficiency of URL in identifying page content changes.

[0127] The disclosed embodiment can distinguish situations where the content of pages under the same URL is different, avoiding the risk of missing page content changes and the problem of jointly handling non-risk content when handling URLs. It can also aggregate pages with the same content but different URLs to avoid repeated detection, save detection resource overhead, and jointly handle the same illegal pages to avoid risky omissions.

[0128] Figure 8 The following is a schematic diagram of a device for identifying risky content on a page provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can be configured in an electronic device, typically a server, etc. Figure 8 As shown, the apparatus for identifying risky content on a page provided in this embodiment includes: a feature value acquisition module 810 , a feature value comparison module 820 and a risk identification module 830 .

[0129] The feature value acquisition module 810 is used to acquire the page feature value sent by the client, wherein the page feature value is a character string determined based on the content information of the first page of the target application;

[0130] A feature value comparison module 820 is used to compare the page feature value with the page feature value of a risk-identified page, wherein the risk-identified page is a page with a risk content identification result;

[0131] The risk identification module 830 is used to determine a second page according to the feature value comparison result, and perform page risk content identification on the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

[0132] A device for identifying risky content of a page provided by an embodiment of the present disclosure compares a page feature value of a first page with a page feature value of a risk-identified page, determines a second page in the first page that is not duplicated with the risk-identified page according to a feature value comparison result, identifies the risky content of the second page, and distinguishes pages from the dimension of page content, thereby avoiding repeated identification of pages with the same content, reducing the omission of risky content and repeated detection of pages, and improving the accuracy of risky content identification and page handling efficiency.

[0133] In the above solution, the feature value comparison module 820 is specifically used for:

[0134] Comparing the page feature value with page feature values ​​in a preset page feature value library, wherein the preset page feature value library includes page feature values ​​of risk-identified pages;

[0135] The feature value comparison result is determined according to whether the page feature value exists in a preset page feature value library.

[0136] In the above scheme, the device also includes:

[0137] The feature value library updating module is used to associate the risk content identification result of the second page with the page feature value after identifying the page risk content of the second page, and add the page feature value of the second page to the preset page feature value library.

[0138] Furthermore, the device also includes:

[0139] A result reuse module is used to determine the feature value comparison result according to whether the page feature value exists in a preset page feature value library. If the feature value comparison result of the first page meets the first condition, it is determined that the current first page is a duplicate of the risk-identified page, and the risk content identification result of the risk-identified page corresponding to the page feature value is reused.

[0140] In the above solution, the risk identification module 830 is specifically used for:

[0141] If the result of the feature value comparison of the first page satisfies the second condition, the current first page is determined as a second page that does not overlap with the risk-identified page.

[0142] In the above scheme, the device also includes:

[0143] A privacy page detection module is used to detect whether the first page is a privacy page based on the page feature value after obtaining the page feature value sent by the client; if the first page is a privacy page, abandon the risk content identification operation on the first page; if the first page is a publicly accessible page, perform the step of comparing the page feature value with the page feature value of the risk-identified page.

[0144] Furthermore, the privacy page detection module is specifically used to:

[0145] A correspondence between a user identifier and a page feature value of the first page is obtained, and whether the first page is a private page is determined according to the correspondence.

[0146] Furthermore, the privacy page detection module is specifically used to:

[0147] The user identifications are clustered according to the page feature values, and whether the first page is a private page is determined according to the clustering result.

[0148] Fig. 9 This is a schematic diagram of another apparatus for identifying risky content on a page provided by an embodiment of the present disclosure. The apparatus can be implemented by software and / or hardware and can be configured in an electronic device, typically a mobile terminal, a PC, etc. Fig. 9 As shown, the apparatus for identifying risky content on a page provided in this embodiment includes: an information acquisition module 910 , a feature value generation module 920 , and a feature value sending module 930 .

[0149] An information acquisition module 910 is used to acquire code information of the first page of a target application;

[0150] A feature value generating module 920, configured to obtain a content text and a material content according to the code information, and generate a page feature value of the first page according to the content text and the material content;

[0151] The characteristic value sending module 930 is used to send the page characteristic value to the server, and the server compares the page characteristic value with the page characteristic value of the risk-identified page, determines the second page according to the characteristic value comparison result, and performs page risk content identification on the second page, wherein the risk-identified page is a page with a risk content identification result, and the second page is a first page that is not repeated with the risk-identified page.

[0152] Another device for identifying page risk content provided by the disclosed embodiment obtains code information of a first page of a target application, generates and reports a page feature value according to the code information, compares the page feature value of the first page with the page feature value of a risk-identified page through a server, determines a second page according to a result of the feature value comparison, and identifies page risk content for the second page, wherein the second page is a first page that is not duplicated with the risk-identified page, thereby achieving page differentiation from the dimension of page content, avoiding repeated identification of pages with the same page content, reducing the omission of risk content and repeated detection of pages, and improving the accuracy of page risk content identification and page handling efficiency.

[0153] In the above solution, the feature value generating module 920 is specifically used for:

[0154] Parsing the code information to obtain subject code information between subject tags;

[0155] Based on the main code information, obtain the content text between tags and the material content in the code;

[0156] The content text and the material content are spliced ​​to obtain a spliced ​​text, and a page feature value is determined according to the spliced ​​text.

[0157] In the above solution, the feature value generating module 920 is further specifically used for:

[0158] The code information is input into a feature extraction model to obtain a page feature value output by the feature extraction model, wherein the feature extraction model is used to extract content text and material content in the code information and generate a page feature value according to the content text and material content.

[0159] The device for identifying risky content on a page provided by the embodiments of the present disclosure can execute the method for identifying risky content on a page provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0160] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0161] Fig.10 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Fig.10 , which shows an electronic device (eg, Fig.10 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The electronic 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 disclosure.

[0162] like Fig.10As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An edit / output (I / O) interface 1005 is also connected to the bus 1004.

[0163] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0164] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0165] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0166] The electronic device provided in the embodiment of the present disclosure and the page risk content identification method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0167] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method for identifying risky content on a page provided in the above embodiments is implemented.

[0168] It should be noted that the computer-readable medium disclosed above 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 disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, 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 suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0169] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0170] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0171] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a page feature value sent by the client, wherein the page feature value is a character string determined based on content information of a first page of a target application;

[0172] Obtaining a page feature value of a risk-identified page, wherein the risk-identified page is a page having a risk content identification result;

[0173] The page feature value is compared with the page feature value of the risk-identified page, and the risk content identification result of the first page is determined according to the feature value comparison result.

[0174] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: obtains code information of the first page of the target application;

[0175] Acquire content text and material content according to the code information, and generate a page feature value of the first page according to the content text and material content;

[0176] The page feature value is sent to the server, and the server compares the page feature value with the page feature value of the risk-identified page, and determines the risk content identification result of the first page according to the feature value comparison result.

[0177] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0178] 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 disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / 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.

[0179] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition module may also be described as a "module for acquiring a page feature value sent by a client."

[0180] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0181] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0182] According to one or more embodiments of the present disclosure, Example 1 provides a method for identifying risky content on a page, including:

[0183] Acquire a page feature value sent by the client, wherein the page feature value is a character string determined based on content information of a first page of a target application;

[0184] Comparing the page feature value with the page feature value of a risk-identified page, wherein the risk-identified page is a page with a risk content identification result;

[0185] A second page is determined according to the result of the feature value comparison, and page risk content identification is performed on the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

[0186] According to one or more embodiments of the present disclosure, Example 2 is a method according to Example 1, wherein comparing the page feature value with the page feature value of a risk-identified page includes:

[0187] Comparing the page feature value with page feature values ​​in a preset page feature value library, wherein the preset page feature value library includes page feature values ​​of risk-identified pages;

[0188] The feature value comparison result is determined according to whether the page feature value exists in a preset page feature value library.

[0189] According to one or more embodiments of the present disclosure, Example 3 is a method according to Example 2, and after identifying the risky content of the second page, further includes:

[0190] The risk content identification result of the second page is associated with the page feature value, and the page feature value of the second page is added to a preset page feature value library.

[0191] According to one or more embodiments of the present disclosure, Example 4 is a method according to Example 2, after determining a feature value comparison result according to whether the page feature value exists in a preset page feature value library, further comprising:

[0192] If the feature value comparison result of the first page meets the first condition, it is determined that the current first page is a duplicate of the risk-identified page, and the risk content identification result of the risk-identified page corresponding to the page feature value is reused.

[0193] According to one or more embodiments of the present disclosure, Example 5 is the method according to Example 1, wherein determining the second page according to the feature value comparison result includes:

[0194] If the result of the feature value comparison of the first page satisfies the second condition, the current first page is determined as a second page that does not overlap with the risk-identified page.

[0195] According to one or more embodiments of the present disclosure, Example 6 is a method according to Example 1, and after obtaining the page feature value sent by the client, further includes:

[0196] Detecting whether the first page is a private page according to the page feature value;

[0197] In the case where the first page is a private page, abandoning the risk content identification operation on the first page;

[0198] In the case where the first page is a publicly accessible page, a step of comparing the page feature value with the page feature value of a risk-identified page is performed.

[0199] According to one or more embodiments of the present disclosure, Example 7 is the method according to Example 6, wherein detecting whether the first page is a private page according to the page feature value includes:

[0200] A correspondence between a user identifier and a page feature value of the first page is obtained, and whether the first page is a private page is determined according to the correspondence.

[0201] According to one or more embodiments of the present disclosure, Example 8 is the method according to Example 7, wherein determining whether the first page is a private page according to the corresponding relationship includes:

[0202] The user identifications are clustered according to the page feature values, and whether the first page is a private page is determined according to the clustering result.

[0203] According to one or more embodiments of the present disclosure, Example 9 provides another method for identifying risky content on a page, including:

[0204] Get the code information of the first page of the target application;

[0205] Acquire content text and material content according to the code information, and generate a page feature value of the first page according to the content text and material content;

[0206] The page feature value is sent to a server, and the server compares the page feature value with the page feature value of a risk-identified page, determines a second page according to the feature value comparison result, and performs page risk content identification on the second page, wherein the risk-identified page is a page with a risk content identification result, and the second page is a first page that is not duplicated with the risk-identified page.

[0207] According to one or more embodiments of the present disclosure, Example 10 is the method according to Example 9, wherein obtaining content text and material content according to the code information, and generating a page feature value of the first page according to the content text and material content includes:

[0208] Parsing the code information to obtain subject code information between subject tags;

[0209] Based on the main code information, obtain the content text between tags and the material content in the code;

[0210] The content text and the material content are spliced ​​to obtain a spliced ​​text, and a page feature value is determined according to the spliced ​​text.

[0211] According to one or more embodiments of the present disclosure, Example 11 is the method according to Example 9, wherein obtaining content text and material content according to the code information, and generating a page feature value of the first page according to the content text and material content includes:

[0212] The code information is input into a feature extraction model to obtain a page feature value output by the feature extraction model, wherein the feature extraction model is used to extract content text and material content in the code information and generate a page feature value according to the content text and material content.

[0213] According to one or more embodiments of the present disclosure, Example 12 provides a device for identifying risky content on a page, including:

[0214] A feature value acquisition module, used to acquire a page feature value sent by a client, wherein the page feature value is a character string determined based on content information of a first page of a target application;

[0215] A feature value comparison module, used to compare the page feature value with the page feature value of a risk-identified page, wherein the risk-identified page is a page with a risk content identification result;

[0216] The risk identification module is used to determine the second page according to the feature value comparison result, and identify the page risk content of the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

[0217] According to one or more embodiments of the present disclosure, Example 13 provides another apparatus for identifying risky content on a page, including:

[0218] An information acquisition module, used to acquire code information of the first page of the target application;

[0219] A feature value generating module, configured to obtain a content text and a material content according to the code information, and generate a page feature value of the first page according to the content text and the material content;

[0220] A feature value sending module is used to send the page feature value to a server, and the server compares the page feature value with the page feature value of a risk-identified page, determines a second page according to the feature value comparison result, and performs page risk content identification on the second page, wherein the risk-identified page is a page with a risk content identification result, and the second page is a first page that is not repeated with the risk-identified page.

[0221] According to one or more embodiments of the present disclosure, Example 14 provides an electronic device, the electronic device comprising:

[0222] one or more processors;

[0223] a storage device for storing one or more programs,

[0224] When the one or more programs are executed by the one or more processors, the one or more processors implement the page risk content identification method as described in any one of Examples 1-11.

[0225] According to one or more embodiments of the present disclosure, Example 15 provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to perform a page risk content identification method as described in any one of Examples 1-11.

[0226] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0227] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0228] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for identifying risky content on a page, characterized in that: include: Acquire a page feature value sent by the client, wherein the page feature value is a character string determined based on content information of a first page of a target application; Comparing the page feature value with the page feature value of a risk-identified page, wherein the risk-identified page is a page with a risk content identification result; A second page is determined according to the result of the feature value comparison, and page risk content identification is performed on the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

2. The method according to claim 1, characterized in that The comparing the page feature value with the page feature value of the risk-identified page includes: Comparing the page feature value with page feature values ​​in a preset page feature value library, wherein the preset page feature value library includes page feature values ​​of risk-identified pages; The feature value comparison result is determined according to whether the page feature value exists in a preset page feature value library.

3. The method according to claim 2, characterized in that After identifying the risk content of the second page, the method further includes: The risk content identification result of the second page is associated with the page feature value, and the page feature value of the second page is added to a preset page feature value library.

4. The method according to claim 2, characterized in that: After determining the feature value comparison result according to whether the page feature value exists in a preset page feature value library, the method further includes: If the feature value comparison result of the first page meets the first condition, it is determined that the current first page is a duplicate of the risk-identified page, and the risk content identification result of the risk-identified page corresponding to the page feature value is reused.

5. The method according to claim 1, characterized in that The determining the second page according to the feature value comparison result includes: If the result of the feature value comparison of the first page satisfies the second condition, the current first page is determined as a second page that does not overlap with the risk-identified page.

6. The method according to claim 1, characterized in that After obtaining the page feature value sent by the client, it also includes: Detecting whether the first page is a private page according to the page feature value; In the case where the first page is a private page, abandoning the risk content identification operation on the first page; In the case where the first page is a publicly accessible page, a step of comparing the page feature value with the page feature value of a risk-identified page is performed.

7. The method according to claim 6, characterized in that The detecting, according to the page feature value, whether the first page is a private page includes: A correspondence between a user identifier and a page feature value of the first page is obtained, and whether the first page is a private page is determined according to the correspondence.

8. The method according to claim 7, characterized in that The determining whether the first page is a private page according to the corresponding relationship includes: The user identifications are clustered according to the page feature values, and whether the first page is a private page is determined according to the clustering result.

9. A method for identifying risky content on a page, characterized in that: include: Get the code information of the first page of the target application; Acquire content text and material content according to the code information, and generate a page feature value of the first page according to the content text and material content; The page feature value is sent to a server, and the server compares the page feature value with the page feature value of a risk-identified page, determines a second page according to the feature value comparison result, and performs page risk content identification on the second page, wherein the risk-identified page is a page with a risk content identification result, and the second page is a first page that is not duplicated with the risk-identified page.

10. The method according to claim 9, characterized in that The acquiring the content text and the material content according to the code information, and generating the page feature value of the first page according to the content text and the material content, includes: Parsing the code information to obtain subject code information between subject tags; Based on the main code information, obtain the content text between tags and the material content in the code; The content text and the material content are spliced ​​to obtain a spliced ​​text, and a page feature value is determined according to the spliced ​​text.

11. The method according to claim 9, characterized in that The acquiring the content text and the material content according to the code information, and generating the page feature value of the first page according to the content text and the material content, includes: The code information is input into a feature extraction model to obtain a page feature value output by the feature extraction model, wherein the feature extraction model is used to extract content text and material content in the code information and generate a page feature value according to the content text and material content.

12. A device for identifying risky content on a page, characterized in that: include: A feature value acquisition module, used to acquire a page feature value sent by a client, wherein the page feature value is a character string determined based on content information of a first page of a target application; A feature value comparison module, used to compare the page feature value with the page feature value of a risk-identified page, wherein the risk-identified page is a page with a risk content identification result; The risk identification module is used to determine the second page according to the feature value comparison result, and identify the page risk content of the second page, wherein the second page is a first page that is not repeated with the risk-identified page.

13. A device for identifying risky content on a page, characterized in that: include: An information acquisition module, used to acquire code information of the first page of a target application; A feature value generating module, used for acquiring content text and material content according to the code information, and generating a page feature value of the first page according to the content text and material content; A feature value sending module is used to send the page feature value to a server, and the server compares the page feature value with the page feature value of a risk-identified page, determines a second page according to the feature value comparison result, and performs page risk content identification on the second page, wherein the risk-identified page is a page with a risk content identification result, and the second page is a first page that is not repeated with the risk-identified page.

14. An electronic device, characterized in that: The electronic device comprises: 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 for identifying risky content on a page as described in any one of claims 1-11.

15. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the page risk content identification method as described in any one of claims 1-11 when executed by a computer processor.

Citation Information

Patent Citations

  • Data processing method, data sending method, and risk identifying method and device

    CN107645533A

  • Webpage access security detection method and device and storage medium

    CN115225291A