CN113987396A - A web page display method, system, storage medium and terminal device - Google Patents
A web page display method, system, storage medium and terminal device Download PDFInfo
- Publication number
- CN113987396A CN113987396A CN202111250000.3A CN202111250000A CN113987396A CN 113987396 A CN113987396 A CN 113987396A CN 202111250000 A CN202111250000 A CN 202111250000A CN 113987396 A CN113987396 A CN 113987396A
- Authority
- CN
- China
- Prior art keywords
- information
- displayed
- detected
- webpage
- web page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Mathematical Physics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a webpage display method, a webpage display system, a storage medium and terminal equipment, which are applied to the technical field of information processing. The webpage display system can determine the information to be detected contained in the information to be displayed after acquiring the information of the webpage to be displayed, directly delete the information to be detected when detecting that the information to be detected is specific information and the information to be detected is information in a picture format, and display the webpage to be displayed based on the obtained preprocessed information of the webpage to be displayed, so that the information to be detected cannot be displayed in the webpage to be displayed and is invisible to a user, thereby filtering specific information in the webpage, such as harmful information, unsafe information or sensitive information, and the like, and providing a clean webpage display environment for the user.
Description
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method and a system for displaying a web page, a storage medium, and a terminal device.
Background
With the increasing capabilities of smart televisions, some application programs are installed on a smart television to implement specific functions, and a browser is most frequently used, a server corresponding to the browser provides multiple resources, and displays access interfaces of various resources (including multimedia resources and the like) to a browser webpage, so that a user can access corresponding resources through any access interface of the browser webpage.
In general, a server corresponding to a browser actively recommends some information (such as advertisements) to a user, so that not only access interfaces of various resources but also recommended information of the server are displayed on a browser webpage. In practical applications, users of smart televisions include family members including children, and some information in the information recommended to the users by the server is not suitable for the children, so that it is important to provide a clean network environment for the users.
Disclosure of Invention
The embodiment of the invention provides a webpage display method executed by a webpage display system, which realizes a cleaner webpage display environment.
An embodiment of the present invention provides a method for displaying a web page, including:
acquiring information of a webpage to be displayed;
determining to-be-detected information included in the information of the webpage to be displayed;
when the information to be detected is detected to be specific information and the information to be detected is information in a picture format, deleting the information to be detected from the information of the webpage to be displayed to obtain preprocessed information of the webpage to be displayed;
and displaying the webpage to be displayed according to the preprocessed webpage information to be displayed.
Another aspect of the present invention provides a web page display system, including:
the webpage information acquisition unit is used for acquiring information of a webpage to be displayed;
the to-be-detected determining unit is used for determining to-be-detected information included in the information of the webpage to be displayed;
the preprocessing unit is used for deleting the information to be detected from the information of the webpage to be displayed to obtain preprocessed information of the webpage to be displayed when the information to be detected is detected to be specific information and the information to be detected is information in a picture format;
and the webpage display unit is used for displaying the webpage to be displayed according to the preprocessed webpage information to be displayed.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores a plurality of computer programs, where the computer programs are suitable for being loaded by a processor and executing the method for displaying a web page according to an embodiment of the present invention.
In another aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the webpage display method according to the aspect of the embodiment of the invention; the processor is configured to implement each of the plurality of computer programs.
It can be seen that, in the method of this embodiment, after the information of the web page to be displayed is acquired, the web page display system determines the information to be detected included in the information to be displayed, and when it is detected that the information to be detected is specific information and the information to be detected is information in a picture format, the information to be detected is directly deleted, and the web page to be displayed is displayed based on the obtained preprocessed web page information to be displayed, so that the information to be detected is not displayed in the web page to be displayed and is invisible to a user, thereby filtering specific information in the web page, such as harmful information, unsafe information, sensitive information, and other types of information, and providing a clean web page display environment for the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a web page display method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for displaying a web page according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating conversion of link information into non-link information in one embodiment of the invention;
FIG. 4 is a diagram illustrating a method for displaying a web page in an embodiment of the present invention;
FIG. 5 is a flowchart of a method for displaying a web page according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a distributed system to which a web page display method is applied in accordance with another embodiment of the present invention;
FIG. 7 is a block diagram illustrating an exemplary block structure according to another embodiment of the present invention;
FIG. 8 is a schematic diagram of a logical structure of a web page display system according to an embodiment of the present invention;
fig. 9 is a schematic logical structure diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides a webpage display method, which is mainly a method for displaying a webpage to be displayed by a webpage display system, and as shown in figure 1, the webpage display system can display the webpage according to the following steps:
acquiring information of a webpage to be displayed;
determining to-be-detected information included in the information of the webpage to be displayed;
when the information to be detected is detected to be specific information and the information to be detected is information in a picture format, deleting the information to be detected from the information of the webpage to be displayed to obtain preprocessed information of the webpage to be displayed;
and displaying the webpage to be displayed according to the preprocessed webpage information to be displayed.
Therefore, the information to be detected cannot be displayed in the webpage to be displayed and cannot be seen by the user, so that specific information in the webpage, such as harmful information, unsafe information or sensitive information, can be filtered, and a clean webpage display environment is provided for the user.
In practical applications, the web page display system can be applied to terminal devices loaded with browsers, such as smart televisions and computers.
The embodiment of the invention provides a webpage display method, which is a method executed by a webpage display system, and the flow chart is shown in figure 2 and comprises the following steps:
It can be understood that a user may operate the web page display system to enable the web page display system to display a user interface, where the user interface includes access interfaces of multiple resources, and the user may operate any one of the access interfaces to enable the web page display system to initiate a resource access request to a corresponding server, and then the server may return the corresponding resource to the web page display system in a web page form, so that the web page display system may use the received resource information as information of a web page to be displayed, and initiate the process of this embodiment.
The information of the web page to be displayed may include information of each element in the web page to be displayed, such as a picture, a text, a video, link information, and the like.
Specifically, when determining the information to be detected, the web page display system may include, but is not limited to, the following several ways:
(1) the information of the to-be-displayed webpage may include information of a non-access interface, and after the webpage display system displays the information of the non-access interface, a user cannot operate the information.
Specifically, the webpage display system can directly take a first picture in the information of the webpage to be displayed as the information to be detected; for the first text information, when the length of the first text information is greater than the preset length, the first text information may be subjected to word segmentation processing to obtain a plurality of words, each word in the plurality of words is respectively used as one item of information to be detected, and the following step 103 is performed for any item of information to be detected. The length of the first text information refers to the length occupied by all characters included in the first text information.
(2) The information of the web page to be displayed may further include information of the access interface, and after the web page display system displays the information of the access interface, the user may operate the information to turn to the web page of the corresponding resource, and specifically, the information may include link information corresponding to at least one resource.
In this case, the web page display system will use the link information of any resource as an item of information to be detected.
103, detecting whether the determined information to be detected is specific information, and if so, executing the following step 104 or step 105 to preprocess the information to be detected; if not, preprocessing the information to be detected, and directly displaying the webpage to be displayed according to the information of the webpage to be displayed.
Specifically, the web page display system may perform detection in two ways:
(1) and detecting the information to be detected by the webpage display system.
The web page display system can specifically adopt a specific information detection model to detect information to be detected, the specific information detection model is a machine learning model, the specific information detection model can be obtained through training by a certain training method, and the operation logic of the information detection model is stored in the web page display system.
The specific information refers to specific types of information, such as harmful information, sensitive information, risky information, and the like, and the specific type needs to be determined based on a specific application.
In specific implementation, when detecting whether the information to be detected is specific information, and when the information to be detected is information of a non-access interface, it is mainly detected whether content represented by the information to be detected is information of a specific type, for example, whether content in a picture or a text is harmful information; when the information to be detected is information of the access interface, it may be mainly detected whether a resource pointed to by the information to be detected is information of a specific type, for example, whether a resource pointed to by a certain link is safe.
Further, when the web page display system detects whether the information to be detected is the specific information, it needs to determine a current user mode of the web page display system first, and detect whether the information to be detected is the specific information according to the current user mode. The current user mode refers to a mode of a user currently operating the web page display system, and may include an adult mode, a child mode, and the like, so that the content of the web page to be displayed may be displayed based on different types of users.
In a specific mode, different specific information detection models can be trained aiming at different user modes and are respectively preset in a webpage display system, and after the webpage display system determines the current user mode, the specific information detection model corresponding to the current user mode needs to be called for detection, so that the detection of information to be detected is more accurate; in another specific implementation manner, only one specific information detection model is trained, and the specific information detection model is used for extracting the feature information of the current user mode and the feature information of the information to be detected, and further detecting whether the information to be detected is the feature information according to the extracted feature information.
(2) And detecting the information to be detected by the detection server.
Specifically, if the web page display system starts a networking detection mode, information of a web page to be displayed is sent to the detection server, the detection server detects the information to be detected, and the detection result is returned to the web page display system.
In order to save network transmission flow, the information of the webpage to be displayed, which is sent to the detection server by the webpage display system, may be a webpage address of the webpage to be displayed, and the detection server obtains information of each element included in the webpage to be displayed according to the webpage address so as to detect the information to be detected therein.
And (3) if the web page display system does not start the networking detection mode, the web page display system detects the information to be detected according to the method in the step (1).
And 104, if the information to be detected is the picture format information, deleting the information to be detected from the information of the webpage to be displayed to obtain the preprocessed information of the webpage to be displayed.
And 105, if the information to be detected is text format information, replacing the information to be detected in the information of the webpage to be displayed with specific characters to obtain preprocessed information of the webpage to be displayed.
It should be noted that, in addition to the preprocessing manner of the information to be detected in steps 104 and 105, in practical applications, the information to be detected may also be information in other formats, such as link information, and in this case, the preprocessing of the information to be detected may further include: and converting the information to be detected in the information of the webpage to be displayed into non-link information to obtain the preprocessed information of the webpage to be displayed.
Since the link information may include the web page address information and the resource identifier pointed by the link information, when the information to be detected is converted into the non-link information, the web page address information may be removed, and the information such as the resource identifier pointed by the link information may be retained. Therefore, after the webpage to be displayed is displayed, the user cannot operate the link information, misoperation of the user is prevented, and the webpage display system is enabled to turn to the webpage where the resource pointed by the link information is located.
For example, fig. 3 shows a web page displayed by a browser before and after converting link information of a web page in the web page into non-link information, in which a dotted frame represents a non-access interface, such as a web page advertisement displayed in the web page, and a solid frame represents an access interface. After the browser converts the link information of the news 1 into the non-link information, only the title of the news 1 is kept in the webpage to be visible to the user, but the title of the news 1 cannot be clicked, so that the browser turns to the webpage of the news 1.
And 106, displaying the webpage to be displayed according to the preprocessed webpage information to be displayed.
In the case of step 104, since the area occupied by the information to be detected (i.e., the picture) in the web page to be displayed is relatively large, when the information to be detected is deleted from the information in the web page to be displayed, if other elements (elements other than the information to be detected) in the web page to be displayed are displayed according to the original position when the information to be detected is not deleted, a large area of blank space may appear in the position of the information to be detected. In order to avoid this, the web page display system may rearrange the other elements in the web page to be displayed, redetermine the positions of the other elements, and display the corresponding elements in the web page to be displayed according to the redetermined positions.
It should be noted that, in order to implement the web page display method in the embodiment of the present invention, a simpler and more convenient manner may be adopted to extend the web page display system, specifically, the web page display system may first obtain a preprocessed code file, where the preprocessed code file is an executable file of the above steps 102 to 106, that is, an executable file of the step of determining information to be detected included in information of a web page to be displayed, detecting the information to be detected, obtaining preprocessed information of the web page to be displayed, and displaying the web page to be displayed according to the preprocessed information of the web page to be displayed; and then injecting the preprocessing code file into the webpage display source code, so that the preprocessing code file is executed after the webpage display system acquires the information of the webpage to be displayed.
In a specific implementation, to simplify the pre-processing code file, the executable subfile for detecting the information to be detected in the pre-processing code file may be set as: and calling an executable subfile of the specific information detection model preset in the webpage display system instead of setting all logic information of the trained specific information detection model into the preprocessing code file. In this way, a specific information detection model can be trained and stored in advance through the web page display system.
The webpage display system is preset with a webpage display source code, and the webpage display source code can realize the function of directly displaying the webpage to be displayed after acquiring the information of the webpage to be displayed. After the preprocessing code file is injected into the webpage display source code of the webpage display system, the webpage display system executing the method in the embodiment can be formed. Therefore, the method of the embodiment can be realized in a code injection mode without modifying the webpage display source code, and the expandability is strong.
It can be seen that, in the method of this embodiment, after the information of the web page to be displayed is acquired, the web page display system determines the information to be detected included in the information to be displayed, and when it is detected that the information to be detected is specific information and the information to be detected is information in a picture format, the information to be detected is directly deleted, and the web page to be displayed is displayed based on the obtained preprocessed web page information to be displayed, so that the information to be detected is not displayed in the web page to be displayed and is invisible to a user, thereby filtering specific information in the web page, such as harmful information, unsafe information, sensitive information, and other types of information, and providing a clean web page display environment for the user.
In order to implement the web page display method of the present embodiment, as shown in fig. 4, when the browser is opened, the preprocessing code file in the js format may be obtained, and the preprocessing code file is injected into the web page display source code of the browser, so that if the web page display flow needs to be updated, the preprocessing code file may be directly updated without updating the web page display source code, and the extensibility is strong. The preprocessing code file may include an executable file of the following modules, specifically:
and the information module to be detected is used for acquiring the information to be detected in the information of the webpage to be displayed.
The specific information detection module is configured to detect information to be detected, and determine whether the information to be detected is specific information. Specifically, the specific information detection module may call, through a call interface, a specific information detection model preset in the browser to detect the information to be detected.
The network detection module is used for sending information (such as a webpage address and the like) of a webpage to be displayed to a detection server, such as a cloud server, and receiving a detection result returned by the detection server and used for detecting the information to be detected in the webpage to be displayed.
And the preprocessing module is used for preprocessing the information to be detected, such as deleting, replacing or converting specific characters into non-link information and the like, according to the detection result obtained by the specific information detection module or the network detection module.
Specifically, as shown in fig. 5, the method of the present embodiment may include the following steps:
In step 203, the network detection module sends a web page address of a web page to the detection server, the detection server determines information to be detected in the web page, including pictures, link information, texts, and the like, according to the web page address, detects whether the information to be detected is harmful information, and returns a detection result of the information to be detected to the network detection module of the browser, the network detection module transmits the detection result to the preprocessing module, and the preprocessing module executes the following step 206.
And 204, the information to be detected module acquires webpage information of the webpage to be displayed, determines the information to be detected according to the webpage information, and transmits the information to be detected into the specific information detection module.
In step 205, the specific information detection module invokes the specific information detection model to detect the information to be detected, so as to obtain a detection result of whether the information to be detected is harmful information, and transmits the detection result to the preprocessing module.
And 208, preprocessing the information to be detected by the preprocessing module to obtain preprocessed webpage information, and displaying the webpage according to the preprocessed webpage information. In step 206, if some information to be detected, i.e., pictures, is deleted by the preprocessing module, other elements in the web page need to be typeset again and then displayed.
Therefore, in the embodiment, by detecting and preprocessing the information to be detected in the webpage, harmful pictures and text information and link information pointing to harmful resources are not displayed in the webpage displayed by the browser, and a clean webpage display environment is provided for a user.
The web page display method in the present invention is described below with another specific application example, the web page display system in the embodiment of the present invention is mainly a distributed system 100, the distributed system may include a client 300 and a plurality of nodes 200 (any form of computing devices, such as servers and user terminals, in an access network), and the client 300 and the nodes 200 are connected in a network communication manner.
Taking a distributed system as an example of a blockchain system, referring To fig. 6, which is an optional structural schematic diagram of the distributed system 100 applied To the blockchain system provided in the embodiment of the present invention, the system is formed by a plurality of nodes 200 (computing devices in any form in an access network, such as servers and user terminals) and clients 300, a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and the P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 6, the functions involved include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization function to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the service implemented by the application includes code implementing a web page display function, which mainly includes:
acquiring information of a webpage to be displayed; determining to-be-detected information included in the information of the webpage to be displayed; when the information to be detected is detected to be specific information and the information to be detected is information in a picture format, deleting the information to be detected from the information of the webpage to be displayed to obtain preprocessed information of the webpage to be displayed; and displaying the webpage to be displayed according to the preprocessed webpage information to be displayed.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
Referring to fig. 7, an optional schematic diagram of a Block Structure (Block Structure) provided in the embodiment of the present invention is shown, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
An embodiment of the present invention further provides a web page display system, a schematic structural diagram of which is shown in fig. 8, and the web page display system specifically includes:
the web page information acquiring unit 10 is used for acquiring information of a web page to be displayed.
And a to-be-detected determining unit 11, configured to determine to-be-detected information included in the information of the webpage to be displayed, which is acquired by the webpage information acquiring unit 10.
The to-be-detected determining unit 11 is specifically configured to, if the information of the to-be-displayed webpage includes information of a non-access interface, perform word segmentation on the first text information when the length of the first text information is greater than a preset length to obtain a plurality of words, and take each word in the plurality of words as an item of to-be-detected information.
Or, the to-be-detected determining unit 11 is specifically configured to use link information of any resource as one item of to-be-detected information if the information of the to-be-displayed web page includes link information corresponding to at least one resource respectively.
The preprocessing unit 12 is configured to delete the information to be detected from the information of the webpage to be displayed when it is detected that the information to be detected determined by the information to be detected determining unit 11 is specific information and the information to be detected is information in a picture format, so as to obtain preprocessed information of the webpage to be displayed.
The preprocessing unit 12 is further configured to determine a current user mode of the web page display system, and detect that the information to be detected is specific information according to the current user mode.
Or, the preprocessing unit 12 is further configured to send the information of the web page to be displayed to the detection server if the web page display system starts a networking detection mode; and receiving a detection result of whether the information to be detected returned by the detection server is the specific information.
Further, the preprocessing unit 12 is further configured to, when it is detected that the information to be detected is specific information and the information to be detected is text format information, replace the information to be detected in the information of the webpage to be displayed with specific characters, so as to obtain preprocessed information of the webpage to be displayed.
The preprocessing unit 12 is further configured to, when it is detected that the information to be detected is specific information and the information to be detected is link information, convert the information to be detected in the information of the web page to be displayed into non-link information to obtain preprocessed information of the web page to be displayed.
And the webpage display unit 13 is configured to display the webpage to be displayed according to the preprocessed webpage information to be displayed, which is obtained by the preprocessing unit 12.
Further, the web page display system of the present embodiment further includes:
a code injection unit 14, configured to determine information to be detected included in the information of the web page to be displayed, obtain preprocessed web page information to be displayed, and display an executable file of the step of the web page to be displayed according to the preprocessed web page information to be displayed; the preprocessing code file is injected into a web page display source code of a web page display system, so that the preprocessing code file is executed after the web page information obtaining unit 10 obtains information of a web page to be displayed.
It can be seen that, in the method of this embodiment, after the information of the web page to be displayed is acquired, the web page display system determines the information to be detected included in the information to be displayed, and when it is detected that the information to be detected is specific information and the information to be detected is information in a picture format, the information to be detected is directly deleted, and the web page to be displayed is displayed based on the obtained preprocessed web page information to be displayed, so that the information to be detected is not displayed in the web page to be displayed and is invisible to a user, thereby filtering specific information in the web page, such as harmful information, unsafe information, sensitive information, and other types of information, and providing a clean web page display environment for the user.
The present invention further provides a terminal device, a schematic structural diagram of which is shown in fig. 9, where the terminal device may generate a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 20 (e.g., one or more processors) and a memory 21, and one or more storage media 22 (e.g., one or more mass storage devices) storing the application programs 221 or the data 222. Wherein the memory 21 and the storage medium 22 may be a transient storage or a persistent storage. The program stored in the storage medium 22 may include one or more modules (not shown), each of which may include a series of instruction operations for the terminal device. Still further, the central processor 20 may be arranged to communicate with the storage medium 22, and to execute a series of instruction operations in the storage medium 22 on the terminal device.
Specifically, the application programs 221 stored in the storage medium 22 include application programs for displaying web pages, and the programs may include the web page information acquiring unit 10, the to-be-detected determining unit 11, the preprocessing unit 12, the web page displaying unit 13, and the code injecting unit 14 in the web page displaying system, which are not described herein again. Further, the central processor 20 may be configured to communicate with the storage medium 22, and execute a series of operations corresponding to the application program displayed on the web page stored in the storage medium 22 on the terminal device.
The terminal equipment may also include one or more power supplies 23, one or more wired or wireless network interfaces 24, one or more input-output interfaces 25, and/or one or more operating systems 223, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and the like.
The steps executed by the web page display system in the above method embodiment may be based on the structure of the terminal device shown in fig. 9.
In another aspect, the present invention further provides a computer-readable storage medium, which stores a plurality of computer programs, where the computer programs are suitable for being loaded by a processor and executing the web page display method executed by the web page display system.
In another aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the webpage display method executed by the webpage display system; the processor is configured to implement each of the plurality of computer programs.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the web page display method provided in the above-described various alternative implementations.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The web page display method, the web page display system, the storage medium and the terminal device provided by the embodiment of the invention are described in detail, a specific embodiment is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (11)
1. A method for displaying a web page, comprising:
acquiring information of a webpage to be displayed;
determining to-be-detected information included in the information of the webpage to be displayed;
when the information to be detected is detected to be specific information and comprises information in a picture format, deleting the information to be detected from the information of the webpage to be displayed to obtain preprocessed information of the webpage to be displayed;
and displaying the webpage to be displayed according to the preprocessed webpage information to be displayed.
2. The method of claim 1,
the information of the to-be-displayed webpage includes information of a non-access interface, and the information of the non-access interface includes first text information, so that the determining of the to-be-detected information included in the information of the to-be-displayed webpage specifically includes:
when the length of the first text information is larger than the preset length, performing word segmentation processing on the first text information to obtain a plurality of segmented words, and taking each segmented word in the plurality of segmented words as one item of information to be detected.
3. The method of claim 1,
the determining the information to be detected included in the information of the web page to be displayed includes, if the information of the web page to be displayed includes link information corresponding to at least one resource, specifically: and taking the link information of any resource as the information to be detected.
4. The method according to claim 1, wherein before detecting that the information to be detected is specific information, the method further comprises: determining a current user mode of a web page display system;
the detecting that the information to be detected is specific information specifically includes: and detecting that the information to be detected is specific information according to the current user mode.
5. The method according to any one of claims 1 to 4, wherein after determining the information to be detected included in the information of the web page to be displayed, the method further comprises:
if the web page display system starts a networking detection mode, the information of the web page to be displayed is sent to a detection server;
and receiving a detection result of whether the information to be detected returned by the detection server is the specific information.
6. The method according to any one of claims 1 to 4, wherein before displaying the web page to be displayed according to the preprocessed web page information to be displayed, the method further comprises:
and when the information to be detected is detected to be specific information and the information to be detected is text format information, replacing the information to be detected in the information of the webpage to be displayed with specific characters to obtain preprocessed information of the webpage to be displayed.
7. The method according to any one of claims 1 to 4, wherein before displaying the web page to be displayed according to the preprocessed web page information to be displayed, the method further comprises:
and when the information to be detected is detected to be specific information and the information to be detected is link information, converting the information to be detected in the information of the webpage to be displayed into non-link information to obtain the preprocessed information of the webpage to be displayed.
8. The method of any one of claims 1 to 4, wherein before the obtaining information of the web page to be displayed, the method further comprises:
acquiring a preprocessing code file, wherein the preprocessing code file is an executable file for determining to-be-detected information included in the information of the to-be-displayed webpage, detecting the to-be-detected information, obtaining preprocessed to-be-displayed webpage information and displaying the to-be-displayed webpage according to the preprocessed to-be-displayed webpage information;
and injecting the preprocessing code file into a webpage display source code of a webpage display system, so that the preprocessing code file is executed after the webpage display system acquires the information of the webpage to be displayed.
9. A web page display system, comprising:
the webpage information acquisition unit is used for acquiring information of a webpage to be displayed;
the to-be-detected determining unit is used for determining to-be-detected information included in the information of the webpage to be displayed;
the preprocessing unit is used for deleting the information to be detected from the information of the webpage to be displayed to obtain preprocessed information of the webpage to be displayed when the information to be detected is detected to be specific information and the information to be detected is information in a picture format;
and the webpage display unit is used for displaying the webpage to be displayed according to the preprocessed webpage information to be displayed.
10. A computer-readable storage medium, characterized in that it stores a plurality of computer programs adapted to be loaded by a processor and to execute the web page display method according to any one of claims 1 to 8.
11. A terminal device comprising a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the webpage display method according to any one of claims 1 to 8; the processor is configured to implement each of the plurality of computer programs.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111250000.3A CN113987396A (en) | 2021-10-26 | 2021-10-26 | A web page display method, system, storage medium and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111250000.3A CN113987396A (en) | 2021-10-26 | 2021-10-26 | A web page display method, system, storage medium and terminal device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN113987396A true CN113987396A (en) | 2022-01-28 |
Family
ID=79741830
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111250000.3A Pending CN113987396A (en) | 2021-10-26 | 2021-10-26 | A web page display method, system, storage medium and terminal device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113987396A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104750741A (en) * | 2013-12-30 | 2015-07-01 | 中国移动通信集团湖南有限公司 | Invalid link processing method and invalid link processing device |
| CN108959565A (en) * | 2018-07-04 | 2018-12-07 | 广东小天才科技有限公司 | Method, device and server for filtering webpage content |
| CN111726648A (en) * | 2020-06-28 | 2020-09-29 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for detecting image data and computer readable storage medium |
| CN113177409A (en) * | 2021-05-06 | 2021-07-27 | 上海慧洲信息技术有限公司 | Intelligent sensitive word recognition system |
-
2021
- 2021-10-26 CN CN202111250000.3A patent/CN113987396A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104750741A (en) * | 2013-12-30 | 2015-07-01 | 中国移动通信集团湖南有限公司 | Invalid link processing method and invalid link processing device |
| CN108959565A (en) * | 2018-07-04 | 2018-12-07 | 广东小天才科技有限公司 | Method, device and server for filtering webpage content |
| CN111726648A (en) * | 2020-06-28 | 2020-09-29 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for detecting image data and computer readable storage medium |
| CN113177409A (en) * | 2021-05-06 | 2021-07-27 | 上海慧洲信息技术有限公司 | Intelligent sensitive word recognition system |
Non-Patent Citations (1)
| Title |
|---|
| 杨铁军主编: "《产业专利分析报告 第22册 浏览器》", vol. 1, 31 May 2014, 知识产权出版社, pages: 93 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105447204B (en) | Network address recognition methods and device | |
| US8683311B2 (en) | Generating structured data objects from unstructured web pages | |
| US11232250B2 (en) | Enhanced links in curation and collaboration applications | |
| CN102663291B (en) | Mail information prompt method and device | |
| CN103618774B (en) | A kind of resource recommendation method based on network behavior and device, system | |
| CN109040252A (en) | Document transmission method, system, computer equipment and storage medium | |
| US20100083098A1 (en) | Streaming Information that Describes a Webpage | |
| US20220342518A1 (en) | Card-based information management method and system | |
| CN113392236A (en) | Data classification method, computer equipment and readable storage medium | |
| CN105991398A (en) | Instant message IM chatting records storage method and apparatus | |
| CN114039801B (en) | Short link generation method, short link analysis system, short link analysis equipment and storage medium | |
| CN108021598B (en) | Page extraction template matching method and device and server | |
| CN104112002A (en) | Form adaption method, device and system | |
| CN113382083B (en) | Webpage screenshot method and device | |
| US11281929B2 (en) | Systems and methods for determining whether to modify content | |
| CN106487662B (en) | Information sharing method and device | |
| CN106878151A (en) | A method, device and system for transmitting information | |
| CN105187491A (en) | Method, system and server thereof for uploading pictures | |
| CN115221437A (en) | Font file loading method and device, electronic equipment and storage medium | |
| CN113987396A (en) | A web page display method, system, storage medium and terminal device | |
| CN118075345A (en) | Information pushing method, device, electronic equipment and computer storage medium | |
| CN108572985B (en) | Page display method and device | |
| CN113407314B (en) | Service process processing method, device, medium and electronic equipment | |
| CN108182191B (en) | Hotspot data processing method and device | |
| CN109308336A (en) | Data processing method, processing device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |