CN117056008B - Popup window interception method and device, equipment and medium - Google Patents

Popup window interception method and device, equipment and medium Download PDF

Info

Publication number
CN117056008B
CN117056008B CN202311303195.2A CN202311303195A CN117056008B CN 117056008 B CN117056008 B CN 117056008B CN 202311303195 A CN202311303195 A CN 202311303195A CN 117056008 B CN117056008 B CN 117056008B
Authority
CN
China
Prior art keywords
popup
interface
target
information
user
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.)
Active
Application number
CN202311303195.2A
Other languages
Chinese (zh)
Other versions
CN117056008A (en
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 Antan Network Security Technology Co ltd
Original Assignee
Shenzhen Antan Network Security 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 Antan Network Security Technology Co ltd filed Critical Shenzhen Antan Network Security Technology Co ltd
Priority to CN202311303195.2A priority Critical patent/CN117056008B/en
Publication of CN117056008A publication Critical patent/CN117056008A/en
Application granted granted Critical
Publication of CN117056008B publication Critical patent/CN117056008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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

Abstract

The invention provides a popup interception method, a popup interception device, equipment and a medium, which relate to the field of information processing and comprise the following steps: acquiring popup information of a popup interface; if a closing instruction of a user for the popup window interface is received before the timing of the preset timer reaches the set time, determining popup window information as target popup window information; if the operation instruction of the user for the popup interface is not received in the target time period TM, determining target popup information according to the concerned area of the user in the TM; and generating a plurality of popup interception rules corresponding to the target equipment at present according to all the current target popup information, so that the target equipment determines whether to intercept the popup to be displayed on the display interface according to the currently corresponding popup interception rules. According to the method and the device for intercepting the popup window, based on the operation behaviors of the user on the popup window, the popup window interface to be intercepted is determined, the corresponding popup window interception rule is generated, the user does not need to add or delete a popup window blacklist in the popup window interception rule, and user experience is improved.

Description

Popup window interception method and device, equipment and medium
Technical Field
The present invention relates to the field of information processing, and in particular, to a method, an apparatus, a device, and a medium for intercepting a popup window.
Background
Popup is a common form of network message pushing, often in the form of a popup window, that occurs when a user browses web pages or uses an application. However, popup may cause unnecessary interference and trouble to the user, and may even contain malicious content or links. Therefore, in order to improve user experience and protect user information security, popup interception technology has been developed.
Most of the existing popup interception methods intercept all popups of a specific process through a popup interception function of a browser or a firewall of a system, and when the popup interception is performed, all popup of the process can be intercepted, wherein the popup interception method also comprises popup information of interest to a user, so that the method may influence the user.
In addition, there is a method for intercepting the popup window by adopting a database comparison mode at present, namely firstly sensing the popup window, then comparing the popup window information with the interception rules in the database, and if the comparison is successful, intercepting or destroying the popup window. The database of the method needs to be maintained by a manufacturer or user-defined interception rules, but hysteresis exists in the maintenance of the manufacturer, and the user-defined interception rules also need to actively participate in the maintenance of the user, so that the user experience is affected.
Disclosure of Invention
In view of the above, the invention provides a popup interception method, device, equipment and medium, which at least partially solve the technical problems of poor user experience and poor popup interception accuracy in the prior art, and adopts the following technical scheme:
according to one aspect of the present application, there is provided a popup interception method, including the steps of:
in response to detecting that a popup interface appears on a display interface of the target equipment, acquiring popup information of the popup interface; the popup information comprises picture information of a popup interface and identification information of the popup interface;
starting a preset timer and recording the current time t now
If a closing instruction of a user for the popup window interface is received before the timing of the preset timer reaches the set time, determining popup window information as target popup window information, and storing the target popup window information into a preset database;
if at t now Automatic closing time t to pop-up window interface off If the operation instruction of the user for the popup window interface is not received in the target time period TM, determining a concerned region of the user in the TM according to the display content of the display interface in the target time period TM and/or the operation information of the user; the length of the target time period TM is greater than the timing length of the preset timer; if a superposition part exists in the region where the concerned region and the popup interface are located and the concerned value corresponding to the superposition part is larger than the concerned threshold value, determining popup information as target popup information, and storing the target popup information into a preset database;
And generating a plurality of popup interception rules corresponding to the target equipment at present according to all target popup information stored in a preset database, so that the target equipment determines whether to intercept the popup to be displayed on the display interface according to the currently corresponding popup interception rules.
In an exemplary embodiment of the present application, determining a region of interest of a user within a TM according to display content of a display interface within a target period TM and/or operation information of the user includes:
dividing the display interface into a plurality of display sub-interfaces on average;
acquiring a moving track of an external device connected with a target device on each display sub-interface within a target time period TM;
and determining a focus area of the user in the TM according to the movement track corresponding to each display sub-interface.
In an exemplary embodiment of the present application, determining a region of interest of a user within a TM according to a movement track corresponding to each display sub-interface includes:
determining a display sub-interface with a movement track of the external device as a first sub-interface in a target time period TM;
acquiring the residence time of the external device on each first sub-interface to obtain a first residence time set H= (H) 1 ,H 2 ,...,H j ,...,H m ) The method comprises the steps of carrying out a first treatment on the surface of the Where j=1, 2, m; m is the number of first sub-interfaces; h j A residence time for the external device on the j-th first sub-interface; sigma (sigma) m j=1 H j =TM;
If H j ≥H 0 Determining the j-th first sub-interface as a second sub-interface; wherein H is 0 Is a preset residence time threshold;
and determining the area where all the second sub-interfaces are located as the attention area of the user in the TM.
In an exemplary embodiment of the present application, determining a region of interest of a user within a TM according to a movement track corresponding to each display sub-interface includes:
if the movement track of the external equipment does not exist on each display sub-interface in the target time period TM, determining whether a process interface of the target process exists on the display interface in the target time period TM;
if the process interface of the target process exists on the display interface within the target time period TM, determining the area where the process interface is located as the concerned area of the user within the TM.
In an exemplary embodiment of the present application, the focus value corresponding to the overlap portion is determined by:
obtaining the residence time t of the external device in the region where the overlapping part is located 1 And residence time t of the external device on the region of interest 2
Let t 1 /t 2 A value of interest corresponding to the composite portion is determined.
In one exemplary embodiment of the present application, the threshold of interest is determined by:
acquiring the residence time of the external device on each second sub-interface to obtain a second residence time set G= (G) 1 ,G 2 ,...,G i ,...,G k ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein i=1, 2,..k; k is less than or equal to m; k is the number of second sub-interfaces; g i A residence time for the external device on the ith second sub-interface;
will (Sigma) k i=1 G i ) And/k is determined as a threshold of interest.
In an exemplary embodiment of the present application, the target device determines, according to a currently corresponding popup interception rule, whether to intercept a popup to be displayed that is to be presented to a display interface, including:
when detecting a popup window to be displayed, obtaining each picture feature in the popup window to be displayed to obtain a first picture feature list F= (F) 1 ,F 2 ,...,F g ,...,F y ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein g=1, 2,..y; y is the number of picture features in the popup window to be displayed; f (F) g The g-th picture characteristic in the popup window to be displayed;
obtaining picture characteristics of a plurality of target popup window information corresponding to each popup window interception rule to obtain a second pictureFace feature list set e= (E 1 ,E 2 ,...,E n ,...,E s );E n =(E n1 ,E n2 ,...,E nq ,...,E nf(n) ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein n=1, 2,..s; s is the number of bullet window interception rules; e (E) n A picture feature list corresponding to the nth popup window interception rule; q=1, 2,. -%, f (n); f (n) is the number of picture features corresponding to the nth popup window interception rule; e (E) nq The method comprises the steps of intercepting the q-th picture characteristic corresponding to the rule for the nth popup window;
traversing F, if F g E, then F g Determining the target picture characteristics to obtain z target picture characteristics;
if z is not less than (y/a), intercepting the popup window to be displayed; otherwise, displaying a popup interface corresponding to the popup to be displayed on a display interface; wherein a is a preset proportionality coefficient, and a is more than 1.
According to one aspect of the present application, there is provided a popup interception device comprising:
the popup information acquisition module is used for acquiring popup information of a popup interface when detecting that the popup interface appears on a display interface of the target equipment; the popup information comprises picture information of a popup interface and identification information of the popup interface;
the timer starting module is used for starting a preset timer and recording the current time t now
The first target popup information determining module is used for determining popup information as target popup information and storing the target popup information into a preset database when a closing instruction of a user for a popup interface is received before the timing of a preset timer reaches a set time;
a second target popup information determining module for determining the target popup information when at t now Automatic closing time t to pop-up window interface off When an operation instruction of a user for the popup window interface is not received in a target time period (TM), determining a concerned region of the user in the TM according to display content of a display interface in the target time period (TM) and/or operation information of the user; the length of the target time period TM is greater than the timing length of the preset timer; if there is a superposition portion between the region of interest and the region where the popup window interface is located Dividing, when the concerned value corresponding to the overlapping part is larger than the concerned threshold value, determining the popup information as target popup information, and storing the target popup information into a preset database;
and the popup interception rule generation module is used for generating a plurality of popup interception rules corresponding to the target equipment at present according to all target popup information stored in the preset database, so that the target equipment determines whether to intercept the popup to be displayed on the display interface according to the currently corresponding popup interception rules.
According to one aspect of the present application, there is provided a non-transitory computer readable storage medium having stored therein at least one instruction or at least one program loaded and executed by a processor to implement the aforementioned popup interception method.
According to one aspect of the present application, there is provided an electronic device comprising a processor and the aforementioned non-transitory computer-readable storage medium.
The invention has at least the following beneficial effects:
when the popup window is detected to appear on the display interface, popup window information of the popup window is obtained, and if a closing instruction of a user for the popup window is received before the timing of a preset timer reaches a set time, the popup window information is determined to be target popup window information; if an operation instruction of a user for the popup window interface is not received in the target time period, determining a concerned region of the user in the target time period according to the display content of the display interface in the target time period and/or the operation information of the user, determining target popup window information according to a concerned value corresponding to the overlapping part of the concerned region and the region where the popup window interface is located, and generating popup window interception rules according to a plurality of target popup window information and a preset rule determination method. According to the method and the device for intercepting the popup windows, based on the operation behaviors of the user on the popup windows, the popup windows of interest to the user and the popup windows to be intercepted are determined, the corresponding popup window interception rules are generated, the user does not need to add or delete a popup window blacklist in the popup window interception rules, and the popup window interception rules corresponding to each user are determined through autonomous learning of the operation behaviors of the popup windows of the user, so that the determined popup window interception rules are attached to the habit of the user, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for intercepting a popup window according to an embodiment of the present invention;
fig. 2 is a block diagram of a popup window blocking device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
As shown in fig. 1, a popup interception method includes the following steps:
step S100, in response to detection of the occurrence of a popup interface on a display interface of target equipment, popup information of the popup interface is obtained; the popup information comprises picture information of a popup interface and identification information of the popup interface;
The target equipment is electronic equipment used by a user, the target equipment is connected with a display interface, and records that the user needs to close the intercepted popup window by detecting whether the popup window appears on the display interface, the picture information included in the popup window information is the picture of the popup window interface, and the popup window interface is correspondingly provided with identification information for identifying the corresponding popup window.
Step S200, starting a preset timer and recording the current time t now
The preset timer is provided with a preset time duration and is used for timing when the popup window interface appears.
Step S300, if a closing instruction of a user for a popup interface is received before the timing of a preset timer reaches a set time, determining popup information as target popup information, and storing the target popup information into a preset database;
if the user closes the popup window interface within the timing duration of the preset timer, the information in the popup window interface is the information which is not concerned by the user, the popup window information is determined to be the target popup window information, and the target popup window information is stored in the preset database so as to be convenient for carrying out subsequent statistical processing on the target popup window information.
The timing duration of the preset timer is set by a user or is determined by counting the historical closing time of each popup window by the user.
Step S400, if at t now Automatic closing time t to pop-up window interface off If the operation instruction of the user for the popup window interface is not received in the target time period TM, determining a concerned region of the user in the TM according to the display content of the display interface in the target time period TM and/or the operation information of the user; the length of the target time period TM is greater than the timing length of the preset timer; if a superposition part exists in the region where the concerned region and the popup interface are located and the concerned value corresponding to the superposition part is larger than the concerned threshold value, determining popup information as target popup information, and storing the target popup information into a preset database;
if the popup window interface is provided with the automatic closing time length, determining target popup window information according to whether a user closes the popup window interface in a target time period, wherein the target time period is a time period from the timing starting time of a preset timer to the expiration time of the automatic closing time length of the popup window interface.
If the user closes the popup interface in the target time period, the popup information of the popup interface is determined as target popup information and stored in a preset database, wherein the popup information indicates that the user is not interested in the information of the popup interface.
If the user does not execute any operation instruction on the popup window in the target time period, the user does not close the popup window and does not click the popup window to view the information of the popup window, the user does not operate the target device in the target time period of the popup window, or the user sees the popup window in the target time period of the popup window, but does not process the popup window, and the user automatically closes the popup window after displaying the target time period, so that whether the user is operating the target device in the target time period of the popup window needs to be judged to determine whether the target popup window information needs to be collected.
Whether the user operates the target equipment in the target time period of the popup interface is judged through the display content of the display interface and/or the operation information of the user, the attention area of the user in the target time period is determined through the display content of the display interface and/or the operation information of the user, and whether the user operates or views the target equipment in the target time period is determined according to the attention area.
Further, in step S400, determining the region of interest of the user in the TM according to the display content of the display interface in the target period TM and/or the operation information of the user includes:
step S410, dividing the display interface into a plurality of display sub-interfaces on average;
step S420, obtaining a moving track of an external device connected with a target device on each display sub-interface in a target time period TM;
the external device connected with the target device can be information input devices such as a keyboard, a mouse and a tablet, and the moving track of the external device can be the moving track of a cursor of the keyboard, the moving track of the mouse and the like.
Step S430, determining a focus area of the user in the TM according to the movement track corresponding to each display sub-interface.
In step S430, determining a focus area of the user in the TM according to the movement track corresponding to each display sub-interface includes:
Step S431, determining a display sub-interface with a movement track of the external device as a first sub-interface in the target time period TM, and executing step S432; if there is no movement track of the external device on each display sub-interface in the target time period TM, determining whether there is a process interface of the target process on the display interface in the target time period TM, and executing step S435;
and in the target time period, if the moving track of the external equipment exists on the display sub-interface, the display sub-interface is determined to be a first sub-interface, and the attention area of the user is determined through the first sub-interface, wherein the moving track indicates that the user is looking at or operating the target equipment.
If the movement tracks of the external device do not exist on all the display sub-interfaces in the target time period, it indicates that the user does not operate the target device in the target time period, but whether the user is looking at the target device or not is determined in step S435.
Step S432, acquiring the residence time of the external device on each first sub-interface to obtain a first residence time set H= (H) 1 ,H 2 ,...,H j ,...,H m ) The method comprises the steps of carrying out a first treatment on the surface of the Where j=1, 2, m; m is the number of first sub-interfaces; h j A residence time for the external device on the j-th first sub-interface; sigma (sigma) m j=1 H j =TM;
After the first sub-interfaces are determined, a moving track is formed between a source position and a destination position of the display interface when a user operates the target device through the external device, the moving track may be drawn through the display sub-interfaces, and areas which are not concerned by the user may exist in the display sub-interfaces, namely, areas which are only passed through by the movement of the external device on the display interface, so that in order to improve the accuracy of the determined concerned areas, the first sub-interfaces are further screened, namely, a second sub-interface is determined from the first sub-interfaces according to the stay time of the external device on each first sub-interface.
Step S433, if H j ≥H 0 Determining the j-th first sub-interface as a second sub-interface; wherein H is 0 Is a preset residence time threshold;
if the residence time of the external device on the first sub-interface is greater than or equal to a preset residence time threshold value, the first sub-interface is focused by a user, and the first sub-interface is determined to be a second sub-interface; otherwise, if the residence time of the external device on the first sub-interface is smaller than the preset residence time threshold, the user is not concerned about the first sub-interface, and only the external device passes through the first sub-interface when moving on the display interface, the external device is not determined to be a concerned area.
Step S434, determining the area where all the second sub-interfaces are located as the attention area of the user in the TM.
Since each second sub-interface is a region of interest to the user, the region where all the second sub-interfaces are located is determined as the region of interest to the user.
In step S435, if a process interface of the target process exists on the display interface within the target time period TM, determining the area where the process interface is located as the attention area of the user within the TM.
The target process may be a video playing process, a web page process, or the like, if the moving track of the external device does not exist on the display interface within the target period, the target process indicates that the user may be viewing the target device but not operating the target device, for example, the user may be viewing a video or browsing a web page on the target device within the target period, and does not operate the external device, so whether the user is currently viewing the target process is determined by detecting whether the process interface of the target process exists on the display interface. If the process interface of the target process exists on the display interface within the target time period, the user can be considered to be informed of popup of the popup window interface at the moment, but the user does not operate the popup window interface, and the area where the process interface of the target process exists is determined to be the attention area of the user.
The method for detecting whether the process interface of the target process exists on the display interface comprises the following steps:
and acquiring all picture characteristics of a process interface of each target process, and storing all picture characteristics corresponding to each target process into a memory of target equipment. When the display interface of the target device needs to be detected whether a process interface of the target process exists or not, the target device acquires running process identifiers corresponding to all running processes in the memory. If the target process identifier corresponding to the target process does not exist in the running process identifiers, the fact that the target process is not running currently is indicated, the user does not view the target process currently, and a process interface of the target process does not exist on the display interface; if the target process identifier exists in the running process identifier, the target process identifier indicates that the target process corresponding to the target process identifier is running currently, all picture features on the current display interface are obtained, matching is carried out on the picture features and all picture features corresponding to the target process stored in a memory of the target device, corresponding target matching degree is obtained, and if the target matching degree is greater than or equal to a preset matching degree threshold value, the process interface of the target process exists on the display interface.
If the moving track of the external equipment does not exist on the display interface and the process interface of the target process does not exist in the target time period, the condition that the user does not view or operate the target equipment in the target time period is indicated, the popup of the popup interface is not known by the user, and therefore the popup information of the popup interface is not subjected to statistical processing.
After the concerned area is determined, whether the popup window information is the target popup window information is determined through the concerned value of the concerned area of the user on the overlapped part of the concerned area and the popup window interface.
If the concerned value corresponding to the overlapped part is larger than the concerned threshold value, the concerned value indicates that the user is concerned about the popup interface, but the user does not operate the popup interface and only closes the popup interface by himself, so the popup information of the popup interface is determined as target popup information and is stored in a preset database.
The focus value corresponding to the overlapping part is determined by the following steps:
step S440, acquiring the residence time t of the external device in the region where the overlapping portion is located 1 And residence time t of the external device on the region of interest 2
Step S441, t 1 /t 2 A value of interest corresponding to the composite portion is determined.
Wherein the threshold of interest is determined by:
Step S450, acquiring the residence time of the external equipment on each second sub-interface to obtain a second residence time setG=(G 1 ,G 2 ,...,G i ,...,G k ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein i=1, 2,..k; k is less than or equal to m; k is the number of second sub-interfaces; g i A residence time for the external device on the ith second sub-interface;
step S451, will (Sigma) k i=1 G i ) And/k is determined as a threshold of interest.
The focus threshold is the average of the residence times corresponding to all the second sub-interfaces.
Step S500, generating a plurality of popup interception rules corresponding to the target equipment at present according to all target popup information stored in a preset database, so that the target equipment determines whether to intercept the popup to be displayed on the display interface according to the currently corresponding popup interception rules;
clustering all the target popup information currently stored in a preset database to obtain a plurality of popup information groups, enabling the target popup information in each popup information group to correspond to the same popup picture, and processing popup pictures of a plurality of target popup information in each popup information group according to a preset rule determining method to obtain popup interception rules corresponding to the popup pictures. The preset rule determining method is an existing rule determining method.
Further, in step S500, the target device determines whether to intercept the popup to be displayed on the display interface according to the currently corresponding popup interception rule, including:
step S510, when detecting a popup window to be displayed, obtaining each picture feature in the popup window to be displayed to obtain a first picture feature list F= (F) 1 ,F 2 ,...,F g ,...,F y ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein g=1, 2,..y; y is the number of picture features in the popup window to be displayed; f (F) g The g-th picture characteristic in the popup window to be displayed;
step S520, obtaining the frame features of the target popup window information corresponding to each popup window interception rule to obtain a second frame feature list set E= (E) 1 ,E 2 ,...,E n ,...,E s );E n =(E n1 ,E n2 ,...,E nq ,...,E nf(n) ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein n=1, 2,..s; s is the number of bullet window interception rules; e (E) n A picture feature list corresponding to the nth popup window interception rule; q=1, 2,. -%, f (n); f (n) is the number of picture features corresponding to the nth popup window interception rule; e (E) nq The method comprises the steps of intercepting the q-th picture characteristic corresponding to the rule for the nth popup window;
step S530, traversing F, if F g E, then F g Determining the target picture characteristics to obtain z target picture characteristics;
s540, if z is not less than (y/a), intercepting the popup window to be displayed; otherwise, displaying a popup interface corresponding to the popup to be displayed on a display interface; wherein a is a preset proportionality coefficient, and a is more than 1.
The method comprises the steps of detecting characteristics of a received popup window corresponding to a popup window to be displayed according to a plurality of popup window interception rules, determining corresponding target picture characteristics, and if the number of the target picture characteristics is greater than or equal to the ratio of the number of the picture characteristics in the popup window to be displayed to a proportionality coefficient, determining that the popup window corresponding to the popup window to be displayed is the popup window picture to be intercepted and intercepting the popup window; otherwise, the popup window is released, the popup window is displayed on a display interface, and the interception rule corresponding to the popup window interface is determined by counting the operation behaviors of a user on the popup window interface.
According to the method, the device and the system, the picture information of each popup interface is recorded, and each popup interface is clustered, so that when the popup interface of the picture appears again, the popup interface is intercepted, and compared with the existing method for intercepting all popups of a specific process, the method can identify popup according to the picture content, and the method can identify popup interfaces as if one process possibly corresponds to a plurality of popups, wherein some popups are required to be intercepted by a user, and some popups are interesting to the user and are not required to be intercepted, so that the picture content is adopted to identify the popup interfaces which are not interesting to the user, and the accuracy of popup interception is improved.
When the popup window is detected to appear on the display interface, popup window information of the popup window is obtained, and if a closing instruction of a user for the popup window is received before the timing of a preset timer reaches a set time, the popup window information is determined to be target popup window information; if an operation instruction of a user for the popup window interface is not received in the target time period, determining a concerned region of the user in the target time period according to the display content of the display interface in the target time period and/or the operation information of the user, determining target popup window information according to a concerned value corresponding to the overlapping part of the concerned region and the region where the popup window interface is located, and generating popup window interception rules according to a plurality of target popup window information and a preset rule determination method. According to the method and the device for intercepting the popup windows, based on the operation behaviors of the user on the popup windows, the popup windows of interest to the user and the popup windows to be intercepted are determined, the corresponding popup window interception rules are generated, the user does not need to add or delete a popup window blacklist in the popup window interception rules, and the popup window interception rules corresponding to each user are determined through autonomous learning of the operation behaviors of the popup windows of the user, so that the determined popup window interception rules are attached to the habit of the user, and the user experience is improved.
In addition, the present invention further provides a popup window interception device 100, as shown in fig. 2, including:
the popup information acquiring module 110 is configured to acquire popup information of a popup interface when detecting that the popup interface appears on a display interface of the target device; the popup information comprises picture information of a popup interface and identification information of the popup interface;
a timer starting module 120 for starting a preset timer and recording the current time t now
The first target popup information determining module 130 is configured to determine popup information as target popup information and store the target popup information in a preset database when a closing instruction of a user for a popup interface is received before a timing of a preset timer reaches a set time;
a second target popup information determination module 140 for, when at t now Automatic closing time t to pop-up window interface off When the operation instruction of the user for the popup window interface is not received in the target time period TM, determining according to the display content of the display interface and/or the operation information of the user in the target time period TMA user's region of interest within the TM; the length of the target time period TM is greater than the timing length of the preset timer; if a superposition part exists in the region where the concerned region and the popup interface are located and the concerned value corresponding to the superposition part is larger than the concerned threshold value, determining popup information as target popup information, and storing the target popup information into a preset database;
The popup interception rule generating module 150 is configured to generate a plurality of popup interception rules corresponding to the target device at present according to all target popup information currently stored in the preset database, so that the target device determines whether to intercept a popup to be displayed on the display interface according to the currently corresponding popup interception rule.
Embodiments of the present invention also provide a computer program product comprising program code for causing an electronic device to carry out the steps of the method according to the various exemplary embodiments of the invention as described in the specification, when said program product is run on the electronic device.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device according to this embodiment of the invention. The electronic device is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present invention.
The electronic device is in the form of a general purpose computing device. Components of an electronic device may include, but are not limited to: the at least one processor, the at least one memory, and a bus connecting the various system components, including the memory and the processor.
Wherein the memory stores program code that is executable by the processor to cause the processor to perform steps according to various exemplary embodiments of the invention described in the "exemplary methods" section of this specification.
The storage may include readable media in the form of volatile storage, such as Random Access Memory (RAM) and/or cache memory, and may further include Read Only Memory (ROM).
The storage may also include a program/utility having a set (at least one) of program modules including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus may be one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The electronic device may also communicate with one or more external devices (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device, and/or with any device (e.g., router, modem, etc.) that enables the electronic device to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface. And, the electronic device may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through a network adapter. As shown, the network adapter communicates with other modules of the electronic device over a bus. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with an electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (6)

1. A method for intercepting a popup window, the method comprising the steps of:
responding to the detection that a popup interface appears on a display interface of target equipment, and acquiring popup information of the popup interface; the popup information comprises picture information of the popup interface and identification information of the popup interface;
Opening the valvePresetting a timer and recording the current time t now
If a closing instruction of a user for the popup interface is received before the timing of the preset timer reaches the set time, determining the popup information as target popup information, and storing the target popup information into a preset database;
if at t now Automatic closing time t to the pop-up window interface off If the operation instruction of the user for the popup window interface is not received in the target time period TM, determining a concerned region of the user in the TM according to the display content of the display interface and the operation information of the user in the target time period TM; the length of the target time period TM is larger than the timing length of a preset timer; if a superposition part exists between the concerned region and the region where the popup interface is located and the concerned value corresponding to the superposition part is larger than the concerned threshold, determining the popup information as target popup information and storing the target popup information into a preset database;
generating a plurality of popup interception rules corresponding to the target equipment currently according to all target popup information stored in the preset database, so that the target equipment determines whether to intercept a popup to be displayed on the display interface according to the popup interception rules corresponding to the target equipment currently;
The determining the attention area of the user in the TM according to the display content of the display interface in the TM and the operation information of the user comprises the following steps:
dividing the display interface into a plurality of display sub-interfaces on average;
acquiring a moving track of an external device connected with the target device on each display sub-interface within a target time period TM; the external equipment connected with the target equipment is any one of information input equipment such as a keyboard, a mouse and a tablet, and the moving track of the external equipment is the moving track of a cursor of the keyboard or the moving track of the mouse;
determining a concerned region of a user in the TM according to the movement track corresponding to each display sub-interface;
the determining the attention area of the user in the TM according to the movement track corresponding to each display sub-interface comprises the following steps:
determining a display sub-interface with a movement track of the external device as a first sub-interface in a target time period TM;
acquiring the residence time of the external device on each first sub-interface to obtain a first residence time set H= [ H ] 1 ,H 2 ,...,H m ]The method comprises the steps of carrying out a first treatment on the surface of the Wherein H is j ∈H;H j A residence time for the external device on the j-th first sub-interface; j=1, 2, m; m is the number of first sub-interfaces;
If H j ≥H 0 Determining the j-th first sub-interface as a second sub-interface; wherein H is 0 Is a preset residence time threshold;
and determining all the areas where the second sub-interfaces are located as the attention areas of the user in the TM.
2. The method of claim 1, wherein the threshold of interest is determined by:
acquiring the residence time of the external device on each second sub-interface to obtain a second residence time set G= [ G ] 1 ,G 2 ,...,G k ]The method comprises the steps of carrying out a first treatment on the surface of the Wherein G is i ∈G;G i A residence time for the external device on the ith second sub-interface; i=1, 2,; k is less than or equal to m; k is the number of second sub-interfaces;
will (Sigma) k i=1 G i ) And/k is determined as the threshold of interest.
3. The method of claim 1, wherein the target device determining whether to intercept a to-be-displayed popup window to be presented to the display interface according to a currently corresponding popup window interception rule comprises:
when detecting the popup window to be displayed, obtaining each picture characteristic in the popup window to be displayed to obtainTo the first picture feature list f= [ F 1 ,F 2 ,...,F y ]The method comprises the steps of carrying out a first treatment on the surface of the Wherein F is g ∈F;F g The g-th picture characteristic in the popup window to be displayed; g=1, 2,; y is the number of picture features in the popup window to be displayed;
Obtaining the picture characteristics of a plurality of target popup window information corresponding to each popup window interception rule to obtain a second picture characteristic list set E= [ E ] 1 ,E 2 ,...,E s ]The method comprises the steps of carrying out a first treatment on the surface of the Wherein E is n ∈E;E n A picture feature list corresponding to the nth popup window interception rule; n=1, 2,..s; s is the number of bullet window interception rules; e (E) n =(E n1 ,E n2 ,...,E nf(n) );E nq ∈E n ;E nq The method comprises the steps of intercepting the q-th picture characteristic corresponding to the rule for the nth popup window; q=1, 2,. -%, f (n); f (n) is the number of picture features corresponding to the nth popup window interception rule;
traversing F, if F g E, then F g Determining the target picture characteristics to obtain z target picture characteristics;
if z is not less than (y/a), intercepting the popup window to be displayed; otherwise, displaying a popup interface corresponding to the popup to be displayed on the display interface; wherein a is a preset proportionality coefficient, and a is more than 1.
4. A pop-up window arresting device, comprising:
the popup information acquisition module is used for acquiring popup information of a popup interface when detecting that the popup interface appears on a display interface of the target equipment; the popup information comprises picture information of a popup interface and identification information of the popup interface;
the timer starting module is used for starting a preset timer and recording the current time t now
The first target popup information determining module is used for determining popup information as target popup information and storing the target popup information into a preset database when a closing instruction of a user for a popup interface is received before the timing of a preset timer reaches a set time;
Second target popup information determining moduleA block for, when at t now Automatic closing time t to pop-up window interface off When an operation instruction of a user for the popup window interface is not received in a target time period (TM), determining a concerned region of the user in the TM according to the display content of the display interface in the target time period (TM) and the operation information of the user; the length of the target time period TM is greater than the timing length of the preset timer; if a superposition part exists in the region where the concerned region and the popup interface are located and the concerned value corresponding to the superposition part is larger than the concerned threshold value, determining popup information as target popup information, and storing the target popup information into a preset database;
the popup interception rule generation module is used for generating a plurality of popup interception rules corresponding to the target equipment at present according to all target popup information stored in a preset database, so that the target equipment determines whether to intercept the popup to be displayed on the display interface according to the currently corresponding popup interception rules;
the method for determining the attention area of the user in the TM according to the display content of the display interface and the operation information of the user in the TM comprises the following steps:
dividing the display interface into a plurality of display sub-interfaces on average;
Acquiring a moving track of an external device connected with a target device on each display sub-interface within a target time period TM;
determining a concerned region of a user in the TM according to the movement track corresponding to each display sub-interface;
according to the movement track corresponding to each display sub-interface, determining the attention area of the user in the TM comprises the following steps:
determining a display sub-interface with a movement track of the external device as a first sub-interface in a target time period TM;
acquiring the residence time of the external equipment on each first sub-interface to obtain a first residence time set H= [ H ] 1 ,H 2 ,...,H m ]The method comprises the steps of carrying out a first treatment on the surface of the Wherein H is j ∈H;H j A residence time for the external device on the j-th first sub-interface; j=1, 2, m; m is the number of first sub-interfaces;
if H j ≥H 0 Determining the j-th first sub-interface as a second sub-interface; wherein H is 0 Is a preset residence time threshold;
and determining the area where all the second sub-interfaces are located as the attention area of the user in the TM.
5. A non-transitory computer readable storage medium having stored therein at least one instruction or at least one program, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the method of any one of claims 1-3.
6. An electronic device comprising a processor and the non-transitory computer readable storage medium of claim 5.
CN202311303195.2A 2023-10-10 2023-10-10 Popup window interception method and device, equipment and medium Active CN117056008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311303195.2A CN117056008B (en) 2023-10-10 2023-10-10 Popup window interception method and device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311303195.2A CN117056008B (en) 2023-10-10 2023-10-10 Popup window interception method and device, equipment and medium

