Popup blocking method and device, electronic equipment and storage medium

CN116088986BActive Publication Date: 2026-10-30SHENZHEN HONGHE INNOVATION INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211741604.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-10-30
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

这些广告弹窗不仅影响用户浏览正常的窗口界面,还可能被用户误点,影响用户的使用体验

Benefits of technology

[0018]从上面所述可以看出,本申请提供的弹窗拦截方法、装置、电子设备及存储介质,其中,所述方法包括:响应于非用户请求弹出目标弹窗,获取所述目标弹窗的属性信息;根据所述属性信息以及预先构建的数据库判断所述目标弹窗是否需要拦截;响应于所述目标弹窗需要拦截,根据所述目标弹窗的窗口层级确定所述目标弹窗的拦截方式,其中,所述窗口层级能够表示所述目标弹窗在进程中的层级。本申请提供的方法根据窗口层级确定弹窗的拦截方式,能够对不同的弹窗进行针对性地拦截,增加了广告窗口拦截的成功率,同时避免对正常弹窗的错误拦截,提升了广告窗口拦截的整体效率以及用户体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116088986B_ABST
    Figure CN116088986B_ABST
Patent Text Reader

Abstract

The application provides a pop-up window interception method and device, electronic equipment and a storage medium, wherein the method comprises: in response to a non-user request pop-up target pop-up window, obtaining attribute information of the target pop-up window; determining whether the target pop-up window needs to be intercepted according to the attribute information and a pre-constructed database; in response to the target pop-up window needing to be intercepted, determining an interception mode of the target pop-up window according to a window level of the target pop-up window, wherein the window level can represent a level of the target pop-up window in a process. The method provided by the application determines the interception mode of the pop-up window according to the window level, can intercept different pop-up windows targeted, increases the success rate of advertisement window interception, avoids false interception of normal pop-up windows, and improves the overall efficiency of advertisement window interception and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a pop-up blocking method, device, electronic device, and storage medium. Background Technology

[0002] Users frequently encounter pop-up ads when using electronic devices. These ads often originate from malicious applications downloaded and installed along with regular applications. These malicious applications load and display these pop-up ads without the user's knowledge. These pop-up ads not only disrupt the normal browsing experience but can also be accidentally clicked, negatively impacting the user experience.

[0003] Related technologies use a uniform method to block pop-up ads, but this may result in incomplete blocking or incorrect blocking of other normal pop-ups associated with the ad. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a pop-up blocking method, device, electronic device and storage medium.

[0005] To achieve the above objectives, this application provides a pop-up interception method, comprising: responding to a non-user request to pop up a target pop-up, obtaining attribute information of the target pop-up; determining whether the target pop-up needs to be intercepted based on the attribute information and a pre-built database; and responding to the need to intercept the target pop-up, determining the interception method of the target pop-up based on the window level of the target pop-up, wherein the window level can represent the level of the target pop-up in the process.

[0006] Optionally, determining the interception method of the target pop-up based on its window level includes: intercepting the entire process containing the target pop-up if the window level of the target pop-up is a minimum configurable value; and intercepting only the target pop-up if the window level of the target pop-up is greater than the minimum value.

[0007] Optionally, the target pop-up includes a main window, or a main window and at least one secondary window, and the attribute information includes at least main window information, or the main window information and secondary window information, wherein the secondary window information includes at least the number of secondary windows; the step of determining whether the target pop-up needs to be intercepted based on the attribute information and a pre-built database includes: performing a first determination on whether the target pop-up needs to be intercepted based on the main window information and the database; if the result of the first determination is that it needs to be intercepted, then determining that the target pop-up needs to be intercepted; if the number of secondary windows is zero and the result of the first determination is that it does not need to be intercepted, then determining that the target pop-up does not need to be intercepted; if the number of secondary windows is not zero and the result of the first determination is that it does not need to be intercepted, then performing a second determination on whether the target pop-up needs to be intercepted based on the secondary window information and the database; if the result of the second determination is that it needs to be intercepted, then determining that the target pop-up needs to be intercepted; if the result of the second determination is that it does not need to be intercepted, then determining that the target pop-up does not need to be intercepted.

[0008] Optionally, the main window information includes at least the main title information, main link information, area information, and process information of the main window; the first determination of whether the target pop-up needs to be intercepted based on the main window information and the database includes: a third determination of whether the target pop-up needs to be intercepted based on the main title information and the database; if the result of the third determination is that it needs to be intercepted, then the result of the first determination is determined to be that it needs to be intercepted; if the result of the third determination is that it does not need to be intercepted, then a fourth determination of whether the target pop-up needs to be intercepted based on the main link information and the database; if the result of the fourth determination is that it needs to be intercepted, then the result of the first determination is determined to be that it needs to be intercepted. If the result of the first judgment is that interception is required; if the result of the fourth judgment is that interception is not required, then a fifth judgment is performed based on the region information and the database to determine whether the target pop-up needs to be intercepted. If the result of the fifth judgment is that interception is not required, then the result of the first judgment is determined to be that interception is not required; if the result of the fifth judgment is that interception is required, then a sixth judgment is performed based on the process information and the database to determine whether the target pop-up needs to be intercepted. If the result of the sixth judgment is that interception is required, then the result of the first judgment is determined to be that interception is required; if the result of the sixth judgment is that interception is not required, then the result of the first judgment is determined to be that interception is not required.

[0009] Optionally, the main title information includes at least the main window title, and the database includes at least the titles of the main windows or sub-windows of multiple historical blocked pop-ups. The third determination of whether the target pop-up needs to be blocked based on the main title information and the database includes: comparing the main window title with the titles in the database; if there is a title in the database with a similarity greater than or equal to a preset first threshold, the result of the third determination is that it needs to be blocked; if there is no title in the database with a similarity greater than or equal to the preset first threshold, the result of the third determination is that it does not need to be blocked.

[0010] Optionally, the main link information includes at least the URL of the link within the main window, and the database includes at least multiple advertising link fields; the fourth determination of whether the target pop-up needs to be blocked based on the main link information and the database includes: comparing the URL of the link within the main window with the advertising link fields in the database; if the URL of the link within the main window includes any of the advertising link fields, the result of the fourth determination is that it needs to be blocked; if the URL of the link within the main window does not include any of the advertising link fields, the result of the fourth determination is that it does not need to be blocked.

[0011] Optionally, the region information includes at least the coverage area of ​​the target pop-up in the entire display window, and the database includes at least a preset common pop-up area; the fifth determination of whether the target pop-up needs to be blocked based on the region information and the database includes: comparing the coverage area of ​​the target pop-up with the common pop-up area; if the entire coverage area of ​​the target pop-up is within the common pop-up area, the result of the fifth determination is that it needs to be blocked; if a portion of the coverage area of ​​the target pop-up is outside the common pop-up area, the result of the fifth determination is that it does not need to be blocked.

[0012] Optionally, the process information includes at least the process name of the target pop-up, and the database includes at least multiple advertising process names; the sixth determination of whether the target pop-up needs to be blocked based on the process information and the database includes: comparing the process name of the target pop-up with historical process names in the database; if a historical process name with the same process name as the target pop-up exists in the database, the result of the sixth determination is that it needs to be blocked; if no historical process name with the same process name as the target pop-up exists in the database, the result of the sixth determination is that it does not need to be blocked.

[0013] Optionally, the sub-window information includes at least the subtitle information and sub-link information of each sub-window; the second determination of whether the target pop-up needs to be intercepted based on the sub-window information and the database includes: a seventh determination of whether the target pop-up needs to be intercepted based on the subtitle information and the database; if the result of the seventh determination is that it needs to be intercepted, then the result of the second determination is determined to be that it needs to be intercepted; if the result of the seventh determination is that it does not need to be intercepted, an eighth determination of whether the target pop-up needs to be intercepted based on the sub-link information and the database; if the result of the eighth determination is that it needs to be intercepted, then the result of the second determination is determined to be that it needs to be intercepted; if the result of the eighth determination is that it does not need to be intercepted, then the result of the second determination is determined to be that it does not need to be intercepted.

[0014] Optionally, the method further includes: in response to a user operation selecting any desktop pop-up, obtaining the attribute information of the desktop pop-up; and adding the attribute information of the desktop pop-up to the database.

[0015] Based on the same inventive concept, this application also provides a pop-up blocking device, comprising: an acquisition module configured to pop up a target pop-up in response to a non-user request and acquire attribute information of the target pop-up; a first judgment module configured to determine whether the target pop-up needs to be blocked based on the attribute information and a pre-built database; and a second judgment module configured to determine the blocking method of the target pop-up based on the window level of the target pop-up in response to the need to block the target pop-up, wherein the window level can represent the level of the target pop-up in the process.

[0016] Based on the same inventive concept, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the methods described.

[0017] Based on the same inventive concept, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to perform any of the methods described.

[0018] As can be seen from the above description, the pop-up blocking method, apparatus, electronic device, and storage medium provided in this application include the following steps: responding to a non-user request to pop up a target pop-up, obtaining attribute information of the target pop-up; determining whether the target pop-up needs to be blocked based on the attribute information and a pre-built database; and, responding to the need to block the target pop-up, determining the blocking method of the target pop-up based on its window hierarchy, wherein the window hierarchy represents the level of the target pop-up in the process. The method provided in this application determines the blocking method of the pop-up based on its window hierarchy, enabling targeted blocking of different pop-ups, increasing the success rate of ad window blocking, and avoiding erroneous blocking of normal pop-ups, thereby improving the overall efficiency of ad window blocking and user experience. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating the pop-up blocking method according to an embodiment of this application;

[0021] Figure 2 This is a flowchart illustrating a method for determining whether a pop-up window needs to be blocked, according to an embodiment of this application.

[0022] Figure 3 This is a schematic diagram of the pop-up blocking device according to an embodiment of this application;

[0023] Figure 4 This is a schematic diagram of the structure of the first judgment module in an embodiment of this application;

[0024] Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0026] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0027] One embodiment of this application provides a pop-up blocking method, which can be applied to electronic devices including smart operating systems, such as computers and smartphones. Figure 1 As shown, the method includes:

[0028] Step S101: In response to a non-user request, a target pop-up window is displayed, and the attribute information of the target pop-up window is obtained. The non-user-requested pop-up window refers to a pop-up window that is automatically displayed by the system; pop-ups generated directly due to user clicks are not included in the scope of non-user-requested pop-ups. The attribute information includes information about each element constituting the target pop-up window, and the attribute information of the target pop-up window can be retrieved from the background.

[0029] In one specific embodiment, the system can determine whether the pop-up is a non-user-requested pop-up by retrieving the user (or requesting user) of the pop-up in the background. If the user is a system login user, it is a user-requested pop-up and is not within the interception scope of the method of this application. If the user is a system or application, it is a non-user-requested pop-up and is the interception target of the method of this application.

[0030] In specific implementation, before the target pop-up window pops up, it first sends a pop-up request to the system via the background. Responding to non-user requests to pop up the target pop-up window includes the target pop-up window sending a pop-up request to the system in response to non-user requests (when the target pop-up window sends a pop-up request to the system, the system background can retrieve the user who operated the pop-up window, thus determining whether it is a non-user request). This allows the pop-up to be intercepted before the user sees it, further improving the user experience. It should be noted that automatically intercepting the target window after it pops up can also achieve other technical effects of the method provided in this application and is also within the scope of protection of this application.

[0031] Step S102: Determine whether the target pop-up needs to be blocked based on the attribute information and the pre-built database. Specifically, the pre-built database includes attribute information of multiple historical blocked pop-ups, obtained by downloading malicious application software containing pop-ups in a secure environment. Determining whether a pop-up needs to be blocked based on the database is more realistic and further improves the efficiency of blocking advertising pop-ups.

[0032] Step S103: In response to the need to intercept the target pop-up (in this embodiment, all advertising pop-ups refer to target pop-ups that have been determined to be intercepted), determine the interception method of the target pop-up based on its window level. The window level represents the pop-up's level within a process. Pop-ups are generally parasitic on processes (i.e., application software), appearing on the process's platform. They only appear when the process starts. Each pop-up has its own unique ID for both the system and the process, meaning there is a direct relationship between the pop-up and the process. The aforementioned window level represents this relationship. For example, for a process, the first pop-up main window has a window level of 0 or 1. When the user clicks on the main window or a child window automatically launched by the main window, the level of the main window is increased by 1. At this time, the level of another main window popped up by another process remains 0 or 1, and so on.

[0033] The method provided in this application determines the pop-up blocking method based on the window hierarchy, enabling targeted blocking of different pop-ups, increasing the success rate of ad window blocking, while avoiding erroneous blocking of normal pop-ups, thus improving the overall efficiency of ad window blocking and user experience.

[0034] As described in the background section, related technologies use a uniform method to block pop-up ads, but this may result in incomplete blocking. For example, only the pop-up ad window may be blocked, but the process containing the pop-up ad may continue to display pop-ups. Alternatively, other normal pop-ups associated with the pop-up ad may be blocked incorrectly. For example, directly blocking the process containing the pop-up ad may cause other normal pop-ups in the process to be blocked as well, or even other processes with the same name to be blocked, affecting the user experience.

[0035] In view of this, in some embodiments, step S103 includes:

[0036] In response to the target pop-up's window level being a configurable minimum value, the entire process containing the target pop-up is intercepted, specifically by stopping or terminating the entire process containing the target pop-up. In response to the target pop-up's window level being greater than the minimum value, only the target pop-up is intercepted. In one specific embodiment, intercepting the entire process containing the target pop-up further includes intercepting all processes with the same process name as the process containing the target pop-up.

[0037] Within the same process, since the total number of windows cannot be known in advance, the values ​​representing window levels are assigned sequentially from smallest to largest. If the target pop-up's window level is the minimum configurable value, it indicates that either there are no other pop-ups in the process of that ad pop-up, or other pop-ups are generated based on that ad pop-up. In this case, it can be determined that there are no other normal pop-ups in the process, and the entire process containing the target pop-up can be directly intercepted, thus preventing the process from displaying another pop-up. If the target pop-up's level is greater than the minimum value, it indicates that the ad pop-up is generated on top of a base pop-up, and only that ad pop-up needs to be intercepted, without needing to intercept the entire process. The above method further increases the success rate of ad window interception while avoiding erroneous interception of normal pop-ups, further improving the overall efficiency of ad window interception and user experience.

[0038] In one specific embodiment, the minimum value that can be set for the window level is 0. If the window level of the ad pop-up is greater than this minimum value, it is mostly 1, 3, or 4. In response to the target pop-up's window level being 0, the entire process containing the target pop-up is intercepted. In response to the target pop-up's window level being 1, 3, or 4, only the target pop-up is intercepted.

[0039] In some embodiments, the target pop-up includes a main window, or a main window and at least one secondary window. The attribute information includes at least main window information, or the main window information and secondary window information, and the secondary window information includes at least the number of secondary windows. Specifically, some pop-up ads include only one ad message that fills the entire pop-up; such pop-up ads only include one main window. Other pop-up ads may consist of multiple small modules, which can be viewed as small puzzle pieces. Each small module includes one ad message. This is a pop-up that includes both a main window and secondary windows. The secondary windows are the small modules, and the main window can be considered a framework containing multiple small modules. Even if the main window framework does not contain any other information, it still exists, and all secondary windows depend on the main window for their existence.

[0040] Since the main window, as a frame, may not contain any other information, intercepting only the main window might lead to ignoring advertising information in secondary windows, resulting in some advertisements slipping through the net. Therefore, step S102 in the above embodiments of this application further includes:

[0041] Step S201: Based on the main window information and the database, perform a first judgment on whether the target pop-up needs to be intercepted. If the result of the first judgment is that it needs to be intercepted, then the target pop-up needs to be intercepted. If the number of secondary windows is zero and the result of the first judgment is that it does not need to be intercepted, then the target pop-up does not need to be intercepted.

[0042] Step S202: In response to the fact that the number of secondary windows is not zero and the result of the first determination is that no interception is required, a second determination is made on whether the target pop-up needs to be intercepted based on the secondary window information and the database; in response to the result of the second determination being that interception is required, the target pop-up is determined to be intercepted; in response to the result of the second determination being that no interception is required, the target pop-up is determined not to be intercepted.

[0043] In other words, if it is determined that no blocking is needed based on the information in the main window, then blocking and filtering can be performed again based on the information in the secondary window, which can further improve the success rate of ad window blocking and user experience.

[0044] It should be noted that the window hierarchy of the sub-window is the same as that of the main window (both are the window hierarchy of the entire target pop-up). When it is determined through the sub-window information that the target pop-up needs to be intercepted, the interception method of the target pop-up can also be determined through the window hierarchy of the entire target pop-up (i.e., execute step S103).

[0045] In some embodiments, the main window information includes at least the main title information, main link information, area information, and process information of the main window. Step S101 above, obtaining the attribute information of the target pop-up, further includes, in response to a non-user request, popping up the target pop-up, obtaining the target pop-up, parsing the background data of the target pop-up, and obtaining the attribute information of the target pop-up. For example... Figure 2 As shown, step S201 further includes:

[0046] Step S301: Based on the main title information and the database, perform a third judgment on whether the target pop-up needs to be intercepted. If the result of the third judgment is that it needs to be intercepted, then determine that the result of the first judgment is that it needs to be intercepted.

[0047] The title is the most direct indicator of a pop-up's attributes. The titles used by advertising pop-ups often include words such as "news" and "shopping," which have relatively distinct characteristics. If the target pop-up can be identified as an advertising pop-up based on the title information, then no further judgment process is needed.

[0048] Step S302: In response to the result of the third judgment being that no interception is required, a fourth judgment is performed based on the main link information and the database to determine whether the target pop-up needs to be intercepted. In response to the result of the fourth judgment being that interception is required, the result of the first judgment is determined to be that interception is required.

[0049] Pop-up ads typically include links that redirect users to the ad page after clicking them. These links further define the pop-up's characteristics. If the pop-up is identified as an ad based on the link information, no further verification is necessary.

[0050] Step S303: In response to the result of the fourth judgment being that no interception is required, a fifth judgment is performed based on the region information and the database to determine whether the target pop-up needs to be intercepted. In response to the result of the fifth judgment being that no interception is required, the result of the first judgment is determined to be that no interception is required.

[0051] A pop-up window located in a common area for ad pop-ups is not necessarily an ad pop-up, as most normal pop-ups also appear in various locations. Due to the nature of ads, they usually pop up in the most conspicuous position. If a pop-up is not located in a common area for ad pop-ups, it can be considered that the target pop-up is not an ad pop-up.

[0052] Step S304: In response to the result of the fifth judgment being that interception is required, a sixth judgment is performed based on the process information and the database to determine whether the target pop-up needs to be intercepted. If the result of the sixth judgment is that interception is required, then the result of the first judgment is determined to be that interception is required; if the result of the sixth judgment is that interception is not required, then the result of the first judgment is determined to be that interception is not required. In specific implementation, the process information is the process name.

[0053] The steps S301 to S304 above provide a tiered blocking mechanism for pop-up ads, which further increases the success rate of ad window blocking, while avoiding erroneous blocking of normal pop-ups, thus improving the overall efficiency of ad window blocking and user experience.

[0054] In some embodiments, the sub-window information includes at least the sub-title information and sub-link information of each sub-window. Step S202 includes:

[0055] Step S401: Based on the subtitle information and the database, perform a seventh judgment on whether the target pop-up needs to be intercepted. If the result of the seventh judgment is that it needs to be intercepted, then determine that the result of the second judgment is that it needs to be intercepted.

[0056] Step S402: In response to the result of the seventh judgment being that no interception is required, an eighth judgment is performed based on the sub-link information and the database to determine whether the target pop-up needs to be intercepted. In response to the result of the eighth judgment being that interception is required, the result of the second judgment is determined to be that interception is required. In response to the result of the eighth judgment being that no interception is required, the result of the second judgment is determined to be that no interception is required.

[0057] Step S202 is executed after step S201. That is to say, when executing steps S401 and S402, S303 and S304 have already been executed. Since the sub-window and the main window are in the same area and process, only the subtitle information and sub-link information are needed when intercepting based on the sub-window information.

[0058] In some embodiments, the main title information includes at least the main window title, and the database includes at least the titles of the main or secondary windows of multiple historical blocked pop-ups. Some pop-up ads consisting of secondary windows may not have a main window title. In this case, the main window title can be set to multiple spaces. Multiple spaces have zero similarity to any text title, and the process automatically proceeds to the next judgment step.

[0059] Step S301 includes:

[0060] The title of the main window is compared with the title in the database.

[0061] If a title with a similarity to the main window title greater than or equal to a preset first threshold exists in the database, the result of the third judgment is that it needs to be blocked; if no title with a similarity to the main window title greater than or equal to the preset first threshold exists in the database, the result of the third judgment is that it does not need to be blocked.

[0062] In one specific embodiment, the similarity is calculated using the following formula:

[0063]

[0064] For example, if a main window title is "Daily News" and there is a historical blocked pop-up titled "Daily News" in the database, then the similarity between the main window title and the historical blocked pop-up title is 75%.

[0065] In practice, the first threshold needs to be determined based on the richness of the titles of historical blocked pop-ups in the database. If the richness is low, the corresponding first threshold is low; if the richness is high, the corresponding first threshold is high.

[0066] In some embodiments, the subtitle information includes at least the sub-window title of each of the sub-windows, and step S401 includes:

[0067] The title of each sub-window is compared with the title in the database.

[0068] If a title with a similarity greater than or equal to a preset first threshold exists in the database, the result of the seventh determination is that it needs to be blocked; if no title with a similarity greater than or equal to the preset first threshold exists in the database, the result of the seventh determination is that it does not need to be blocked.

[0069] The specific implementation process of step S401 is the same as that of step S301, and will not be repeated here.

[0070] In some embodiments, the main link information includes at least the URLs of links within the main window, specifically URLs of Uniform Resource Locators (URLs). If the main window does not contain any links, the URLs of links within the main window can be set to multiple spaces. The database includes at least multiple advertising link fields. In specific implementations, the advertising link fields include fields typically included in advertising links, such as "shopping," "news," "taobao," and "news." Step S302 includes:

[0071] The URLs linked within the main window are compared with the advertising link field in the database.

[0072] If the URL linked within the main window includes any of the advertised link fields, the result of the fourth determination is that interception is required; if the URL linked within the main window does not include any of the advertised link fields, the result of the fourth determination is that interception is not required.

[0073] In some embodiments, the secondary link information includes at least the URLs of links within the secondary window, and step S402 includes:

[0074] The URLs linked in each of the sub-windows are compared with the advertising link field in the database.

[0075] If any URL linked within a sub-window includes any of the advertising link fields, the result of the eighth determination is that interception is required; if none of the URLs linked within any sub-window include any of the advertising link fields, the result of the eighth determination is that interception is not required.

[0076] The specific implementation process of step S402 is the same as that of step S302 and will not be repeated here. In some embodiments, the area information includes at least the coverage area of ​​the target pop-up window in the entire display window, and the database includes at least a preset common pop-up window area. In one specific embodiment, the preset common pop-up window area is the middle area and the lower right corner of the entire display window, and the specific values ​​need to be determined according to the actual length and width of the display window. Step S303 includes:

[0077] The coverage area of ​​the target pop-up is compared with the common areas of the pop-up. In specific implementation, the coverage area of ​​the target pop-up is determined by the vertices of the target pop-up. Since the pop-up is rectangular, the coverage area can be determined by the vertex coordinates.

[0078] If the entire coverage area of ​​the target pop-up is within the common pop-up area, the fifth determination indicates that it needs to be blocked. If a portion of the coverage area of ​​the target pop-up is outside the common pop-up area, the fifth determination indicates that it does not need to be blocked. If a portion of the coverage area of ​​the target pop-up is outside the common pop-up area, the target pop-up's position has deviated from the common pop-up area. Since the nature of advertisements dictates that they will usually pop up in the most conspicuous position, it can be determined that the target pop-up does not need to be blocked.

[0079] In some embodiments, the process information includes at least the process name of the target pop-up, and the database includes at least multiple advertising process names. Specifically, when all pop-ups generated after a certain process runs are advertising pop-ups, the name of that process is added to the database as an advertising process name. Step S304 includes:

[0080] The process name of the target pop-up is compared with the historical process names in the database.

[0081] If a historical process name with the same process name as the target pop-up exists in the database, the result of the sixth determination is that it needs to be intercepted; if a historical process name with the same process name as the target pop-up does not exist in the database, the result of the sixth determination is that it does not need to be intercepted.

[0082] In some embodiments, the method further includes:

[0083] In response to a user's selection of any desktop pop-up, obtain the attribute information of that desktop pop-up;

[0084] Add the attribute information of the desktop pop-up to the database.

[0085] To prevent advertisers from blocking pop-ups by modifying titles, pop-up areas, or process names, for pop-ups that are not blocked using the methods described in this application but are still considered advertisements by users, users can actively select the pop-up and obtain its attribute information using the methods described above, adding it to the database. In this way, the pop-up can be successfully blocked in the future.

[0086] In one specific embodiment, the method further includes:

[0087] Remove the whitelist window's attribute information from the database.

[0088] The pop-up ads identified in the above embodiments of this application are determined based on the general public's electronic device usage habits. If some users need to see certain pop-up ads, they only need to be added to a whitelist, and the attribute information of the whitelisted windows will be deleted from the database. As long as the user does not select the window they need to see as a pop-up ad again, the attribute information of the whitelisted windows will not be returned to the database.

[0089] In one specific embodiment, the method provided in this application is used in smart terminal devices on campus. It promptly blocks pop-up advertisements on campus smart terminal devices, preventing them from distracting teachers and students and providing a clean learning and teaching environment for both. The terminal device can be an interactive all-in-one machine.

[0090] The application environments described in the above embodiments are exemplary. Applying the methods provided in this application to smart terminal devices in industries such as commerce and healthcare is within the scope of protection of this application.

[0091] In one specific embodiment, the method further includes:

[0092] By utilizing MQTT (Message Queuing Telemetry Transport) technology, multiple electronic devices that apply the pop-up blocking method provided in this application can be remotely managed simultaneously.

[0093] By utilizing MQTT, the method provided in this application can be used not only with a single device, but also with smart terminal devices on campus, enabling unified management at the district, county, city, and provincial education bureau levels.

[0094] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0095] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0096] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a pop-up blocking device, such as... Figure 3 As shown, it includes:

[0097] The acquisition module 10 is configured to pop up a target pop-up window in response to a non-user request and acquire the attribute information of the target pop-up window;

[0098] The first judgment module 20 is configured to determine whether the target pop-up needs to be blocked based on the attribute information and a pre-built database.

[0099] The second judgment module 30 is configured to determine the interception method of the target pop-up based on the window level of the target pop-up in response to the need to intercept the target pop-up, wherein the window level can represent the level of the target pop-up in the process.

[0100] The device provided in this application determines the pop-up blocking method according to the window hierarchy, which can target different pop-ups, increase the success rate of ad window blocking, and avoid erroneous blocking of normal pop-ups, thereby improving the overall efficiency of ad window blocking and user experience.

[0101] In some embodiments, the second determining module 30 is further configured to:

[0102] If the window level of the target pop-up is the minimum configurable value, the entire process containing the target pop-up is intercepted; if the window level of the target pop-up is greater than the minimum value, only the target pop-up is intercepted.

[0103] In some embodiments, the target pop-up includes a main window, or a main window and at least one secondary window, and the attribute information includes at least main window information, or the main window information and secondary window information, wherein the secondary window information includes at least the number of secondary windows. The first determination module 20 is further configured to:

[0104] Based on the main window information and the database, a first determination is made as to whether the target pop-up needs to be intercepted; if the result of the first determination is that it needs to be intercepted, then it is determined that the target pop-up needs to be intercepted; if the number of secondary windows is zero and the result of the first determination is that it does not need to be intercepted, then it is determined that the target pop-up does not need to be intercepted.

[0105] If the number of secondary windows is not zero and the result of the first determination is that no interception is required, then a second determination is made on whether the target pop-up needs to be intercepted based on the secondary window information and the database; if the result of the second determination is that interception is required, then the target pop-up needs to be intercepted; if the result of the second determination is that interception is not required, then the target pop-up does not need to be intercepted.

[0106] In some embodiments, the main window information includes at least the main window's title information, main link information, area information, and process information. For example... Figure 4 As shown, the first judgment module 20 includes:

[0107] The title comparison unit 40 is configured to perform a third judgment on whether the target pop-up needs to be blocked based on the main title information and the database. If the result of the third judgment is that it needs to be blocked, then the result of the first judgment is determined to be that it needs to be blocked.

[0108] The link comparison unit 50 is configured to, in response to the result of the third judgment being that no interception is required, perform a fourth judgment on whether the target pop-up needs to be intercepted based on the main link information and the database; in response to the result of the fourth judgment being that interception is required, determine that the result of the first judgment is that interception is required.

[0109] The region comparison unit 60 is configured to, in response to the result of the fourth judgment being that no interception is required, perform a fifth judgment on whether the target pop-up needs to be intercepted based on the region information and the database; in response to the result of the fifth judgment being that no interception is required, determine that the result of the first judgment is that no interception is required.

[0110] The process comparison unit 70 is configured to, in response to the result of the fifth judgment that interception is required, perform a sixth judgment on whether the target pop-up needs to be intercepted based on the process information and the database. If the result of the sixth judgment is that interception is required, the result of the first judgment is determined to be that interception is required; if the result of the sixth judgment is that interception is not required, the result of the first judgment is determined to be that interception is not required.

[0111] In some embodiments, the main title information includes at least the main window title, and the database includes at least the titles of the main windows or sub-windows of multiple historical blocked pop-ups. The title comparison unit 40 is further configured to:

[0112] The main window title is compared with the titles in the database;

[0113] If a title with a similarity to the main window title greater than or equal to a preset first threshold exists in the database, the result of the third judgment is that it needs to be blocked; if no title with a similarity to the main window title greater than or equal to the preset first threshold exists in the database, the result of the third judgment is that it does not need to be blocked.

[0114] In some embodiments, the main link information includes at least the URLs of links within the main window, and the database includes at least a plurality of advertising link fields; the link comparison unit 50 is further configured to:

[0115] The URLs linked within the main window are compared with the ad link field in the database;

[0116] If the URL linked within the main window includes any of the advertised link fields, the result of the fourth determination is that interception is required; if the URL linked within the main window does not include any of the advertised link fields, the result of the fourth determination is that interception is not required.

[0117] In some embodiments, the region information includes at least the coverage area of ​​the target pop-up window within the entire display window, and the database includes at least preset common pop-up window regions. The region comparison unit 60 is further configured to:

[0118] The coverage area of ​​the target pop-up is compared with the common areas of the pop-up;

[0119] If the entire coverage area of ​​the target pop-up is within the common pop-up area, the result of the fifth determination is that it needs to be blocked; if a portion of the coverage area of ​​the target pop-up is outside the common pop-up area, the result of the fifth determination is that it does not need to be blocked.

[0120] In some embodiments, the process information includes at least the process name of the target pop-up, and the database includes at least a plurality of advertising process names. The process comparison unit 70 is further configured to:

[0121] The process name of the target pop-up is compared with the historical process names in the database;

[0122] If a historical process name with the same process name as the target pop-up exists in the database, the result of the sixth determination is that it needs to be intercepted; if a historical process name with the same process name as the target pop-up does not exist in the database, the result of the sixth determination is that it does not need to be intercepted.

[0123] In some embodiments, the sub-window information includes at least the subtitle information and sub-link information of each sub-window; the first determination module 20 is further configured to:

[0124] Based on the subtitle information and the database, a seventh judgment is made regarding whether the target pop-up needs to be intercepted. If the result of the seventh judgment is that it needs to be intercepted, then the result of the second judgment is determined to be that it needs to be intercepted.

[0125] If the result of the seventh judgment is that no interception is required, an eighth judgment is performed based on the sub-link information and the database to determine whether the target pop-up needs to be intercepted. If the result of the eighth judgment is that interception is required, then the result of the second judgment is determined to be that interception is required. If the result of the eighth judgment is that interception is not required, then the result of the second judgment is determined to be that interception is not required.

[0126] In some embodiments, the apparatus further includes:

[0127] The active acquisition module is configured to respond to a user's selection of any desktop pop-up, acquire the attribute information of that desktop pop-up, and add the attribute information of that desktop pop-up to the database.

[0128] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0129] The apparatus described above is used to implement the corresponding pop-up blocking method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0130] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the pop-up blocking method described in any of the above embodiments.

[0131] Figure 5 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0132] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0133] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0134] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0135] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0136] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0137] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0138] The electronic devices described above are used to implement the corresponding pop-up blocking methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0139] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to execute the pop-up blocking method as described in any of the above embodiments.

[0140] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0141] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the pop-up blocking method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0142] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.

[0143] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0144] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0145] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for intercepting pop-up windows, characterized in that, include: In response to a non-user request, a target pop-up window is displayed, and the attribute information of the target pop-up window is obtained; Based on the attribute information and the pre-built database, determine whether the target pop-up needs to be intercepted; In response to the need to intercept the target pop-up, the interception method of the target pop-up is determined according to the window level of the target pop-up, wherein the window level can represent the level of the target pop-up in the process; The step of determining the interception method of the target pop-up based on its window hierarchy includes: In response to the target pop-up's window level being set to the minimum value, the entire process containing the target pop-up is intercepted. If the window level of the target pop-up is greater than the minimum value, only the target pop-up will be blocked.

2. The method according to claim 1, characterized in that, The target pop-up includes a main window, or a main window and at least one secondary window. The attribute information includes at least the main window information, or the main window information and secondary window information. The secondary window information includes at least the number of secondary windows. The step of determining whether the target pop-up needs to be blocked based on the attribute information and a pre-built database includes: Based on the main window information and the database, a first determination is made as to whether the target pop-up needs to be intercepted. If the result of the first determination is that interception is required, then it is determined that the target pop-up needs to be intercepted; If the number of secondary windows is zero and the result of the first determination is that no interception is required, then it is determined that the target pop-up does not need to be intercepted. In response to the fact that the number of secondary windows is not zero, and the result of the first determination is that no interception is required, a second determination on whether the target pop-up needs to be intercepted is performed based on the secondary window information and the database. If the result of the second determination is that interception is required, then the target pop-up needs to be intercepted; if the result of the second determination is that interception is not required, then the target pop-up does not need to be intercepted.

3. The method according to claim 2, characterized in that, The main window information includes at least the main title information, main link information, area information, and process information of the main window; The first determination of whether the target pop-up needs to be intercepted based on the main window information and the database includes: Based on the main title information and the database, a third judgment is made as to whether the target pop-up needs to be blocked. If the result of the third judgment is that it needs to be blocked, then the result of the first judgment is determined to be that it needs to be blocked. If the result of the third judgment is that no interception is required, then a fourth judgment is performed based on the main link information and the database to determine whether the target pop-up needs to be intercepted. If the result of the fourth judgment is that interception is required, then the result of the first judgment is determined to be that interception is required. If the result of the fourth determination is that no interception is required, then a fifth determination is made based on the region information and the database to determine whether the target pop-up needs to be intercepted. If the result of the fifth determination is that no interception is required, then the result of the first determination is determined to be that no interception is required. If the result of the fifth judgment is that interception is required, then a sixth judgment is performed based on the process information and the database to determine whether the target pop-up needs to be intercepted. If the result of the sixth judgment is that interception is required, then the result of the first judgment is determined to be that interception is required. If the result of the sixth judgment is that interception is not required, then the result of the first judgment is determined to be that interception is not required.

4. The method according to claim 3, characterized in that, The main title information includes at least the main window title, and the database includes at least the titles of the main or secondary windows of multiple historical blocked pop-ups: The third determination, based on the main title information and the database, of whether the target pop-up needs to be blocked, includes: The main window title is compared with the titles in the database; If a title with a similarity to the main window title greater than or equal to a preset first threshold exists in the database, the result of the third judgment is that it needs to be blocked; if no title with a similarity to the main window title greater than or equal to the preset first threshold exists in the database, the result of the third judgment is that it does not need to be blocked.

5. The method according to claim 3, characterized in that, The main link information includes at least the URLs of the links within the main window, and the database includes at least multiple ad link fields; The fourth determination, based on the main link information and the database, regarding whether the target pop-up needs to be blocked, includes: The URLs linked within the main window are compared with the ad link field in the database; If the URL linked within the main window includes any of the advertised link fields, the result of the fourth determination is that interception is required; if the URL linked within the main window does not include any of the advertised link fields, the result of the fourth determination is that interception is not required.

6. The method according to claim 3, characterized in that, The area information includes at least the coverage area of ​​the target pop-up window in the entire display window, and the database includes at least preset common pop-up window areas; The fifth determination, based on the region information and the database, regarding whether the target pop-up needs to be blocked, includes: The coverage area of ​​the target pop-up is compared with the common areas of the pop-up; If the entire coverage area of ​​the target pop-up is within the common pop-up area, the result of the fifth determination is that it needs to be blocked; if a portion of the coverage area of ​​the target pop-up is outside the common pop-up area, the result of the fifth determination is that it does not need to be blocked.

7. The method according to claim 3, characterized in that, The process information includes at least the process name of the target pop-up, and the database includes at least multiple advertising process names; The sixth determination, based on the process information and the database, regarding whether the target pop-up needs to be intercepted, includes: Compare the process name of the target pop-up with the historical process names in the database; If a historical process name with the same process name as the target pop-up exists in the database, the result of the sixth determination is that it needs to be intercepted; if a historical process name with the same process name as the target pop-up does not exist in the database, the result of the sixth determination is that it does not need to be intercepted.

8. The method according to claim 2, wherein the sub-window information includes at least the subtitle information and sub-link information of each sub-window; The second determination, based on the secondary window information and the database, regarding whether the target pop-up needs to be intercepted, includes: Based on the subtitle information and the database, a seventh judgment is made as to whether the target pop-up needs to be intercepted. If the result of the seventh judgment is that it needs to be intercepted, then the result of the second judgment is determined to be that it needs to be intercepted. If the result of the seventh judgment is that no interception is required, an eighth judgment is performed based on the sub-link information and the database to determine whether the target pop-up needs to be intercepted. If the result of the eighth judgment is that interception is required, then the result of the second judgment is determined to be that interception is required. If the result of the eighth judgment is that interception is not required, then the result of the second judgment is determined to be that interception is not required.

9. The method according to any one of claims 1 to 8, characterized in that, Also includes: In response to a user's selection of any desktop pop-up, obtain the attribute information of that desktop pop-up; Add the attribute information of the desktop pop-up to the database.

10. A pop-up blocking device, characterized in that, include: The acquisition module is configured to pop up a target pop-up window in response to a non-user request and acquire the attribute information of the target pop-up window; The first judgment module is configured to determine whether the target pop-up needs to be intercepted based on the attribute information and a pre-built database. The second judgment module is configured to determine the interception method of the target pop-up based on the window level of the target pop-up in response to the need to intercept the target pop-up, wherein the window level can represent the level of the target pop-up in the process; The second judgment module is further configured as follows: In response to the target pop-up's window level being set to the minimum value, the entire process containing the target pop-up is intercepted. If the window level of the target pop-up is greater than the minimum value, only the target pop-up will be blocked.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 9.

12. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method, device and system for intercepting popup windows in browser

    CN104123276A

  • Advertisement popup window interception method and device, electronic equipment and storage medium

    CN111753192A

  • Window filtering method and device, electronic equipment and storage medium

    CN113761301A