Page management method, device, electronic device and storage medium

By identifying and preventing the download of malicious pages, the problem of users being unable to effectively exit malicious web pages is solved, and browsing efficiency and ease of operation are improved.

CN113051506BActive Publication Date: 2025-03-18NANJING VIVO SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110328700.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-26
Publication Date
2025-03-18
Estimated Expiration
2041-03-26

AI Technical Summary

Technical Problem

In the prior art, when a user encounters a malicious web page in the browser, he cannot effectively exit, resulting in low web browsing efficiency.

Method used

By obtaining the content of the target page of the page, we determine whether the download prohibition is met. When the malicious page triggers the download behavior, the corresponding URL is prohibited from entering the browser's history stack, allowing users to exit the malicious page without closing the browser.

Benefits of technology

Improves the efficiency of users browsing pages, simplifies operations, and allows users to quickly exit malicious pages without affecting normal browsing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113051506B_ABST
    Figure CN113051506B_ABST
Patent Text Reader

Abstract

The present application discloses a page management method, device, electronic device and storage medium, the method comprising: obtaining the target page content of the first page; determining that the first page meets the download prohibition condition when the target page content meets the preset content rule; prohibiting the URL corresponding to the download behavior from entering the history stack when the first page triggers the download behavior; receiving the first input of the user, and exiting the first page in response to the first input. The above method is implemented to identify malicious pages by identifying the page content, and then prevent the URL corresponding to the download behavior of the malicious page from entering the browser's history stack, so that the user can exit the malicious page without closing the browser, the operation is relatively simple, and the efficiency of the user browsing the page is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a page management method, device, electronic device and storage medium. Background Art

[0002] Currently, users often encounter the following situations when browsing the web using browsers: some malicious web pages are accidentally touched or automatically popped up on the web page. Such pages will constantly pop up application download pop-up boxes. Even if the user clicks the browser's back button, the page will always remain on the malicious web page and cannot return to the previous page, affecting the user's normal browsing of the web page.

[0003] In the prior art, users can only exit malicious web pages by closing the browser, and then reopen the browser to find the previous normal page to continue browsing. This operation is cumbersome and results in low web browsing efficiency. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a page management method, device, electronic device and storage medium, which can solve the technical problem of low web browsing efficiency existing in the prior art.

[0005] In order to solve the above technical problems, this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a page management method, the method comprising:

[0007] Get the target page content of the first page;

[0008] In the case where it is determined that the target page content satisfies a preset content rule, determining that the first page satisfies a download prohibition condition;

[0009] In the case where the first page triggers a download behavior, prohibiting the uniform resource locator URL corresponding to the download behavior from entering the history stack;

[0010] A first input from a user is received, and in response to the first input, the first page is exited.

[0011] In a second aspect, an embodiment of the present application provides a page management device, the device comprising:

[0012] An acquisition module, used to acquire the target page content of the first page;

[0013] A determination module, configured to determine that the first page satisfies a download prohibition condition when it is determined that the content of the target page satisfies a preset content rule;

[0014] a prohibition module, configured to prohibit a uniform resource locator URL corresponding to the download behavior from entering a history stack when the first page triggers a download behavior;

[0015] A first receiving module, used to receive a first input from a user;

[0016] An exit module is used to exit the first page in response to the first input.

[0017] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the page management method described in the first aspect.

[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the page management method described in the first aspect are implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the page management method described in the first aspect.

[0020] In the embodiment of the present application, for the first page displayed in the browser, the target page content of the first page can be obtained, and according to the target page content, it is determined whether the first page meets the download prohibition condition. If the first page meets the download prohibition condition, then when the first page triggers the download behavior, the URL corresponding to the download behavior is prohibited from entering the history stack of the browser. Compared with the prior art, in the embodiment of the present application, malicious pages are identified by identifying the page content, and then the URL corresponding to the download behavior of the malicious page is prevented from entering the history stack of the browser, so that the user can exit the malicious page without closing the browser, the operation is relatively simple, and the efficiency of the user browsing pages is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of a page management method provided by an embodiment of the present application;

[0022] Figure 2 This is an example diagram of a page management method provided by an embodiment of the present application;

[0023] Figure 3 It is a structural block diagram of a page management device provided in an embodiment of the present application;

[0024] Figure 4It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0025] Figure 5 It is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] The embodiments of the present application provide a page management method, device, electronic device and storage medium.