Publications (2)

Publication Number Publication Date
CN117056008A CN117056008A (en) 2023-11-14
CN117056008B true CN117056008B (en) 2024-02-02

Family

ID=88666612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311303195.2A Active CN117056008B (en) 2023-10-10 2023-10-10 Popup window interception method and device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117056008B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753192A (en) * 2020-06-04 2020-10-09 珠海豹趣科技有限公司 Advertisement popup intercepting method and device, electronic equipment and storage medium
CN113687890A (en) * 2021-07-13 2021-11-23 荣耀终端有限公司 Popup management method, apparatus and storage medium
CN114296817A (en) * 2021-12-20 2022-04-08 上海尚往网络科技有限公司 Popup display method and device based on user behavior and electronic equipment
CN114416252A (en) * 2022-01-14 2022-04-29 统信软件技术有限公司 Window display method and device, computing equipment and storage medium
CN114861166A (en) * 2022-05-25 2022-08-05 杭州安恒信息技术股份有限公司 Popup window intercepting method, device, equipment and medium
CN116820997A (en) * 2023-07-19 2023-09-29 北京博睿宏远数据科技股份有限公司 Random popup automatic processing method and device, electronic equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8806327B2 (en) * 2005-08-15 2014-08-12 Iii Holdings 1, Llc System and method for displaying unrequested information within a web browser

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753192A (en) * 2020-06-04 2020-10-09 珠海豹趣科技有限公司 Advertisement popup intercepting method and device, electronic equipment and storage medium
CN113687890A (en) * 2021-07-13 2021-11-23 荣耀终端有限公司 Popup management method, apparatus and storage medium
CN114296817A (en) * 2021-12-20 2022-04-08 上海尚往网络科技有限公司 Popup display method and device based on user behavior and electronic equipment
CN114416252A (en) * 2022-01-14 2022-04-29 统信软件技术有限公司 Window display method and device, computing equipment and storage medium
CN114861166A (en) * 2022-05-25 2022-08-05 杭州安恒信息技术股份有限公司 Popup window intercepting method, device, equipment and medium
CN116820997A (en) * 2023-07-19 2023-09-29 北京博睿宏远数据科技股份有限公司 Random popup automatic processing method and device, electronic equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Android的通信安防设计;徐亮;电子设计工程;第20卷(第15期);第34-37页 *

