Website identification method, electronic equipment and computer readable medium
By analyzing the link URLs that meet preset conditions in the web pages of the user's current visit in anti-fraud technology, the problem of the existing technology failing to effectively identify the links in the web pages is solved, and the recognition rate and scanning speed of harmful URLs are improved, and network fraud is effectively prevented.
Patent Information
- Application Number
- CN202311113544.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2025-02-28
AI Technical Summary
Existing anti-fraud technology only scans the URLs visited by users and does not scan the jump links contained in the web page, resulting in a low recognition rate of harmful URLs.
By determining whether there are link URLs that meet the preset conditions in the web page corresponding to the user's current access URL, and analyzing whether these link URLs are normal URLs, the recognition rate of harmful URLs is improved.
It improves the recognition rate of harmful URLs, enhances scanning speed, and effectively prevents online fraud.
Smart Images

Figure CN119545358A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a website identification method, an electronic device, and a computer-readable medium. Background Art
[0002] In recent years, online fraud has become increasingly rampant, causing great social harm. Government departments attach great importance to it and have put forward requirements for mobile phone manufacturers, requiring them to integrate anti-fraud functions in mobile phone systems and browsers. Government departments have also established a blacklist of fraudulent websites for mobile phone manufacturers to use. Anti-fraud related technologies are in a period of rapid development. The government has also launched an anti-fraud APP, and various mobile phone manufacturers have also actively responded to government departments to develop and apply anti-fraud related technologies.
[0003] The anti-fraud technology currently available on the market only scans the URLs visited by users, but does not scan the jump links contained in the current web page, which reduces the recognition rate of harmful URLs. Summary of the invention
[0004] Embodiments of the present application provide a website identification method, an electronic device, and a computer-readable medium.
[0005] In a first aspect, an embodiment of the present application provides a website identification method, including: determining whether there is a link URL that meets preset conditions in the web page corresponding to the URL currently visited by a user; when it is determined that there is a link URL that meets the preset conditions in the web page corresponding to the URL currently visited by the user, determining whether the link URL that meets the preset conditions is a normal URL.
[0006] In a second aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; a memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, any one of the above-mentioned website identification methods is implemented.
[0007] In a third aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, any one of the above-mentioned website identification methods is implemented.
[0008] The website identification method provided in the embodiment of the present application analyzes the link URLs that meet preset conditions in the web page corresponding to the URL currently visited by the user, without the need to analyze all the link URLs, thereby improving the recognition rate of harmful URLs and also improving the scanning speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A flowchart of a website identification method provided for one embodiment of the present application;
[0010] Figure 2 A flowchart of a website identification method provided for Example 1 of an embodiment of the present application;
[0011] Figure 3 A flowchart of a website identification method provided for Example 2 of an embodiment of the present application;
[0012] Figure 4 A flowchart of a website identification method provided for Example 3 of an embodiment of the present application;
[0013] Figure 5 A flowchart of a website identification method provided for Example 3 of an embodiment of the present application;
[0014] Figure 6 A block diagram of the composition of an electronic device provided in accordance with another embodiment of the present application. DETAILED DESCRIPTION
[0015] In order to enable those skilled in the art to better understand the technical solution of the present application, the website identification method, electronic device, and computer-readable medium provided by the present application are described in detail below in conjunction with the accompanying drawings.
[0016] Example embodiments will be described more fully below with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make this application thorough and complete and to enable those skilled in the art to fully understand the scope of this application.
[0017] In the absence of conflict, the embodiments of the present application and the features therein may be combined with each other.
[0018] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.
[0019] The terms used herein are only used to describe specific embodiments and are not intended to limit the present application. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of at least one other feature, whole, step, operation, element, component and / or its group is not excluded.
[0020] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined herein.
[0021] Figure 1 A flowchart of a website identification method provided for one embodiment of the present application.
[0022] First, refer to Figure 1 An embodiment of the present application provides a website identification method, including:
[0023] Step 100: Determine whether there is a link URL that meets a preset condition in the web page corresponding to the URL currently visited by the user.
[0024] In some exemplary embodiments, before determining whether there is a link URL that meets a preset condition in the web page corresponding to the URL currently visited by the user, the method further includes: determining whether the URL currently visited by the user is a normal URL.
[0025] When it is determined that the URL currently visited by the user is a normal URL, the step of determining whether there is a link URL meeting a preset condition in the webpage corresponding to the URL currently visited by the user is continued.
[0026] In some exemplary embodiments, determining whether the URL currently visited by the user is a normal URL includes: determining whether there is a URL matching the URL currently visited by the user in a blacklist; if there is no URL matching the URL currently visited by the user in the blacklist, determining that the URL currently visited by the user is a normal URL; if there is a URL matching the URL currently visited by the user in the blacklist, determining that the URL currently visited by the user is an abnormal URL.
[0027] In some exemplary embodiments, when there is no URL matching the URL currently visited by the user in the blacklist, the method further includes: displaying the page content of the URL currently visited by the user.
[0028] In some exemplary embodiments, the link URL in the webpage corresponding to the URL currently visited by the user is the link URL corresponding to the link tag displayed in the page content of the URL currently visited by the user.
[0029] In some exemplary embodiments, a link tag refers to an element in a web page that a user can click to jump to another website, such as at least one of a button, a picture, an audio, a video, etc. The other website to be jumped to here is the link website.
[0030] In some exemplary embodiments, when there is a URL matching the URL currently visited by the user in the blacklist, the method further includes: determining that the URL currently visited by the user is an abnormal URL.
[0031] In some exemplary embodiments, when it is determined that the website currently visited by the user is an abnormal website, the method further includes: displaying prompt information, where the prompt information is used to prompt the user that the website currently visited is an abnormal website.
[0032] In some exemplary embodiments, icons of different colors may be used to display prompt information. For example, when the icon color is green, it indicates that the URL currently visited by the user is a normal URL. When the icon color is red, it indicates that the URL currently visited by the user is an abnormal URL.
[0033] In some exemplary embodiments, the blacklist includes URLs that have been previously identified as abnormal URLs.
[0034] In some exemplary embodiments, abnormal URLs include: advertising URLs, phishing website URLs, fraud website URLs, Trojan website URLs, etc.
[0035] In some exemplary embodiments, the normal URL is a URL other than the abnormal URL.
[0036] In some exemplary embodiments, determining whether a link URL that meets preset conditions exists in a webpage corresponding to a URL currently visited by a user includes: determining whether a link URL that meets preset conditions exists in a webpage source code corresponding to a URL currently visited by a user.
[0037] In some exemplary embodiments, the preset conditions include: when the link tag corresponding to the link URL is an image, the image is an image whose content is in the form of a web page structure. In this case, the entire image is a link, and when a user clicks on any element on the image, such as text, icon, button, or even a blank area, it will jump to the same URL. The image is just a page disguised as a web page structure. Under normal circumstances, different elements of a web page structure will jump to different URLs, but if the image jumps to the same URL, further analysis is required to determine whether it is an abnormal URL.
[0038] In some exemplary embodiments, a deep learning binary classification model may be used to identify images to determine whether the images are images whose content is in the form of a web page structure.
[0039] In some exemplary embodiments, the link URLs satisfying the preset condition include: N link URLs whose corresponding link tags are semantically dissimilar to the corresponding link tags but have the same link URLs; wherein N is an integer greater than or equal to 2.
[0040] In some exemplary embodiments, the link URLs satisfying the preset conditions include: link URLs whose corresponding link tags are pictures with content in the form of web page structures; and N link URLs whose corresponding link tags are semantically dissimilar but have the same link URLs.
[0041] In some exemplary embodiments, determining whether there is a link URL that meets a preset condition in the web page corresponding to the URL currently visited by the user includes: determining whether there are N identical link URLs in the web page corresponding to the URL currently visited by the user; in the case where there are N identical link URLs in the web page corresponding to the URL currently visited by the user, determining whether the semantics of link tags corresponding to the N identical link URLs are similar; in the case where the semantics of link tags corresponding to at least two link URLs among the identical N link URLs are not similar, determining that there is a link URL that meets the preset condition in the web page corresponding to the URL currently visited by the user.
[0042] In some exemplary embodiments, when any two link URLs in the webpage corresponding to the URL currently visited by the user are not similar, it is determined that there is no link URL that meets the preset condition in the webpage corresponding to the URL currently visited by the user.
[0043] In some exemplary embodiments, when there are N identical link URLs in the web page corresponding to the URL currently visited by the user, and the semantics of the link tags corresponding to all the link URLs in the identical N link URLs are similar, it is determined that there is no link URL that meets the preset conditions in the web page corresponding to the URL currently visited by the user.
[0044] In some exemplary embodiments, determining whether the semantics of link tags corresponding to the same N link URLs are similar includes: obtaining text information corresponding to the link tags corresponding to each link URL in the N link URLs respectively; determining whether the semantics of link tags corresponding to the same N link URLs are similar according to the text information corresponding to the link tags; in the case where the semantics of the text information corresponding to the link tags corresponding to two link URLs in the same N link URLs are similar, determining that the semantics of link tags corresponding to the two link URLs in the same N link URLs are similar; in the case where the semantics of the text information corresponding to the link tags corresponding to the two link URLs in the same N link URLs are not similar, determining that the semantics of link tags corresponding to the two link URLs in the same N link URLs are not similar. For example, the semantics of "registration time", "past exam questions", "printing admission ticket", etc. are completely different. Generally, these three links jump to different URLs. If they jump to the same URL, then the same URL may be an abnormal URL, and further analysis is required to determine whether it is an abnormal URL.
[0045] In some exemplary embodiments, respectively obtaining text information corresponding to a link tag corresponding to each of N link URLs includes: when the link tag is not a picture and contains text information, obtaining the text information corresponding to the link tag from the web page source code; when the link tag is a picture, obtaining the text information corresponding to the link tag based on the picture.
[0046] In some exemplary embodiments, the address of the picture can be obtained from the source code of the web page, and the picture can be downloaded according to the address of the picture.
[0047] In some exemplary embodiments, obtaining text information corresponding to a link tag based on a picture includes: extracting text information from the picture and using the extracted text information as the text information corresponding to the link tag; or converting the picture into text information and using the converted text information as the text information corresponding to the link tag.
[0048] In some exemplary embodiments, when text information corresponding to a link tag is extracted from a picture, the text information is extracted from the picture and the extracted text information is used as the text information corresponding to the link tag; when the text information corresponding to the link tag cannot be extracted from the picture, the picture is converted into text information and the converted text information is used as the text information corresponding to the link tag.
[0049] In some exemplary embodiments, optical character recognition (OCR) technology or intelligent character recognition (ICR) technology may be used to extract text information from the image.
[0050] In some exemplary embodiments, a Bootstrapping Language Image Pre-training (BLIP) model in the Artificial Intelligence Generated Content (AIGC) technology may be used to convert images into text information.
[0051] In some exemplary embodiments, whether the semantics of two text information are similar may be determined based on a Bidirectional Encoder Representation from Transformers (BERT) model.
[0052] In some exemplary embodiments, it is possible to determine whether the semantics of two text messages are similar based on the cosine similarity calculation method of the BERT model. Specifically, the two text messages are first input into the BERT model for encoding to obtain the representation vectors of the two text messages, and then the similarity between the representation vectors of the two text messages is calculated by the cosine similarity formula. The similarity value range is -1 to 1. The closer the similarity is to -1, the less similar the semantics of the two text messages are, and the closer the similarity is to 1, the more similar the semantics of the two text messages are. In specific implementation, it can be set that when the similarity is less than 0, it is determined that the semantics of the two text messages are not similar, and when the similarity is greater than 0, it is determined that the semantics of the two text messages are similar.
[0053] Step 101: When it is determined that a link URL that meets a preset condition exists in a web page corresponding to a URL currently visited by a user, it is determined whether the link URL that meets the preset condition is a normal URL.
[0054] In some exemplary embodiments, when it is determined that there is no link URL that meets the preset condition in the web page corresponding to the URL currently visited by the user, the process is terminated.
[0055] In some exemplary embodiments, determining whether a link URL that meets a preset condition is a normal URL includes: determining whether there is a URL in a blacklist that matches the link URL that meets the preset condition; if there is a URL in the blacklist that matches the link URL that meets the preset condition, determining that the link URL that meets the preset condition is an abnormal URL; if there is no URL in the blacklist that matches the link URL that meets the preset condition, determining that the link URL that meets the preset condition is a normal URL.
[0056] In some exemplary embodiments, when the link tag corresponding to the link URL is a picture, and the link URL is determined to be a normal URL, the method further includes: determining whether the picture is a picture whose content is in the form of a web page structure; when the picture is a picture whose content is in the form of a web page structure, determining that the link URL is an abnormal URL; when the picture is not a picture whose content is in the form of a web page structure, determining that the link URL is a normal URL.
[0057] In some exemplary embodiments, when it is determined that the link URL is an abnormal URL, the method further includes: displaying prompt information, where the prompt information is used to prompt the user that the link URL is an abnormal URL.
[0058] In some exemplary embodiments, icons of different colors may be used to display prompt information. For example, when the icon color is green, it indicates that the link URL is a normal URL, and when the icon color is red, it indicates that the link URL is an abnormal URL.
[0059] The website identification method provided in the embodiment of the present application analyzes the link URLs that meet preset conditions in the web page corresponding to the URL currently visited by the user, without the need to analyze all the link URLs, thereby improving the recognition rate of harmful URLs and also improving the scanning speed.
[0060] In order to more completely present the website identification method of the embodiment of the present application, several examples are listed below for detailed description. The listed examples are not intended to limit the protection scope of the embodiment of the present application.
[0061] Example 1
[0062] like Figure 2 As shown, the website identification method of this example includes:
[0063] Step 200, determine whether there is a URL in the blacklist that matches the URL currently visited by the user; if there is no URL in the blacklist that matches the URL currently visited by the user, continue to step 202; if there is a URL in the blacklist that matches the URL currently visited by the user, continue to step 201.
[0064] Step 201, determine that the website currently visited by the user is an abnormal website, and end this process.
[0065] Step 202: determine that the website currently visited by the user is a normal website, and display the page content of the website currently visited by the user.
[0066] Step 203, determine whether there is a corresponding link URL with a link tag of a picture in the form of a web page structure in the web page corresponding to the URL currently visited by the user; if so, execute step 204; if not, execute step 207.
[0067] Step 204, determine whether there is a URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure; if there is a URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure, execute step 205; if there is no URL in the blacklist that matches the link URL of the picture with content in the form of a web page structure, execute step 206.
[0068] Step 205 , determining that the link URL corresponding to the link tag is a picture whose content is in the form of a web page structure is an abnormal URL.
[0069] Step 206: determine that the corresponding link tag is a link URL of a picture whose content is in the form of a web page structure, and that the link URL is a normal URL.
[0070] Step 207, determine whether there are N link URLs with the same link URL but with corresponding link tags whose semantics are not similar but whose link URLs are the same in the web page corresponding to the URL currently visited by the user; if so, execute step 208; if not, end this process.
[0071] Step 208, determine whether there is a URL in the blacklist that matches the link URL of the image whose corresponding link tag is a web page structure including at least two semantically dissimilar elements; if there is a URL in the blacklist that matches the link URL of the image whose corresponding link tag is a web page structure including at least two semantically dissimilar elements, execute step 209; if there is no URL in the blacklist that matches the link URL of the image whose corresponding link tag is a web page structure including at least two semantically dissimilar elements, execute step 210.
[0072] Step 209 : determining that the N link URLs whose corresponding link tags have semantically dissimilar corresponding link tags but have the same link URLs are abnormal URLs.
[0073] Step 210 : Determine that the N link URLs whose corresponding link tags have semantically dissimilar corresponding link tags but have the same link URLs are normal URLs.
[0074] Example 2
[0075] like Figure 3 As shown, the website identification method of this example includes:
[0076] Step 300, determine whether there is a URL in the blacklist that matches the URL currently visited by the user; if there is no URL in the blacklist that matches the URL currently visited by the user, continue to step 302; if there is a URL in the blacklist that matches the URL currently visited by the user, continue to step 301.
[0077] Step 301, determine that the website currently visited by the user is an abnormal website, and end this process.
[0078] Step 302: determine that the website currently visited by the user is a normal website, and display the page content of the website currently visited by the user.
[0079] Step 303, determine whether there are N link URLs with the same link URL but with corresponding link tags whose semantics are not similar but whose link URLs are the same in the web page corresponding to the URL currently visited by the user; if so, execute step 305; if not, execute step 304.
[0080] Step 304, determine whether there is a URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure; if there is a URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure, execute step 305; if there is no URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure, execute step 306.
[0081] Step 305 : Determine that the N link URLs whose corresponding link tags have semantically dissimilar corresponding link tags but have the same link URLs are abnormal URLs.
[0082] Step 306: Determine that the N link URLs whose corresponding link tags have semantically dissimilar corresponding link tags but have the same link URLs are normal URLs.
[0083] Step 307, determine whether there is a link URL with a corresponding link tag as a picture in the form of a web page structure in the web page corresponding to the URL currently visited by the user; if so, execute step 308; if not, end this process.
[0084] Step 308, determine whether there is a URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure; if there is a URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure, execute step 309; if there is no URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure, execute step 310.
[0085] Step 309: determine that the link URL corresponding to the link tag is a picture whose content is in the form of a web page structure and is an abnormal URL.
[0086] Step 310: determine that the link URL corresponding to the link tag is a picture whose content is in the form of a web page structure and is a normal URL.
[0087] Example 3
[0088] like Figure 4 As shown, the website identification method of this example includes:
[0089] Step 400, determine whether there is a URL in the blacklist that matches the URL currently visited by the user; if there is no URL in the blacklist that matches the URL currently visited by the user, continue to step 402; if there is a URL in the blacklist that matches the URL currently visited by the user, continue to step 401.
[0090] Step 401, determine that the website currently visited by the user is an abnormal website, and end this process.
[0091] Step 402: determine that the website currently visited by the user is a normal website, and display the page content of the website currently visited by the user.
[0092] Step 403, determine whether there is a link URL with a corresponding link tag as a picture in the form of a web page structure in the web page corresponding to the URL currently visited by the user; if so, execute step 404; if not, end this process.
[0093] Step 404, determine whether there is a URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure; if there is a URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure, execute step 405; if there is no URL in the blacklist that matches the link URL of the corresponding link tag that is a picture with content in the form of a web page structure, execute step 406.
[0094] Step 405: determine that the link URL corresponding to the link tag is a picture whose content is in the form of a web page structure and is an abnormal URL.
[0095] Step 406: determine that the corresponding link tag is a link URL of a picture whose content is in the form of a web page structure, and that the link URL is a normal URL.
[0096] Example 4
[0097] like Figure 5 As shown, the website identification method of this example includes:
[0098] Step 500, determine whether there is a URL in the blacklist that matches the URL currently visited by the user; if there is no URL in the blacklist that matches the URL currently visited by the user, continue to step 502; if there is a URL in the blacklist that matches the URL currently visited by the user, continue to step 501.
[0099] Step 501, determine that the website currently visited by the user is an abnormal website, and end this process.
[0100] Step 502: determine that the website currently visited by the user is a normal website, and display the page content of the website currently visited by the user.
[0101] Step 503, determine whether there are N link URLs with the same link URL but with corresponding link tags whose semantics are not similar but whose link URLs are the same in the web page corresponding to the URL currently visited by the user; if so, execute step 505; if not, execute step 504.
[0102] Step 504, determine whether there is a URL in the blacklist that matches the link URL of the image whose corresponding link tag is a web page structure including at least two semantically dissimilar elements; if there is a URL in the blacklist that matches the link URL of the image whose corresponding link tag is a web page structure including at least two semantically dissimilar elements, execute step 509; if there is no URL in the blacklist that matches the link URL of the image whose corresponding link tag is a web page structure including at least two semantically dissimilar elements, execute step 506.
[0103] Step 505: determine that the corresponding link tags are semantically dissimilar to the corresponding link tags but N link URLs with the same link URL are abnormal URLs.
[0104] Step 506: Determine that the N link URLs whose corresponding link tags have semantically dissimilar corresponding link tags but have the same link URLs are normal URLs.
[0105] Second, refer to Figure 6 Another embodiment of the present application provides an electronic device, including: at least one processor 601; a memory 602, wherein at least one program is stored in the memory 602, and when the at least one program is executed by the at least one processor 601, any one of the above-mentioned website identification methods is implemented.
[0106] In some exemplary embodiments, the electronic device further includes: one or more I / O interfaces 603 connected between the processor 601 and the memory 602 , and configured to implement information interaction between the processor 601 and the memory 602 .
[0107] Among them, the processor 601 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 602 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 603 is connected between the processor 601 and the memory 602, and can realize information interaction between the processor 601 and the memory 602, including but not limited to a data bus (Bus), etc.
[0108] In some embodiments, the processor 601 , the memory 602 , and the I / O interface 603 are connected to each other via a bus 604 , and further connected to other components of the computing device.
[0109] In a third aspect, another embodiment of the present application provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, any one of the above-mentioned website identification methods is implemented.
[0110] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0111] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.
Claims
1. A website identification method, comprising: Determine whether there is a link URL that meets the preset conditions in the web page corresponding to the URL currently visited by the user; When it is determined that a link URL that meets a preset condition exists in the webpage corresponding to the URL currently visited by the user, it is determined whether the link URL that meets the preset condition is a normal URL.
2. The website identification method according to claim 1, before determining whether there is a link website satisfying a preset condition in the web page corresponding to the website currently visited by the user, the method further comprises: Determine whether the website currently visited by the user is a normal website; In the case where it is determined that the website currently visited by the user is a normal website, the step of determining whether there is a link website meeting a preset condition in the web page corresponding to the website currently visited by the user is continued.
3. The website identification method according to claim 2, wherein: Determining whether the website currently visited by the user is a normal website includes: Determine whether there is a URL in the blacklist that matches the URL currently visited by the user; In the case that there is no website matching the website currently visited by the user in the blacklist, it is determined that the website currently visited by the user is a normal website.
4. The website identification method according to any one of claims 1 to 3, wherein: The preset condition includes: when the link tag corresponding to the link URL is a picture, the picture is a picture whose content is in the form of a web page structure.
5. The website identification method according to any one of claims 1 to 3, wherein: The link URLs satisfying the preset conditions include: N link URLs whose corresponding link tags have different semantics but have the same link URLs; wherein N is an integer greater than or equal to 2.
6. The website identification method according to claim 5, wherein: The step of determining whether there is a link URL that meets a preset condition in the web page corresponding to the URL currently visited by the user includes: Determine whether there are N identical link URLs in the webpage corresponding to the URL currently visited by the user; In the case where there are N identical link URLs in the webpage corresponding to the URL currently visited by the user, determining whether the semantics of the link tags corresponding to the N identical link URLs are similar; When the semantics of link tags corresponding to at least two link URLs among the same N link URLs are not similar, it is determined that a link URL that meets a preset condition exists in the webpage corresponding to the URL currently visited by the user.
7. The website identification method according to claim 6, wherein: The determining whether the semantics of the link tags corresponding to the same N link URLs are similar includes: Respectively obtain text information corresponding to the link label corresponding to each link URL in the N link URLs; Determining whether the semantics of the link tags corresponding to the same N link URLs are similar according to the text information corresponding to the link tags; When the semantics of the text information corresponding to the link tags corresponding to at least two link URLs among the same N link URLs are not similar, it is determined that the semantics of the link tags corresponding to the two link URLs among the same N link URLs are not similar.
8. The website identification method according to claim 7, wherein: The step of respectively obtaining text information corresponding to a link tag corresponding to each link URL in the N link URLs includes: When the link tag is not an image and contains text information, the text information corresponding to the link tag is obtained from the source code of the webpage corresponding to the URL currently visited by the user; When the link tag is a picture, text information corresponding to the link tag is obtained according to the picture.
9. The website identification method according to claim 8, wherein: The acquiring text information corresponding to the link tag according to the image includes: Extracting text information from the image, and using the extracted text information as text information corresponding to the link tag; Alternatively, the image is converted into text information, and the converted text information is used as the text information corresponding to the link tag.
10. The website identification method according to any one of claims 1 to 3, wherein: The determining whether the link URL that meets the preset condition is a normal URL includes: Determine whether there is a URL matching the link URL that meets the preset condition in the blacklist; In the case that there is a website address matching the link website address satisfying the preset condition in the blacklist, the link website address satisfying the preset condition is determined to be an abnormal website address.
11. An electronic device, comprising: at least one processor; A memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, the website identification method according to any one of claims 1 to 10 is implemented.
12. A computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the website identification method according to any one of claims 1 to 10.