[0029] The page management method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0030] It should be noted that the page management method provided in the embodiment of the present application is applicable to electronic devices. In practical applications, the electronic devices may include: mobile terminals such as smart phones, tablet computers, personal digital assistants, etc., and the embodiment of the present application does not limit this.

[0031] Figure 1 is a flow chart of a page management method provided by an embodiment of the present application, such as Figure 1 As shown, the method may include the following steps: step 101, step 102, step 103 and step 104, wherein:

[0032] In step 101, the target page content of the first page is obtained.

[0033] Taking into account that when a user enters a malicious page, the malicious page will usually quickly trigger frequent downloading behavior, in an embodiment of the present application, when the browser opens the first page, the target page content of the first page can be immediately obtained, so as to determine whether the first page is a malicious page based on the target page content, and then take certain measures in time to prevent the malicious page from triggering frequent downloading behavior.

[0034] In the embodiment of the present application, the target page content may be the main content of the page, or may be the entire content of the page, which is not limited in the embodiment of the present application.

[0035] In step 102, when it is determined that the target page content satisfies the preset content rule, it is determined that the first page satisfies the download prohibition condition.

[0036] In the embodiment of the present application, the preset content rule is the basis for determining whether a page is a malicious page (also referred to as a "risk page"), and prohibiting downloading means prohibiting the URL corresponding to the page download behavior from entering the browser's history stack.

[0037] In an embodiment of the present application, if the target page content of a page meets the preset content rules, it indicates that the page is a malicious page, and it is necessary to prohibit the URL corresponding to the page download behavior from entering the browser's history stack; if the target page content of a page does not meet the preset content rules, it indicates that the page may not be a malicious page, and it is not necessary to prohibit the URL corresponding to the page download behavior from entering the browser's history stack.

[0038] In the embodiment of the present application, the page content rules can be maintained in advance on the server side: a combination of multiple selectors and text rules (such as the combination shown in Table 1 below), and sent to the client of the electronic device. The client performs web page feature matching according to the page content rules, for example, whether the target page content of the page contains "webpage not found" and "download high-speed browser".

[0039]

[0040]

[0041] Table 1

[0042] Corresponding to Table 1, in an embodiment of the present application, the preset content rules may include: the page content includes download browser, test and error, or the page content includes web page not found and download high-speed browser, or the page content includes excessive server cache causing network slowdown and download high-speed browser.

[0043] In step 103, when the first page triggers a download behavior, the URL corresponding to the download behavior is prohibited from entering the history stack.

[0044] Considering that the reason why malicious pages cannot be exited in the prior art is that: when a malicious page is opened in a browser, the malicious page will trigger a new download page, and the download address URL will enter the browser history stack. At this time, when the user clicks the browser's back button, he is still on the malicious page, and download pop-up boxes will continue to appear. Clicking the back button can only cancel the download pop-up box.

[0045] In response to the above situation, in an embodiment of the present application, malicious pages can be identified and the URL corresponding to the download behavior of the malicious page can be prohibited from entering the browser history stack, so that the user can exit the malicious page without closing the browser. For example, the user can exit the malicious page and return to the parent page by clicking the browser's back button.

[0046] In step 104, a first input from a user is received, and in response to the first input, the first page is exited.

[0047] In the embodiment of the present application, the first input may be a click input, a long press input, or a slide input, etc. The first input may be used to directly close the first page, or may be used to exit the first page and return to the previous page.

[0048] Considering that if the user chooses to exit the first page, it indicates that the user has no interest in and need for browsing the first page, at this time, the page management method provided in the embodiment of the present application can also add the following steps after the above step 104:

[0049] The URL of the first page is recorded, and the URL of the first page is intercepted within a preset time period after exiting the first page.

[0050] In one example, the preset time length is 1 day, and the user clicks the back button of the browser and chooses to return to the previous page. At this time, the browser can record the URL of the first page and intercept the URL of the first page within the next 1 day, and cannot automatically enter the first page.

[0051] In the embodiment of the present application, for pages that the user has no browsing interest and demand, the behavior of automatically jumping to the page again can be prohibited for a subsequent period of time to ensure the user's web browsing experience.