Also Published As

Publication number Publication date
CN117056008A (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN109240576B (en) Image processing method and device in game, electronic device and storage medium
US11481492B2 (en) Method and system for static behavior-predictive malware detection
CN109271782B (en) Method, medium, system and computing device for detecting attack behavior
CN100428182C (en) Profile based capture component for monitoring events in applications
EP3333851B1 (en) Automated object and activity tracking in a live video feed
US10333952B2 (en) Online alert ranking and attack scenario reconstruction
CN107516526B (en) Sound source tracking and positioning method, device, equipment and computer readable storage medium
JP7120350B2 (en) SECURITY INFORMATION ANALYSIS METHOD, SECURITY INFORMATION ANALYSIS SYSTEM AND PROGRAM
CN112286781A (en) Automatic testing method, device, equipment and storage medium
CN107657033A (en) Reading behavior monitoring method and device, storage medium and electronic equipment
US10785243B1 (en) Identifying evidence of attacks by analyzing log text
WO2020055156A1 (en) System and method for a scene builder
EP4064711A1 (en) Method and apparatus for providing video stream based on machine learning
US10291483B2 (en) Entity embedding-based anomaly detection for heterogeneous categorical events
CN110362288B (en) Same-screen control method, device, equipment and storage medium
CN115273231A (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN108156127B (en) Network attack mode judging device, judging method and computer readable storage medium thereof
Kumar et al. Crime activities prediction system in video surveillance by an optimized deep learning framework
CN114299366A (en) Image detection method and device, electronic equipment and storage medium
CN113238815B (en) Interface access control method, device, equipment and storage medium
CN117056008B (en) Popup window interception method and device, equipment and medium
CN112926925A (en) Product supervision method and device, electronic equipment and storage medium
CN111127057B (en) Multi-dimensional user portrait recovery method
US11165779B2 (en) Generating a custom blacklist for a listening device based on usage
CN115964701A (en) Application security detection method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant