CN116088986A - Popup interception method and device, electronic equipment and storage medium - Google Patents

Popup interception method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116088986A
CN116088986A CN202211741604.2A CN202211741604A CN116088986A CN 116088986 A CN116088986 A CN 116088986A CN 202211741604 A CN202211741604 A CN 202211741604A CN 116088986 A CN116088986 A CN 116088986A
Authority
CN
China
Prior art keywords
window
judgment
interception
popup
result
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
Application number
CN202211741604.2A
Other languages
Chinese (zh)
Inventor
李冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN202211741604.2A priority Critical patent/CN116088986A/en
Publication of CN116088986A publication Critical patent/CN116088986A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a popup interception method, a popup interception device, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to a non-user request to pop up a target popup window, and acquiring attribute information of the target popup window; judging whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database; and responding to the target popup to be intercepted, and determining an interception mode of the target popup according to a window level of the target popup, wherein the window level can represent the level of the target popup in a process. According to the method, the interception mode of the popup window is determined according to the window level, different popup windows can be intercepted in a targeted mode, the success rate of advertisement window interception is increased, meanwhile, error interception of normal popup windows is avoided, and the overall efficiency and user experience of advertisement window interception are improved.

Description

Popup interception method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for intercepting a pop-up window, an electronic device, and a storage medium.
Background
When using an electronic device, a user often encounters an advertisement popup, and a malicious application program is downloaded and installed along with a common application program, and the malicious application program loads the advertisement popup and displays the advertisement popup in a window interface without the knowledge of the user. These advertisement popups not only affect the user to browse the normal window interface, but also may be mispointed by the user, affecting the user experience.
In the related art, a uniform interception mode is adopted for the advertisement popup window, but the advertisement popup window may not be completely intercepted or other normal popup windows associated with the advertisement popup window may be intercepted by mistake.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a popup interception method, apparatus, electronic device, and storage medium.
Based on the above objects, the present application provides a popup interception method, including: responding to a non-user request to pop up a target popup window, and acquiring attribute information of the target popup window; judging whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database; and responding to the target popup to be intercepted, and determining an interception mode of the target popup according to a window level of the target popup, wherein the window level can represent the level of the target popup in a process.
Optionally, the determining the interception mode of the target popup according to the window level of the target popup includes: responding to the window level of the target popup window as a settable minimum value, and intercepting the whole process of the target popup window; in response to the window level of the target popup being greater than the minimum, only the target popup is intercepted.
Optionally, the target popup window includes a main window, or a main window and at least one auxiliary window, the attribute information includes at least main window information, or the main window information and auxiliary window information, and the auxiliary window information includes at least the number of auxiliary windows; judging whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database, wherein the method comprises the following steps: executing a first judgment of whether the target popup window needs interception or not according to the main window information and the database; responding to the first judgment result to determine that interception is needed, and determining that interception is needed for the target popup; responding to the number of the auxiliary windows being zero, and determining that the target popup window does not need to be intercepted as a result of the first judgment; responding to the fact that the number of the auxiliary windows is not zero, and the result of the first judgment is that interception is not needed, and executing second judgment whether interception is needed by the target popup window or not according to the auxiliary window information and the database; and determining that the target popup is required to be intercepted in response to the result of the second judgment, and determining that the target popup is not required to be intercepted in response to the result of the second judgment.
Optionally, the main window information at least includes main title information, main link information, region information and process information of the main window; the executing, according to the main window information and the database, the first determination whether the target popup needs interception, includes: executing third judgment of whether the target popup window needs to be intercepted according to the main title information and the database, and determining that the result of the first judgment is to be intercepted if the result of the third judgment is to be intercepted; responding to the result of the third judgment that interception is not needed, executing a fourth judgment whether the target popup is needed to be intercepted according to the main link information and the database, and responding to the result of the fourth judgment that interception is needed, determining that the result of the first judgment is needed to be intercepted; responding to the result of the fourth judgment that interception is not needed, executing a fifth judgment whether the target popup is needed to be intercepted according to the region information and the database, responding to the result of the fifth judgment that interception is not needed, and determining that interception is not needed as a result of the first judgment; and responding to the result of the fifth judgment to be intercepted, executing a sixth judgment whether the target popup is required to be intercepted according to the process information and the database, responding to the result of the sixth judgment to be intercepted, determining that the result of the first judgment is required to be intercepted, responding to the result of the sixth judgment to be not required to be intercepted, and determining that the result of the first judgment is not required to be intercepted.
Optionally, the main title information includes at least a main window title, and the database includes at least titles of main windows or sub windows of the plurality of history interception popups: the executing the third judgment of whether the target popup window needs interception according to the main title information and the database includes: comparing the main window title with the titles in the database; and responding to the condition that the database contains the title with the similarity to the main window title being larger than or equal to a preset first threshold value, wherein the result of the third judgment is that interception is needed, and responding to the condition that the database does not contain the title with the similarity to the main window title being larger than or equal to the preset first threshold value, the result of the third judgment is that interception is not needed.
Optionally, the main link information at least includes a website linked in the main window, and the database at least includes a plurality of advertisement link fields; the fourth judgment of whether the target popup needs interception according to the main link information and the database includes: comparing the linked websites in the main window with the advertisement link fields in the database; and if the website linked in the main window does not include any advertisement link field, the fourth judgment result is that interception is not needed.
Optionally, the area information at least includes a coverage area of the target popup window in the whole display window, and the database at least includes a preset popup window common area; the fifth determination of whether the target popup needs interception according to the region information and the database includes: comparing the coverage area of the target popup window with the popup window common area; and responding to that the coverage area of the target popup window is completely positioned in the popup window common area, the result of the fifth judgment is that interception is needed, and responding to that the coverage area part of the target popup window is positioned outside the popup window common area, the result of the fifth judgment is that interception is not needed.
Optionally, the process information at least includes a process name of the target popup window, and the database at least includes a plurality of advertisement process names; the sixth determination, performed according to the process information and the database, of whether the target popup needs interception, includes: comparing the process name of the target popup with the history process names in the database; and responding to the fact that the historical process name which is the same as the process name of the target popup window exists in the database, the result of the sixth judgment is that interception is needed, and responding to the fact that the historical process name which is not the same as the process name of the target popup window exists in the database, the result of the sixth judgment is that interception is not needed.
Optionally, the sub window information at least includes sub title information and sub link information of each sub window; the second judging whether the target popup window needs to be intercepted according to the auxiliary window information and the database comprises the following steps: executing a seventh judgment whether the target popup window needs to be intercepted according to the subtitle information and the database, and determining that the result of the second judgment is to be intercepted if the result of the seventh judgment is to be intercepted; and responding to the seventh judgment result that interception is not needed, executing an eighth judgment whether the target popup window is needed to be intercepted according to the auxiliary link information and the database, responding to the eighth judgment result that interception is needed, determining that interception is needed as a result of the second judgment, responding to the eighth judgment result that interception is not needed, and determining that interception is not needed as a result of the second judgment.
Optionally, the method further comprises: responding to user operation to select any desktop popup window, and acquiring attribute information of the desktop popup window; and adding the attribute information of the desktop popup window into the database.
Based on the same inventive concept, the application also provides a popup window interception device, comprising: the acquisition module is configured to pop up a target popup window in response to a non-user request and acquire attribute information of the target popup window; the first judging module is configured to judge whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database; and the second judging module is configured to respond to the target popup to be intercepted, and determine the intercepting mode of the target popup according to the window level of the target popup, wherein the window level can represent the level of the target popup in the process.
Based on the same inventive concept, the application also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize any one of the methods.
Based on the same inventive concept, the present application also provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform any one of the methods.
From the above, it can be seen that the method, the device, the electronic device and the storage medium for intercepting the popup window provided by the present application, where the method includes: responding to a non-user request to pop up a target popup window, and acquiring attribute information of the target popup window; judging whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database; and responding to the target popup to be intercepted, and determining an interception mode of the target popup according to a window level of the target popup, wherein the window level can represent the level of the target popup in a process. According to the method, the interception mode of the popup window is determined according to the window level, different popup windows can be intercepted in a targeted mode, the success rate of advertisement window interception is increased, meanwhile, error interception of normal popup windows is avoided, and the overall efficiency and user experience of advertisement window interception are improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application or related art, the drawings that are required to be used in the description of the embodiments or related art will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
Fig. 1 is a schematic flow chart of a popup interception method according to an embodiment of the present application;
fig. 2 is a flow chart of a method for determining whether a pop-up window needs to be intercepted according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a pop-up window interception device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a first judging module according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings.
It should be noted that unless otherwise defined, technical or scientific terms used in the embodiments of the present application should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present application belongs. The terms "first," "second," and the like, as used in embodiments of the present application, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
An embodiment of the present application provides a popup interception method, which can be applied to an electronic device including an intelligent operating system, such as a computer, a smart phone, and the like, as shown in fig. 1, and includes:
step S101, a target popup window is popped up in response to a non-user request, and attribute information of the target popup window is obtained. The popup window requested by the non-user refers to a popup window automatically popped by the system, and the popup window directly generated due to the active clicking of the user is not in the range of the popup window requested by the non-user. The attribute information comprises information of each element forming the target popup window, and the attribute information of the target popup window can be called through a background.
In a specific embodiment, whether the popup window is a non-user request popup or not can be judged by an operating user (or a request user) for retrieving the popup window in the background, if the operating user is a system login user, the popup is requested by the user, the popup is not in the interception range of the method, and if the operating user is a system or an application, the popup is requested by the non-user and is an interception target of the method.
In a specific implementation, before the window is popped up, the target popup window sends a pop-up request to the system through the background, and the target popup window popping up in response to the non-user request comprises sending a pop-up request to the system in response to the non-user request (when the target popup window sends the pop-up request to the system, an operating user of the popup window can be called from the background of the system, so that whether the operating user is the non-user request or not is known), so that the popup window can be intercepted before the user sees the popup window, and user experience is further improved. It should be noted that, after the target window pops up, it automatically intercepts other technical effects of the method provided in the application, which can also be reached, and the method is also within the protection scope of the application.
And step S102, judging whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database. In specific implementation, the pre-constructed database includes attribute information of a plurality of history interception popups, and the history interception popups are obtained by downloading malicious application software with popups in a secure environment. Whether the popup window needs to be intercepted or not is judged based on the database, so that the actual situation is more met, and the interception efficiency of the advertisement popup window is further improved.
Step S103, in response to the target popup needing to be intercepted (all advertisement popups in the embodiment of the present application refer to the target popup that has been determined to be intercepted), determining an interception manner of the target popup according to a window level of the target popup, where the window level can represent a level of the target popup in a process. Popup windows are generally parasitic in a process (i.e., application software), take the process as a carrier, pop up only when the process is started, each popup window has its own unique ID for the system and the process, that is, the popup window has a direct relationship with the process, and the window level indicates the relationship. For example, for one process, the window level of the first pop-up main window is 0 or 1, the level of the sub-window that the user clicks on the main window or the main window automatically calls up is added with 1 on the level of the main window, and at this time, the level of the other main window that another process pops up is still 0 or 1, and so on.
According to the method, the interception mode of the popup window is determined according to the window level, different popup windows can be intercepted in a targeted mode, the success rate of advertisement window interception is increased, meanwhile, error interception of normal popup windows is avoided, and the overall efficiency and user experience of advertisement window interception are improved.
As described in the background section, in the related art, a uniform interception mode is adopted for the advertisement popup window, but this may cause incomplete interception of the popup window, for example, only the window of the advertisement popup window is intercepted, but the popup window still pops up all the time in the process of the advertisement popup window; or other normal popup windows associated with the advertisement popup window are intercepted by mistake, for example, the process where the advertisement popup window is located is intercepted directly, so that other normal popup windows in the process are intercepted together, and even other processes with the same name are intercepted, thereby affecting the user experience.
In view of this, in some embodiments, the step S103 includes:
and responding to the window level of the target popup window as a settable minimum value, intercepting the whole process of the target popup window, and particularly stopping or ending the whole process of the target popup window. In response to the window level of the target popup being greater than the minimum, only the target popup is intercepted. In a specific embodiment, intercepting the whole process where the target popup is located further includes intercepting all processes having the same process name as the process where the target popup is located.
In the same process, since it is not known in advance how many windows are in common, the values representing the window levels are sequentially given from small to large. If the window level of the target popup window is the minimum value which can be set, the condition that other popups are not generated in the process of the advertisement popup window or are generated based on the advertisement popup window is indicated, at this time, no other normal popup window is generated in the process, and the whole process where the target popup window is located can be directly intercepted, so that the process is prevented from popup window again. If the level of the target popup window is greater than the minimum value, the advertisement popup window is generated on a basic popup window, and the advertisement popup window is only intercepted, so that the whole process is not required to be intercepted. The method further increases the success rate of advertisement window interception, avoids error interception of normal popup windows, and further improves the overall efficiency and user experience of advertisement window interception.
In a specific embodiment, the minimum value that can be set by the window level is 0, and the window levels of the advertisement popup windows larger than the minimum value are 1, 3 and 4, and then the whole process where the target popup window is located is intercepted in response to the window level of the target popup window being 0. In response to the window level of the target popup being 1, 3, or 4, only the target popup is intercepted.
In some embodiments, the target popup window includes a main window, or a main window and at least one sub window, the attribute information includes at least main window information, or the main window information and sub window information, and the sub window information includes at least a sub window number. In practice, some advertisement popup windows include only one advertisement message, which fills the entire popup window, and the advertisement popup window includes only one main window. The advertisement popup window may be formed by a plurality of small modules, and may be regarded as a small jigsaw, each small module includes a piece of advertisement information, that is, the popup window includes a main window and a sub window, the sub window is a small module, the main window may be regarded as a frame including a plurality of small modules, even if the frame does not include any other information, the frame still exists, and all the sub windows exist in a manner of being attached to the main window.
Since the main window may not include any other information as a frame, the interception of the main window may cause the advertisement information in the sub window to be ignored, which may further cause the fish with the net missing. In view of this, step S102 in the above embodiment of the present application further includes:
Step 201, executing a first judgment of whether the target popup needs to be intercepted according to the main window information and the database, and determining that the target popup needs to be intercepted if the result of the first judgment is that the target popup needs to be intercepted; and responding to the number of the auxiliary windows being zero, and determining that the target popup window does not need to be intercepted as a result of the first judgment.
Step S202, responding to the fact that the number of the auxiliary windows is not zero, and the result of the first judgment is that interception is not needed, and executing second judgment whether interception is needed by the target popup window or not according to the auxiliary window information and the database; and determining that the target popup is required to be intercepted in response to the result of the second judgment, and determining that the target popup is not required to be intercepted in response to the result of the second judgment.
If the interception is not needed according to the main window information, the interception and filtration are carried out again according to the auxiliary window information, so that the success rate of the interception of the advertisement window and the user experience can be further improved.
It should be noted that, the window level of the secondary window is the same as the primary window (both are window levels of the entire target popup window), and when the target popup window is determined to be intercepted by the secondary window information, the interception mode of the target popup window may also be determined by the window level of the entire target popup window (i.e. executing step S103).
In some embodiments, the main window information includes at least main title information, main link information, region information, and process information of the main window. The step S101 of obtaining the attribute information of the target popup further includes, in response to a non-user request to pop up the target popup, obtaining the target popup, analyzing background data of the target popup, and obtaining the attribute information of the target popup. As shown in fig. 2, the step S201 further includes:
step S301, executing a third determination of whether the target popup needs to be intercepted according to the main title information and the database, and determining that the result of the first determination is that interception is needed in response to the result of the third determination being that interception is needed.
The title can embody the attribute of a popup window most intuitively, the title used by the advertisement popup window comprises words such as news, shopping and the like, the characteristic is relatively clear, and if the target popup window can be judged to be the advertisement popup window through title information, the subsequent judging process is not needed.
And step S302, responding to the result of the third judgment that interception is not needed, executing a fourth judgment whether the target popup is needed to be intercepted according to the main link information and the database, and responding to the result of the fourth judgment that interception is needed, and determining that the result of the first judgment is needed to be intercepted.
The advertisement popup window generally comprises links which enable a user to jump to an advertisement page after clicking, the links can further embody the attribute of the popup window, and if the target popup window can be judged to be the advertisement popup window through the link information, a subsequent judging process is not needed.
And step 303, responding to the result of the fourth judgment to judge whether the target popup window needs to be intercepted or not, and responding to the result of the fifth judgment to judge whether the target popup window needs to be intercepted or not according to the region information and the database, and determining that the result of the first judgment is that the interception is not needed.
The popup windows in the common area of the advertisement popup window are not necessarily advertisement popup windows, because most normal popup windows can also appear in various positions; since the nature of the advertisement determines that it will pop up in most of its circumstances in the most prominent location, it may be considered that the targeted pop-up is not an advertisement pop-up if it is not in the common area of the advertisement pop-up.
And step S304, responding to the result of the fifth judgment to be intercepted, executing a sixth judgment whether the target popup is required to be intercepted according to the process information and the database, responding to the result of the sixth judgment to be intercepted, determining that the result of the first judgment is required to be intercepted, responding to the result of the sixth judgment to be not required to be intercepted, and determining that the result of the first judgment is not required to be intercepted. In specific implementation, the process information is a process name.
The steps S301 to S304 provide a hierarchical interception mechanism for advertisement popup windows, which further increases the success rate of advertisement window interception, and meanwhile, avoids error interception of normal popup windows, and improves the overall efficiency and user experience of advertisement window interception.
In some embodiments, the sub-window information includes at least sub-title information and sub-link information of each of the sub-windows. The step S202 includes:
and step 401, executing a seventh judgment whether the target popup window needs to be intercepted according to the subtitle information and the database, and determining that the result of the second judgment is that interception is needed in response to the result of the seventh judgment being that interception is needed.
And step S402, responding to the result of the seventh judgment to be that interception is not needed, executing an eighth judgment whether the target popup window is needed to be intercepted according to the auxiliary link information and the database, responding to the result of the eighth judgment to be that interception is needed, determining that the result of the second judgment is that interception is needed, responding to the result of the eighth judgment to be that interception is not needed, and determining that the result of the second judgment is that interception is not needed.
The step S202 is performed after the step S201, that is, when the steps S401 and S402 are performed, the steps S303 and S304 have been performed, and the sub window and the main window are in the same area and process, so that only the sub header information and the sub link information may be used when the interception is performed according to the sub window information.
In some embodiments, the primary title information includes at least a primary window title, and the database includes at least titles of primary or secondary windows of the plurality of history interception popups. The advertisement popup window formed by the auxiliary window may not have the main window title, in this case, the main window title is set to a plurality of spaces, the similarity between the plurality of spaces and any text title is zero, and the next judging process is automatically performed.
The step S301 includes:
and comparing the main window title with the titles in the database.
And responding to the condition that the database contains the title with the similarity to the main window title being larger than or equal to a preset first threshold value, wherein the result of the third judgment is that interception is needed, and responding to the condition that the database does not contain the title with the similarity to the main window title being larger than or equal to the preset first threshold value, the result of the third judgment is that interception is not needed.
In a specific embodiment, the calculation formula of the similarity is:
Figure BDA0004024049540000091
for example, if a main window is titled "daily news" and a history interception bomb window is titled "daily news" in the database, the similarity between the main window title and the title of the history interception bomb window is 75%.
In specific implementation, the first threshold needs to be determined according to the richness of the titles of the history interception popup windows in the database, if the richness is lower, the corresponding first threshold is lower, and if the richness is higher, the corresponding first threshold is higher.
In some embodiments, the subtitle information includes at least a subtitle of each of the sub-windows, and the step S401 includes:
and comparing the sub-window title of each sub-window with the titles in the database.
And responding to the fact that any one of the titles with the sub-window title similarity larger than or equal to a preset first threshold exists in the database, the seventh judgment result is that interception is needed, and responding to the fact that any one of the titles with the sub-window title similarity larger than or equal to the preset first threshold does not exist in the database, the seventh judgment result is that interception is not needed.
The specific implementation process according to step S401 refers to step S301, and will not be described in detail.
In some embodiments, the main link information includes at least a web address linked in the main window, where the web address is specifically a web address linked by URL (uniform resource locator, uniform resource location system), and if the main window does not include any link, the web address linked in the main window may be set to multiple spaces. The database includes at least a plurality of advertisement link fields, and when implemented, the advertisement link fields include fields that advertisement links such as "shopping," "news," "taobao," "news," and the like typically include, and the step S302 includes:
And comparing the linked websites in the main window with the advertisement link fields in the database.
And if the website linked in the main window does not include any advertisement link field, the fourth judgment result is that interception is not needed.
In some embodiments, the secondary link information includes at least a website linked in the secondary window, and the step S402 includes:
and comparing the linked websites in each secondary window with the advertisement link fields in the database.
And responding to that any one of the websites linked in the auxiliary window comprises any one of the advertisement link fields, wherein the eighth judgment result is that interception is required, and responding to that all the websites linked in the auxiliary window do not comprise any one of the advertisement link fields, the eighth judgment result is that interception is not required.
The specific implementation process according to step S402 refers to step S302, and will not be described in detail. In some embodiments, the area information includes at least a coverage area of the target popup window in the whole display window, and the database includes at least a preset popup window common area. In a specific embodiment, the preset popup window common area is a middle area and a lower right corner of the whole display window, and specific numerical values need to be determined according to the actual length and width of the display window. The step S303 includes:
And comparing the coverage area of the target popup window with the popup window common area. In specific implementation, the coverage area of the target popup window is determined through the vertex of the target popup window, the popup window is rectangular, and the coverage area can be determined through the vertex coordinates.
And responding to that the coverage area of the target popup window is completely positioned in the popup window common area, the result of the fifth judgment is that interception is needed, and responding to that the coverage area part of the target popup window is positioned outside the popup window common area, the result of the fifth judgment is that interception is not needed. If the coverage area of the target popup window is partially located outside the popup window common area, the position of the target popup window is deviated from the popup window common area, and the advertisement is ejected to the most obvious position in most cases due to the property of the advertisement, so that the target popup window can be determined not to be intercepted.
In some embodiments, the process information includes at least a process name of the target popup window, and the database includes at least a plurality of advertisement process names, specifically, when all popups generated after a certain process is operated are advertisement popups, the process name is added as an advertisement process name to the database. The step S304 includes:
And comparing the process name of the target popup with the history process names in the database.
And responding to the fact that the historical process name which is the same as the process name of the target popup window exists in the database, the result of the sixth judgment is that interception is needed, and responding to the fact that the historical process name which is not the same as the process name of the target popup window exists in the database, the result of the sixth judgment is that interception is not needed.
In some embodiments, the method further comprises:
responding to user operation to select any desktop popup window, and acquiring attribute information of the desktop popup window;
and adding the attribute information of the desktop popup window into the database.
In order to prevent the advertisement delivery party from blocking the popup window by modifying the title, the popup window area and the process name, for the popup window which is not blocked by the method, but is still considered as an advertisement by the user, the user can actively operate to select the popup window, and the attribute information of the popup window is acquired by utilizing the mode of acquiring the attribute information of the target popup window and is added into the database, so that the popup window can be successfully blocked in future.
In a specific embodiment, the method further comprises:
And deleting the attribute information of the white list window from the database.
The advertisement popup window identified in the above embodiment of the present application is determined based on the usage habit of public electronic devices, if some users need to see some advertisement popup windows, only need to add them to the white list, and at the same time, delete the attribute information of the white list window from the database. The attribute information of the white list window is not returned to the database as long as the user does not select the window to be seen as the advertisement popup window.
In a specific embodiment, the method provided by the application is used for intelligent terminal equipment in a campus. In-time intercept advertisement bullet window in campus intelligent terminal equipment, avoid advertisement bullet window distraction teachers and students, provide a clear study and teaching environment for student and mr. The terminal device may be an interactive all-in-one machine.
The application environment in the above embodiment is exemplary, and the application of the method provided by the application to the intelligent terminal device in business, medical and other industries is within the protection scope of the application.
In a specific embodiment, the method further comprises:
and simultaneously remotely managing a plurality of electronic devices applying the popup window interception method provided by the application by utilizing an MQTT (Message Queuing Telemetry Transport) technology.
By utilizing the MQTT, the method provided by the application can be not limited to single equipment, and can realize unified management under district, county, city and provincial education bureau when being used for intelligent terminal equipment in a campus.
It should be noted that, the method of the embodiments of the present application may be performed by a single device, for example, a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the methods of embodiments of the present application, and the devices may interact with each other to complete the methods.
It should be noted that some embodiments of the present application are described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any embodiment, the application further provides a popup window interception device, as shown in fig. 3, including:
an acquisition module 10 configured to pop up a target popup in response to a non-user request, and acquire attribute information of the target popup;
the first judging module 20 is configured to judge whether the target popup needs interception according to the attribute information and a pre-constructed database;
the second judging module 30 is configured to determine, in response to the target popup needing interception, an interception mode of the target popup according to a window level of the target popup, where the window level can represent a level of the target popup in a process.
According to the device, the interception mode of the popup window is determined according to the window level, different popup windows can be intercepted in a targeted mode, the success rate of advertisement window interception is increased, meanwhile, error interception of normal popup windows is avoided, and the overall efficiency and user experience of advertisement window interception are improved.
In some embodiments, the second determining module 30 is further configured to:
and intercepting the whole process of the target popup in response to the window level of the target popup being a settable minimum value, and intercepting only the target popup in response to the window level of the target popup being greater than the minimum value.
In some embodiments, the target popup window includes a main window, or a main window and at least one sub window, the attribute information includes at least main window information, or the main window information and sub window information, and the sub window information includes at least a sub window number. The first judging module 20 is further configured to:
executing a first judgment of whether the target popup window needs interception or not according to the main window information and the database; responding to the first judgment result to determine that interception is needed, and determining that interception is needed for the target popup; and responding to the number of the auxiliary windows being zero, and determining that the target popup window does not need to be intercepted as a result of the first judgment.
Responding to the fact that the number of the auxiliary windows is not zero, and the result of the first judgment is that interception is not needed, and executing second judgment whether interception is needed by the target popup window or not according to the auxiliary window information and the database; and determining that the target popup is required to be intercepted in response to the result of the second judgment, and determining that the target popup is not required to be intercepted in response to the result of the second judgment.
In some embodiments, the main window information includes at least main title information, main link information, region information, and process information of the main window. As shown in fig. 4, the first determining module 20 includes:
a header comparison unit 40, configured to execute a third determination of whether the target popup needs to be intercepted according to the main header information and the database, and determine that the result of the first determination is that interception is needed in response to the result of the third determination being that interception is needed;
and the link comparison unit 50 is configured to respond to the result of the third judgment that interception is not needed, execute a fourth judgment whether the target popup needs interception according to the main link information and the database, and respond to the result of the fourth judgment that interception is needed, and determine that the result of the first judgment is that interception is needed.
And the area comparing unit 60 is configured to execute a fifth determination of whether the target popup needs to be intercepted according to the area information and the database in response to the result of the fourth determination that interception is not needed, and determine that interception is not needed in response to the result of the fifth determination that interception is not needed.
And a process comparing unit 70 configured to respond to the result of the fifth judgment to be intercepted, execute a sixth judgment whether the target popup is required to be intercepted according to the process information and the database, respond to the result of the sixth judgment to be intercepted, determine that the result of the first judgment is required to be intercepted, respond to the result of the sixth judgment to be not required to be intercepted, and determine that the result of the first judgment is not required to be intercepted.
In some embodiments, the primary title information includes at least a primary window title, and the database includes at least titles of primary or secondary windows of the plurality of history interception popups. The title comparison unit 40 is further configured to:
comparing the main window title with the titles in the database;
and responding to the condition that the database contains the title with the similarity to the main window title being larger than or equal to a preset first threshold value, wherein the result of the third judgment is that interception is needed, and responding to the condition that the database does not contain the title with the similarity to the main window title being larger than or equal to the preset first threshold value, the result of the third judgment is that interception is not needed.
In some embodiments, the primary link information includes at least a web address linked within the primary window, and the database includes at least a plurality of advertisement link fields; the link comparison unit 50 is further configured to:
Comparing the linked websites in the main window with the advertisement link fields in the database;
and if the website linked in the main window does not include any advertisement link field, the fourth judgment result is that interception is not needed.
In some embodiments, the area information includes at least a coverage area of the target popup window in the whole display window, and the database includes at least a preset popup window common area. The area comparison unit 60 is further configured to:
comparing the coverage area of the target popup window with the popup window common area;
and responding to that the coverage area of the target popup window is completely positioned in the popup window common area, the result of the fifth judgment is that interception is needed, and responding to that the coverage area part of the target popup window is positioned outside the popup window common area, the result of the fifth judgment is that interception is not needed.
In some embodiments, the process information includes at least a process name of the target pop-up window, and the database includes at least a plurality of advertisement process names. The process alignment unit 70 is further configured to:
Comparing the process name of the target popup with the history process names in the database;
and responding to the fact that the historical process name which is the same as the process name of the target popup window exists in the database, the result of the sixth judgment is that interception is needed, and responding to the fact that the historical process name which is not the same as the process name of the target popup window exists in the database, the result of the sixth judgment is that interception is not needed.
In some embodiments, the sub-window information includes at least sub-title information and sub-link information of each of the sub-windows; the first judging module 20 is further configured to:
and executing a seventh judgment whether the target popup window needs to be intercepted according to the subtitle information and the database, and determining that the result of the second judgment is that interception is needed if the result of the seventh judgment is that interception is needed.
And responding to the seventh judgment result that interception is not needed, executing an eighth judgment whether the target popup window is needed to be intercepted according to the auxiliary link information and the database, responding to the eighth judgment result that interception is needed, determining that interception is needed as a result of the second judgment, responding to the eighth judgment result that interception is not needed, and determining that interception is not needed as a result of the second judgment.
In some embodiments, the apparatus further comprises:
the active acquisition module is configured to respond to user operation to select any desktop popup, acquire attribute information of the desktop popup and add the attribute information of the desktop popup into the database.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
The device of the foregoing embodiment is configured to implement the corresponding popup window interception method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the application also provides an electronic device corresponding to the method of any embodiment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the popup interception method of any embodiment when executing the program.
Fig. 5 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured to implement the corresponding popup interception method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, corresponding to any of the above embodiments of the method, the present application further provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the popup intercept method according to any of the above embodiments.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The storage medium of the foregoing embodiment stores computer instructions for causing the computer to execute the popup interception method according to any one of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the present application, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present application. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform on which the embodiments of the present application are to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, equivalents, improvements and/or the like which are within the spirit and principles of the embodiments are intended to be included within the scope of the present application.

Claims (13)

1. A pop-up interception method, comprising:
responding to a non-user request to pop up a target popup window, and acquiring attribute information of the target popup window;
judging whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database;
and responding to the target popup to be intercepted, and determining an interception mode of the target popup according to a window level of the target popup, wherein the window level can represent the level of the target popup in a process.
2. The method according to claim 1, wherein the determining the interception mode of the target popup according to the window level of the target popup includes:
responding to the window level of the target popup window as a settable minimum value, and intercepting the whole process of the target popup window;
in response to the window level of the target popup being greater than the minimum, only the target popup is intercepted.
3. The method according to claim 1, wherein the target popup window comprises a main window, or a main window and at least one sub window, the attribute information comprises at least main window information, or the main window information and sub window information, and the sub window information comprises at least a sub window number;
judging whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database, wherein the method comprises the following steps:
executing a first judgment of whether the target popup window needs interception or not according to the main window information and the database;
responding to the first judgment result to determine that interception is needed, and determining that interception is needed for the target popup;
responding to the number of the auxiliary windows being zero, and determining that the target popup window does not need to be intercepted as a result of the first judgment;
Responding to the fact that the number of the auxiliary windows is not zero, and the result of the first judgment is that interception is not needed, and executing second judgment whether interception is needed by the target popup window or not according to the auxiliary window information and the database;
and determining that the target popup is required to be intercepted in response to the result of the second judgment, and determining that the target popup is not required to be intercepted in response to the result of the second judgment.
4. A method according to claim 3, wherein the main window information includes at least main title information, main link information, region information, process information of the main window;
the executing, according to the main window information and the database, the first determination whether the target popup needs interception, includes:
executing third judgment of whether the target popup window needs to be intercepted according to the main title information and the database, and determining that the result of the first judgment is to be intercepted if the result of the third judgment is to be intercepted;
responding to the result of the third judgment that interception is not needed, executing a fourth judgment whether the target popup is needed to be intercepted according to the main link information and the database, and responding to the result of the fourth judgment that interception is needed, determining that the result of the first judgment is needed to be intercepted;
Responding to the result of the fourth judgment that interception is not needed, executing a fifth judgment whether the target popup is needed to be intercepted according to the region information and the database, responding to the result of the fifth judgment that interception is not needed, and determining that interception is not needed as a result of the first judgment;
and responding to the result of the fifth judgment to be intercepted, executing a sixth judgment whether the target popup is required to be intercepted according to the process information and the database, responding to the result of the sixth judgment to be intercepted, determining that the result of the first judgment is required to be intercepted, responding to the result of the sixth judgment to be not required to be intercepted, and determining that the result of the first judgment is not required to be intercepted.
5. The method of claim 4, wherein the primary title information includes at least a primary window title, and the database includes at least titles of primary or secondary windows of a plurality of history interception popups:
the executing the third judgment of whether the target popup window needs interception according to the main title information and the database includes:
comparing the main window title with the titles in the database;
And responding to the condition that the database contains the title with the similarity to the main window title being larger than or equal to a preset first threshold value, wherein the result of the third judgment is that interception is needed, and responding to the condition that the database does not contain the title with the similarity to the main window title being larger than or equal to the preset first threshold value, the result of the third judgment is that interception is not needed.
6. The method of claim 4, wherein the primary link information includes at least a web address linked within the primary window, and the database includes at least a plurality of advertisement link fields;
the fourth judgment of whether the target popup needs interception according to the main link information and the database includes:
comparing the linked websites in the main window with the advertisement link fields in the database;
and if the website linked in the main window does not include any advertisement link field, the fourth judgment result is that interception is not needed.
7. The method of claim 4, wherein the area information includes at least a coverage area of the target popup in the entire display window, and the database includes at least a preset popup common area;
The fifth determination of whether the target popup needs interception according to the region information and the database includes:
comparing the coverage area of the target popup window with the popup window common area;
and responding to that the coverage area of the target popup window is completely positioned in the popup window common area, the result of the fifth judgment is that interception is needed, and responding to that the coverage area part of the target popup window is positioned outside the popup window common area, the result of the fifth judgment is that interception is not needed.
8. The method of claim 4, wherein the process information includes at least a process name of the target pop-up window, and the database includes at least a plurality of advertisement process names;
the sixth determination, performed according to the process information and the database, of whether the target popup needs interception, includes:
comparing the process name of the target popup with the history process names in the database;
and responding to the fact that the historical process name which is the same as the process name of the target popup window exists in the database, the result of the sixth judgment is that interception is needed, and responding to the fact that the historical process name which is not the same as the process name of the target popup window exists in the database, the result of the sixth judgment is that interception is not needed.
9. A method according to claim 3, said sub-window information including at least sub-title information and sub-link information for each of said sub-windows;
the second judging whether the target popup window needs to be intercepted according to the auxiliary window information and the database comprises the following steps:
executing a seventh judgment whether the target popup window needs to be intercepted according to the subtitle information and the database, and determining that the result of the second judgment is to be intercepted if the result of the seventh judgment is to be intercepted;
and responding to the seventh judgment result that interception is not needed, executing an eighth judgment whether the target popup window is needed to be intercepted according to the auxiliary link information and the database, responding to the eighth judgment result that interception is needed, determining that interception is needed as a result of the second judgment, responding to the eighth judgment result that interception is not needed, and determining that interception is not needed as a result of the second judgment.
10. The method according to any one of claims 1 to 9, further comprising:
responding to user operation to select any desktop popup window, and acquiring attribute information of the desktop popup window;
And adding the attribute information of the desktop popup window into the database.
11. A pop-up window arresting device, comprising:
the acquisition module is configured to pop up a target popup window in response to a non-user request and acquire attribute information of the target popup window;
the first judging module is configured to judge whether the target popup window needs to be intercepted according to the attribute information and a pre-constructed database;
and the second judging module is configured to respond to the target popup to be intercepted, and determine the intercepting mode of the target popup according to the window level of the target popup, wherein the window level can represent the level of the target popup in the process.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 10 when the program is executed by the processor.
13. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 10.
CN202211741604.2A 2022-12-28 2022-12-28 Popup interception method and device, electronic equipment and storage medium Pending CN116088986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211741604.2A CN116088986A (en) 2022-12-28 2022-12-28 Popup interception method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211741604.2A CN116088986A (en) 2022-12-28 2022-12-28 Popup interception method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116088986A true CN116088986A (en) 2023-05-09

Family

ID=86205765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211741604.2A Pending CN116088986A (en) 2022-12-28 2022-12-28 Popup interception method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116088986A (en)

Similar Documents

Publication Publication Date Title
US20200201490A1 (en) Providing content via multiple display devices
CN106484862B (en) Page control method and device
CN111104635B (en) Method and device for generating form webpage
TWI703463B (en) Information display method, device and intelligent terminal
KR101748196B1 (en) Determining message data to present
JP2019520624A (en) Page component dynamic layout
US8726189B2 (en) Multiple tab stack user interface
US10205678B2 (en) Systems and methods for client-side dynamic information resource activation and deactivation
CN104346075A (en) Method for processing screenshots and client
CN110249324B (en) Maintaining session identifiers for content selection across multiple web pages
CN109960491A (en) Application program generation method, generating means, electronic equipment and storage medium
US9503551B2 (en) Hybrid native networked applications
EP2544106A1 (en) Handling content related to digital visual objects
JP5264813B2 (en) Evaluation apparatus, evaluation method, and evaluation program
US10291492B2 (en) Systems and methods for discovering sources of online content
CN103544271B (en) Load Image in a kind of browser the method and apparatus for processing window
CN107391534A (en) The page is shown, pagefile return method and device, computer-readable storage medium
US10176153B1 (en) Generating custom markup content to deter robots
US11443098B1 (en) Federated recursive user interface element rendering
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
US9298784B1 (en) Searching inside items
US9146720B1 (en) Binary file application processing
US9230022B1 (en) Customizable result sets for application program interfaces
CN116088986A (en) Popup interception method and device, electronic equipment and storage medium
US20200320158A1 (en) System for creating dynamic logic-based content variants

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