[0052] It can be seen that in the embodiments of the present application, the downloads that meet the content rules can be effectively prohibited by friendly means through the identification of page content, so as to help users prohibit malicious and frequent downloading behaviors without affecting the user's return to the parent page and preventing the browser from freezing.

[0053] As can be seen from the above embodiments, in this embodiment, for the first page displayed in the browser, the target page content of the first page can be obtained, and according to the target page content, it is determined whether the first page meets the download prohibition condition. If the first page meets the download prohibition condition, then when the first page triggers the download behavior, the URL corresponding to the download behavior is prohibited from entering the browser's history stack. Compared with the prior art, in the embodiment of the present application, malicious pages are identified by identifying the page content, and then the URL corresponding to the download behavior of the malicious page is prevented from entering the browser's history stack, so that the user can exit the malicious page without closing the browser, the operation is relatively simple, and the efficiency of the user browsing pages is improved.

[0054] In order to avoid the download behavior of the page being intercepted by mistake, in another embodiment provided by the present application, the following steps (not shown in the figure) can be added after the above step 103: step 105, wherein:

[0055] In step 105, a lightweight download interaction form is used to prompt the download behavior of the first page. That is, the download pop-up box in the malicious page is converted into a lightweight download interaction form.

[0056] In the embodiment of the present application, the lightweight download interaction form can be a message prompt bubble, that is, the download pop-up box is converted into a bubble prompt, which can greatly reduce the impact on the user and avoid the impact of the mistaken killing of the download due to the rules on the user. Accordingly, the above step 105 can specifically include the following steps:

[0057] Display a message prompt bubble, where the message prompt bubble is used to prompt the download behavior that has been triggered on the first page

[0058] In the embodiment of the present application, in order to avoid blocking the main content of the page, a message prompt bubble can be displayed in the corner of the first page, for example Figure 2 shown.

[0059] In the embodiment of the present application, the number of times the first page has triggered a download behavior can also be displayed on the message prompt bubble. For example, each time a page triggers a download behavior, "+1" is displayed in the upper right corner of the bubble. The bubble is a lightweight download interaction form, which functionally displays how many times the page has triggered a download behavior (when a download behavior occurs, the page does not respond, and the number in the bubble +1).

[0060] In the embodiment of the present application, when the user operates the bubble, the user can enter the historical download list page and select an item to download. At this time, the page management method provided in the embodiment of the present application can also add the following steps after the above step 105:

[0061] Receiving a second input from the user to the message prompt bubble, and in response to the second input, displaying a historical download list page, wherein the historical download list page records the download entry corresponding to the above download behavior;

[0062] A third input of the user for at least one download item is received, and in response to the third input, a download behavior corresponding to the download item is executed.

[0063] In the embodiment of the present application, the second input may be a click input, a long press input, or a sliding input, and the third input may also be a click input, a long press input, or a sliding input.

[0064] In another embodiment provided by the present application, an immersive browsing mode may be designed for a certain type of page to prevent automatic page redirection and downloading to ensure the user's browsing experience. In this case, the page management method provided by the embodiment of the present application may further include the following steps:

[0065] If it is determined that the target page content does not satisfy the preset content rule and the current browsing mode of the first page is the preset browsing mode, detecting whether a fourth input of the user is received;

[0066] When the fourth input is not detected, the first page is always displayed and all downloading behaviors are blocked.

[0067] In the embodiment of the present application, the preset browsing mode is an immersive browsing mode, which can effectively control the automatic jump and download behavior of the page when the user needs immersive reading, thereby ensuring the user's reading experience. After the browser enters the immersive browsing mode, all automatic jumps are prohibited except for the jumps completed by clicking.

[0068] In one example, websites can be classified into categories, such as novels, comics, and videos. When a user enters a page of a website in the above categories, the user is prompted through the address bar icon whether to enter the immersive browsing mode. If the user clicks to enter, the immersive browsing mode is entered. In the immersive browsing mode, the user's page click behavior is identified. If the user does not click, the page remains on the current page and all download behaviors are blocked. In addition, the user can exit the mode by clicking the icon in the address bar again.

[0069] It should be noted that the page management method provided in the embodiment of the present application can be executed by a page management device or a control module in the page management device for executing the loading page management method. In the embodiment of the present application, the page management device provided in the embodiment of the present application is described by taking the execution of the page management method by the page management device as an example.

[0070] Figure 3is a structural block diagram of a page management device provided in an embodiment of the present application, such as Figure 3 As shown, the page management device 300 may include: an acquisition module 301, a determination module 302, a prohibition module 303, a first receiving module 304 and an exit module 305, wherein:

[0071] An acquisition module 301 is used to acquire the target page content of the first page;

[0072] A determination module 302, configured to determine that the first page meets a download prohibition condition when it is determined that the target page content meets a preset content rule;

[0073] A prohibition module 303 is used to prohibit the uniform resource locator URL corresponding to the download behavior from entering the history stack when the first page triggers the download behavior;

[0074] A first receiving module 304, configured to receive a first input from a user;

[0075] The exit module 305 is used to exit the first page in response to the first input.

[0076] As can be seen from the above embodiments, in this embodiment, for the first page displayed in the browser, the target page content of the first page can be obtained, and according to the target page content, it is determined whether the first page meets the download prohibition condition. If the first page meets the download prohibition condition, then when the first page triggers the download behavior, the URL corresponding to the download behavior is prohibited from entering the browser's history stack. Compared with the prior art, in the embodiment of the present application, malicious pages are identified by identifying the page content, and then the URL corresponding to the download behavior of the malicious page is prevented from entering the browser's history stack, so that the user can exit the malicious page without closing the browser, the operation is relatively simple, and the efficiency of the user browsing pages is improved.

[0077] Optionally, as an embodiment, the page management device 300 may further include:

[0078] The interception module is used to record the URL of the first page and intercept the URL of the first page within a preset time after exiting the first page.

[0079] Optionally, as an embodiment, the page management device 300 may further include:

[0080] A prompt module is used to prompt the download behavior of the first page in a lightweight download interaction form

[0081] Optionally, as an embodiment, the prompt module includes:

[0082] The display submodule is used to display a message prompt bubble, wherein the message prompt bubble is used to prompt the download behavior that has been triggered by the first page.

[0083] Optionally, as an embodiment, the message prompt bubble displays the number of times the first page has triggered a download behavior.

[0084] Optionally, as an embodiment, the page management device 300 may further include:

[0085] A second receiving module, used for receiving a second input of the user to the message prompt bubble;

[0086] A display module, configured to display a history download list page in response to the second input, wherein the history download list page records the download items corresponding to the download behavior;

[0087] A third receiving module, configured to receive a third input of the user on at least one of the download items;

[0088] The instruction module is used to execute the download behavior corresponding to the download item in response to the third input.

[0089] Optionally, as an embodiment, the page management device 300 may further include:

[0090] a detection module, configured to detect whether a fourth input from the user is received when it is determined that the target page content does not satisfy the preset content rule and the current browsing mode of the first page is the preset browsing mode;

[0091] The blocking module is used to always display the first page and block all downloading behaviors when the fourth input is not detected.

[0092] The page management device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palm computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0093] The page management device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0094] The page management device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be repeated here.

[0095] Alternatively, if Figure 4 As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a program or instruction stored in the memory 402 and executable on the processor 401. When the program or instruction is executed by the processor 401, each process of the above-mentioned page management method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0096] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0097] Figure 5 The hardware structure diagram of an electronic device for implementing an embodiment of the present application is shown in FIG. The electronic device 500 includes, but is not limited to, a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510.

[0098] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0099] The processor 510 is configured to obtain target page content of the first page; if it is determined that the target page content satisfies a preset content rule, determine that the first page satisfies a download prohibition condition; if the first page triggers a download behavior, prohibit a URL corresponding to the download behavior from entering a history stack;

[0100] A user input unit 507, used to receive a first input from a user;

[0101] The processor 510 is further configured to exit the first page in response to the first input.

[0102] It can be seen that in the embodiment of the present application, for the first page displayed in the browser, the target page content of the first page can be obtained, and according to the target page content, it is determined whether the first page meets the download prohibition condition. If the first page meets the download prohibition condition, then when the first page triggers the download behavior, the URL corresponding to the download behavior is prohibited from entering the history stack of the browser. Compared with the prior art, in the embodiment of the present application, malicious pages are identified by identifying the page content, and then the URL corresponding to the download behavior of the malicious page is prevented from entering the history stack of the browser, so that the user can exit the malicious page without closing the browser, the operation is relatively simple, and the efficiency of the user browsing pages is improved.

[0103] Optionally, as an embodiment, the processor 510 is further configured to record the URL of the first page, and intercept the URL of the first page within a preset time period after exiting the first page.

[0104] Optionally, as an embodiment, the processor 510 is further configured to prompt the downloading behavior of the first page by adopting a lightweight download interaction form.

[0105] Optionally, as an embodiment, the processor 510 is further configured to display a message prompt bubble, wherein the message prompt bubble is used to prompt that the first page has triggered a download behavior.

[0106] Optionally, as an embodiment, the message prompt bubble displays the number of times the first page has triggered a download behavior.

[0107] Optionally, as an embodiment, the user input unit 507 is further configured to receive a second input of the user to the message prompt bubble;

[0108] The display unit 506 is further configured to display a history download list page in response to the second input, wherein the history download list page records the download items corresponding to the download behavior;

[0109] The user input unit 507 is further used to receive a third input of the user for at least one of the download items;

[0110] The processor 510 is further configured to execute a download behavior corresponding to the download item in response to the third input.

[0111] Optionally, as an embodiment, the processor 510 is further configured to detect whether a fourth input of the user is received when it is determined that the content of the target page does not satisfy the preset content rule and the current browsing mode of the first page is a preset browsing mode;

[0112] When the fourth input is not detected, the first page is always displayed and all downloading behaviors are blocked.

[0113] It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 509 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 510 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 510.

[0114] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned page management method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0115] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0116] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned page management method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0117] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0118] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0120] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A page management method, characterized in that: The method comprises: Get the target page content of the first page; In the case where it is determined that the target page content satisfies a preset content rule, determining that the first page satisfies a download prohibition condition, wherein the preset content rule is a basis for determining whether a page is a malicious page; In the case where the first page triggers a download behavior, prohibiting the uniform resource locator URL corresponding to the download behavior from entering the history stack; Receive a first input from a user, and exit the first page in response to the first input; wherein the first input is used to exit the first page and return to a previous page; Wherein, after the step of prohibiting the uniform resource locator URL corresponding to the downloading behavior from entering the history stack, the method further includes: Using a lightweight download interaction form to prompt the download behavior of the first page; The adopting a lightweight download interaction form to prompt the download behavior of the first page includes: A message prompt bubble is displayed, wherein the message prompt bubble is used to prompt that the first page has triggered a download behavior.

2. The method according to claim 1, characterized in that: After the step of exiting the first page, the method further includes: The URL of the first page is recorded, and the URL of the first page is intercepted within a preset time period after exiting the first page.

3. The method according to claim 1, characterized in that The message prompt bubble displays the number of times the first page has triggered a download action.

4. The method according to claim 1 or 3, characterized in that: After the step of displaying the message prompt bubble, the method further includes: receiving a second input from the user to the message prompt bubble, and in response to the second input, displaying a historical download list page, wherein the historical download list page records a download entry corresponding to the download behavior; A third input of the user to at least one of the download items is received, and in response to the third input, a download behavior corresponding to the download item is executed.

5. The method according to claim 1, characterized in that The method further comprises: If it is determined that the target page content does not satisfy the preset content rule and the current browsing mode of the first page is a preset browsing mode, detecting whether a fourth input from the user is received; When the fourth input is not detected, the first page is always displayed and all downloading behaviors are blocked.

6. A page management device, characterized in that: The device comprises: An acquisition module, used to acquire the target page content of the first page; A determination module, configured to determine that the first page satisfies a download prohibition condition when it is determined that the content of the target page satisfies a preset content rule, wherein the preset content rule is a basis for determining whether a page is a malicious page; a prohibition module, configured to prohibit a uniform resource locator URL corresponding to the download behavior from entering a history stack when the first page triggers a download behavior; A first receiving module, used to receive a first input from a user; An exit module, configured to exit the first page in response to the first input; wherein the first input is used to exit the first page and return to a previous page; The device also includes: A prompt module, used to prompt the download behavior of the first page in a lightweight download interaction form; The prompt module comprises: The display submodule is used to display a message prompt bubble, wherein the message prompt bubble is used to prompt the download behavior that has been triggered by the first page.

7. An electronic device, characterized in that: It comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the page management method as claimed in any one of claims 1 to 5.

8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the page management method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method and system for operating multiple web pages with anti-spoofing protection

    US20060271861A1

  • Detecting and blocking unauthorized downloads

    US8230499B1