CN111753191A - Advertisement popup intercepting method and device, electronic equipment and storage medium - Google Patents

Advertisement popup intercepting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111753191A
CN111753191A CN202010503928.7A CN202010503928A CN111753191A CN 111753191 A CN111753191 A CN 111753191A CN 202010503928 A CN202010503928 A CN 202010503928A CN 111753191 A CN111753191 A CN 111753191A
Authority
CN
China
Prior art keywords
popup
window
advertisement
pop
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010503928.7A
Other languages
Chinese (zh)
Inventor
以志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Baoqu 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 Zhuhai Baoqu Technology Co Ltd filed Critical Zhuhai Baoqu Technology Co Ltd
Priority to CN202010503928.7A priority Critical patent/CN111753191A/en
Publication of CN111753191A publication Critical patent/CN111753191A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an advertisement popup intercepting method, an advertisement popup intercepting device, electronic equipment and a storage medium, which are used for solving the technical problem of abnormal display of an advertisement popup. The method comprises the following steps: if the target hook function bound with the popup event is detected to be called, acquiring a process corresponding to the popup event; acquiring at least one attribute characteristic of a popup corresponding to the popup event according to the process; determining whether the pop-up window is an advertisement pop-up window according to the at least one attribute characteristic; and if the pop-up window is the advertisement pop-up window, refusing to respond to the pop-up window event. By adopting the embodiment of the invention, the accuracy rate of intercepting the advertisement popup can be improved.

Description

Advertisement popup intercepting method and device, electronic equipment and storage medium
Technical Field
The invention relates to the field of computer application, in particular to an advertisement popup intercepting method and device, electronic equipment and a storage medium.
Background
With the development of information technology, more and more application software is installed in electronic devices. Many applications have more or less advertisement pop-ups, and many more advertisement pop-ups in rogue software. The advertisement pop-up may contain fraudulent advertisements and illegal advertisement links and severely affect the user's experience with the electronic device. Therefore, how to accurately intercept the advertisement popup is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides an advertisement popup intercepting method, an advertisement popup intercepting device, electronic equipment and a storage medium, which are used for solving the technical problem of abnormal display of an advertisement popup and improving the accuracy rate of intercepting the advertisement popup.
In a first aspect, the present invention provides an advertisement popup intercepting method, including:
if the target hook function bound with the popup event is detected to be called, acquiring a process corresponding to the popup event;
acquiring at least one attribute characteristic of a popup corresponding to the popup event according to the process;
determining whether the pop-up window is an advertisement pop-up window according to the at least one attribute characteristic;
and if the pop-up window is the advertisement pop-up window, refusing to respond to the pop-up window event.
With reference to the first aspect of the embodiment of the present invention, in a first possible implementation manner of the first aspect of the embodiment of the present invention, the determining, according to the at least one attribute feature, whether the popup is an advertisement popup includes:
identifying the at least one attribute feature to obtain a probability value that the pop-up window is an advertisement pop-up window;
and if the probability value is larger than a first threshold value, determining that the pop-up window is an advertisement pop-up window.
With reference to the first possible implementation manner of the first aspect of the embodiment of the present invention, in a second possible implementation manner of the first aspect of the embodiment of the present invention, the identifying the at least one attribute feature to obtain a probability value that the popup is an advertisement popup includes:
searching a reference advertisement popup window corresponding to at least one attribute characteristic in the at least one attribute characteristic from a pre-established advertisement popup window database to obtain at least two reference advertisement popup windows;
acquiring a reference correlation value between the at least two reference advertisement pop windows;
and taking the reference correlation value as the probability that the pop-window is the advertisement pop-window.
With reference to the second possible implementation manner of the first aspect of the embodiment of the present invention, in a third possible implementation manner of the first aspect of the embodiment of the present invention, the obtaining a reference association value between the at least two reference advertisement popup windows includes:
acquiring an application corresponding to each of the at least two reference advertisement pop-windows to obtain at least two applications;
determining an association value between the at least two applications;
using the association value as a reference association value between the at least two reference advertisement pops.
With reference to the first aspect of the embodiment of the present invention, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect of the embodiment of the present invention, the method further includes:
determining whether the pop window is an advertisement blocking pop window;
and if the popup is an advertisement blocking popup, executing the step of refusing to respond to the popup event.
With reference to the fourth possible implementation manner of the first aspect of the embodiment of the present invention, in a fifth possible implementation manner of the first aspect of the embodiment of the present invention, the determining whether the popup is an advertisement blocking popup includes:
acquiring the interception times of the process;
acquiring the window content of the popup window;
acquiring an interception value according to the interception times and the window content;
and if the interception value is larger than a second threshold value, determining the pop-up window as an advertisement interception pop-up window.
With reference to the fourth possible implementation manner of the first aspect of the embodiment of the present invention or the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect of the embodiment of the present invention, the method further includes:
if the popup window is not an intercepted advertisement popup window, displaying selection prompt information corresponding to the popup window event;
and if a display rejection instruction aiming at the selection prompt information is received, executing the step of rejecting to respond to the popup event.
In a second aspect, the present invention provides an advertisement pop-up window blocking device, including:
the processing unit is used for acquiring a process corresponding to the popup event if the fact that a target hook function bound with the popup event is called is detected; acquiring at least one attribute characteristic of a popup corresponding to the popup event according to the process; determining whether the pop-up window is an advertisement pop-up window according to the at least one attribute characteristic;
and the execution unit is used for refusing to respond to the popup event if the popup is an advertisement popup.
With reference to the second aspect of the embodiment of the present invention, in a first possible implementation manner of the second aspect of the embodiment of the present invention, the processing unit is specifically configured to identify the at least one attribute feature, and obtain a probability value that the pop-up window is an advertisement pop-up window; and if the probability value is larger than a first threshold value, determining that the pop-up window is an advertisement pop-up window.
With reference to the first possible implementation manner of the second aspect of the embodiment of the present invention, in a second possible implementation manner of the second aspect of the embodiment of the present invention, the processing unit is specifically configured to search, from a pre-established advertisement popup database, a reference advertisement popup corresponding to at least one attribute feature of the at least one attribute feature to obtain at least two reference advertisement popup; acquiring a reference correlation value between the at least two reference advertisement pop windows; and taking the reference correlation value as the probability that the pop-window is the advertisement pop-window.
With reference to the second possible implementation manner of the second aspect of the embodiment of the present invention, in a third possible implementation manner of the second aspect of the embodiment of the present invention, the processing unit is specifically configured to obtain an application corresponding to each of the at least two reference advertisement pop windows, so as to obtain at least two applications; acquiring an association value between the at least two applications; using the association value as a reference association value between the at least two reference advertisement pops.
With reference to the second aspect of the embodiment of the present invention, the first possible implementation manner of the second aspect, the second possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect of the embodiment of the present invention, the processing unit is further configured to determine whether the popup is an advertisement blocking popup; and if the popup is an advertisement blocking popup, calling the execution unit to execute the step of refusing to respond to the popup event.
With reference to the fourth possible implementation manner of the second aspect of the embodiment of the present invention, in a fifth possible implementation manner of the second aspect of the embodiment of the present invention, the processing unit is specifically configured to obtain the number of times of interception of the process; acquiring the window content of the popup window; acquiring an interception value according to the interception times and the window content; and if the interception value is larger than a second threshold value, determining the pop-up window as an advertisement interception pop-up window.
With reference to the fourth possible implementation manner of the second aspect of the embodiment of the present invention or the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect of the embodiment of the present invention, the execution unit is further configured to display a selection prompt message corresponding to the popup event if the popup is a non-blocking advertisement popup; and if a display rejection instruction aiming at the selection prompt information is received, executing the step of rejecting to respond to the popup event.
A third aspect of embodiments of the present invention provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the advertisement popup intercepting method provided by the first aspect of the embodiment of the present invention.
A fourth aspect of the embodiments of the present invention provides a non-transitory computer-readable storage medium, where the storage medium is used to store a computer program, and when the computer program is executed by a processor, the method for intercepting a pop-up window in an advertisement provided by the first aspect of the embodiments of the present invention is implemented.
By implementing the embodiment of the invention, when the target hook function bound with the popup event is called, the process corresponding to the popup event is acquired, and then at least one attribute characteristic corresponding to the process is acquired. And determining whether the popup corresponding to the popup event is an advertisement popup according to at least one attribute characteristic. If the advertisement is popup, the response to the popup event is refused. Therefore, the advertisement popup is intercepted before being displayed, and the user experience is improved. And the advertisement popup is determined according to the attribute characteristics, so that the accuracy of intercepting the display of the advertisement popup is improved, and the safety of the electronic equipment is improved conveniently.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an advertisement popup intercepting method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for intercepting a pop-up window in an advertisement according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an advertisement pop-up window blocking device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and "third," etc. in the description and claims of the invention and the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device described in the embodiment of the present invention may include a smart phone (such as an Android phone), a tablet computer, a palmtop computer, a notebook computer, a Mobile Internet device (MID, Mobile Internet Devices), a wearable device, and the like, and the electronic device is merely an example, and is not exhaustive and includes, but is not limited to, an electronic device.
In order to better understand the scheme of the embodiments of the present application, the following first introduces the related concepts to which the embodiments of the present application can be related.
(1) Spring window
Popup refers to a window that pops up, not a window that the user directly opens. Some popup windows appear after a certain software function is used, some popup windows appear after software is operated or after a preset time interval, and some popup windows appear after a user is started, and the popup time is indefinite.
(2) Advertisement pop-up window
An advertisement pop refers to a pop including a large number of advertisements. In the using process of the electronic equipment, the advertisement popup is displayed, so that the user is influenced to browse the current page, and the experience of the user using the electronic equipment is poor. The information such as fraud advertisements and illegal advertisement links is also included through the advertisement pop-up window, and the safety of the electronic equipment is influenced.
(3) Advertisement blocking pop-up window
The advertisement blocking popup window is an advertisement popup window to be blocked in the electronic equipment, namely the advertisement popup window which can be directly blocked by the electronic equipment.
(4) Process
A Process (Process) is a running activity of a program in a computer on a data set, is a basic unit of resource allocation and scheduling of a system, and is the basis of an operating system structure.
Based on the influence of the advertisement popup on the experience of the user and the safety of the electronic equipment, the embodiment of the invention provides an advertisement popup intercepting method, an advertisement popup intercepting device, the electronic equipment and a storage medium, and the accuracy of intercepting the advertisement popup can be improved.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an advertisement popup intercepting method according to an embodiment of the present invention. The method is applied to an electronic device, and as shown in fig. 1, the method in the embodiment of the invention includes:
s101, if the target hook function bound with the popup event is detected to be called, acquiring a process corresponding to the popup event.
In the embodiment of the present application, an event that calls a popup in an operating system is referred to as a popup event. The target hook function is used for monitoring the pop-window event, and may be a hook function used for monitoring the pop-window event in the Windows operating system, or may be a reference hook function corresponding to the event used for monitoring the Windows operating system, and a type determining function used for determining the event type of the event monitored by the reference hook function. Wherein, the reference hook function may be SetWinEventHook or setwineventhokex. In the Windows operating system, the events include, in addition to the pop-up window event, events such as switching a window, obtaining a focus, and scrolling a scroll bar, which are not limited herein.
In one possible example, if a reference event is monitored by the reference hook function, determining, by the type determination function, a type of event that calls the reference event; and if the event type of the reference event is a popup event, determining that the target hook function bound with the popup event is called. Therefore, after the event is monitored, whether the event is a popup event is determined according to the event type of the event, and the accuracy of monitoring the popup event can be improved.
S102, obtaining at least one attribute feature of the popup corresponding to the popup event according to the process.
As mentioned above, a process is the basic unit for resource allocation and scheduling by a system. Therefore, the process corresponding to the popup event includes the resource and the scheduling information corresponding to the popup event, and the resource reflects the attribute information of the popup, so that at least one attribute feature of the popup corresponding to the popup event can be acquired according to the process.
S103, determining whether the popup is an advertisement popup according to the at least one attribute characteristic.
In the embodiment of the present application, the attribute characteristics include a process name, a window class name, a window title, a window content, a window height, a window width, and the like. Where the process name is used to identify the process, and the process is associated with the application. If the application is a malicious application or receives an advertisement promotion service, whether the popup corresponding to the popup event is an advertisement popup can be determined according to the process name. The window class name, the window height and the display attribute of the popup corresponding to the window height are similar to those of the advertisement popup, and therefore whether the popup corresponding to the popup event is the advertisement popup can be determined according to the window class name, the window height and the window height. The window title and the window content correspond to the specific content of the popup, so that whether the popup corresponding to the popup event is an advertisement popup can be determined according to the window title and the window content.
The method for determining the advertisement popup is not limited, and the method can be respectively identified according to each attribute characteristic, and if one attribute characteristic determines that the popup is the advertisement popup, the popup is determined to be the advertisement popup. In a first possible example, step S103 comprises the following steps a1-A3, wherein:
a1, classifying the at least one attribute feature to obtain at least two types of attribute features.
The method and the device can take the process name corresponding to the identification process as a class of attribute features, take the window class name, the window height and the window height corresponding to the display attribute for describing the popup as a class of attribute features, and take the window title and the window content corresponding to the specific content for describing the popup as a class of attribute features. The process name and the window class name corresponding to the identifier may also be used as a class of attribute features, and the window height, the window title, and the window content corresponding to the popup window may also be used as a class of attribute features, and the like, which are not limited herein.
A2, identifying the attribute features according to a preset rule corresponding to each of the at least two types of attribute features to obtain at least two sub-probability values.
A3, obtaining the probability value of the popup window being the advertisement popup window according to the at least two sub-probability values.
The method for acquiring the probability value of the popup window as the advertisement popup window by the at least two sub-probability values is not limited, the preset weight corresponding to various attribute characteristics can be predetermined, and then the sub-probability values are weighted and calculated. For example, at least one attribute feature is divided into a first class of attribute features and a second class of attribute features, wherein the preset weights of the first class of attribute features and the second class of attribute features are 0.4 and 0.6 respectively. If the sub-probability values of the first type attribute feature and the second type attribute feature are 0.6 and 0.8 respectively, the calculation formula of the probability value of the popup window being the advertisement popup window is 0.4 × 0.6+0.6 × 0.8, and 0.48 is obtained.
It can be understood that, in the step a1-A3, after at least one attribute feature is classified to obtain at least two types of attribute features, each type of attribute feature is identified according to a preset rule preset for each type of attribute feature to obtain at least two sub-probability values. And obtaining the probability value of the popup window as the advertisement popup window according to the at least two sub-probability values. Therefore, the method identifies in the form of the class, integrates the sub-probability values, can improve the accuracy of obtaining the probability value of the popup window as the advertisement popup window, and is convenient for improving the accuracy of determining the popup window as the advertisement popup window.
In a second possible example, step S103 comprises the following step B1 and step B2, wherein:
b1, identifying the at least one attribute feature to obtain the probability value that the pop window is the advertisement pop window.
And the probability value is used for describing the probability that the popup corresponding to the popup event is the advertisement popup. The method for identifying at least one attribute feature is not limited, and the method can be respectively identified by preset rules corresponding to each attribute feature, and can also be used for searching whether an advertisement popup window corresponding to at least one attribute feature exists in a pre-stored database or not. In one possible example, step B1 includes the following steps B11-B13, wherein:
b11, searching a reference advertisement popup window corresponding to at least one attribute feature in the at least one attribute feature from a pre-established advertisement popup window database to obtain at least two reference advertisement popup windows.
The advertisement popup database may include an advertisement popup intercepted in the electronic device, an advertisement popup stored in a server of an application corresponding to the process, an advertisement popup stored in a server corresponding to the security software, and the like, which is not limited herein. The attribute features of the reference advertisement popup are consistent with at least one attribute feature. It is understood that when the property characteristics of the popup are consistent with the property characteristics of the reference advertisement popup, it indicates the possibility that the popup has an advertisement popup.
B12, obtaining a reference association value between the at least two reference advertisement popup windows.
The reference association value is used for describing the association value between the reference advertisement popup windows, and can be determined by whether the reference advertisement popup windows are the same type of advertisement, whether the reference advertisement popup windows are related links, whether the reference advertisement popup windows are the same malicious application advertisement, and the like. In one possible example, step B12 includes: acquiring an application corresponding to each of the at least two reference advertisement pop-windows to obtain at least two applications; determining an association value between the at least two applications; using the association value as a reference association value between the at least two reference advertisement pops.
In this example, the application may be an application of a platform corresponding to a pop-up advertisement, or may be a third-party application corresponding to a user publishing an advertisement on the platform. It can be understood that the applications embody the sources of the advertisements, and the correlation value between the applications corresponding to the reference advertisement pop windows is used as the reference correlation value between at least two reference advertisement pop windows, so that the accuracy of determining the reference correlation value can be improved.
And B13, taking the reference correlation value as the probability that the popup is an advertisement popup.
In the steps B11-B13, a reference advertisement popup corresponding to at least one attribute feature is searched from a pre-established advertisement popup database, so that the accuracy of obtaining the probability value can be improved. And then acquiring reference correlation values among the reference advertisement pop-windows, and taking the reference correlation values as probability values of the pop-windows corresponding to the pop-window events as the advertisement pop-windows. Therefore, the relevance of the application corresponding to the attribute characteristics is comprehensively considered, and the accuracy of obtaining the probability value can be further improved.
B2, if the probability value is larger than a first threshold value, determining that the pop window is an advertisement pop window.
The first threshold is not limited, and may be determined by an operating state of the electronic device, where the operating state is determined according to an application currently running on the electronic device. For example, an office application is currently running, the electronic device is determined to be in an operating state, and the first threshold is 0.8. The currently running video application determines that the electronic device is in a browsing state, and the first threshold is 0.9. The electronic equipment does not run any application currently, the electronic equipment is determined to be in a standby state, and the first threshold value is 0.6.
In a second possible example, the at least one attribute feature is identified to obtain a probability value that a popup corresponding to the popup event is an advertisement popup, and if the probability value is greater than a first threshold, the popup is determined to be the advertisement popup. Therefore, the accuracy of judging whether the pop-up window is the advertisement pop-up window or not can be improved by comprehensively considering the attribute characteristics.
It should be noted that, the probability value of acquiring the pop window as the advertisement pop window may be combined between the first possible example and the second possible example. For example, a preset rule corresponding to each of the at least two types of attribute features is determined according to a pre-established advertisement popup database. Therefore, the identification is carried out based on the preset rule determined by the advertisement popup database, and the accuracy of obtaining the probability value can be further improved.
S104, if the popup is an advertisement popup, refusing to respond to the popup event.
In this embodiment of the present application, the refusing to respond to the pop-up window event means refusing to display the pop-up window corresponding to the pop-up window event, that is, intercepting before displaying the advertisement pop-up window.
In the method shown in fig. 1, a popup event is monitored through a target hook function, at least one attribute feature of the popup corresponding to the popup event is obtained according to a process corresponding to the popup event, the popup is determined to be an advertisement popup according to the at least one attribute feature, and response to the popup event is rejected. Therefore, the advertisement popup is intercepted before being displayed, and the user experience is improved. And the advertisement popup is determined according to the attribute characteristics, so that the accuracy of intercepting the advertisement popup can be improved, and the safety of the electronic equipment can be improved conveniently.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another advertisement popup intercepting method according to an embodiment of the present invention. The method is applied to an electronic device, and as shown in fig. 2, the method in the embodiment of the invention includes:
s201, if the target hook function bound with the popup event is detected to be called, acquiring a process corresponding to the popup event.
S202, at least one attribute feature of the popup corresponding to the popup event is obtained according to the process.
S203, determining whether the popup is an advertisement popup according to the at least one attribute characteristic.
The steps S201 to S203 can refer to the description of the steps S101 to S103, and are not described herein again.
S204, if the pop-up window is the advertisement pop-up window, determining whether the pop-up window is an advertisement blocking pop-up window.
The method for determining the advertisement blocking popup window is not limited, and the method can be determined according to a pre-stored blacklist in the electronic device, for example, if the popup window belongs to the blacklist, the popup window is determined to be the advertisement blocking popup window. And identifying the window content in at least one attribute characteristic based on a preset advertisement blocking popup rule to obtain a probability value of the popup window as an advertisement blocking popup window, and determining the popup window as the advertisement blocking popup window when the probability value is greater than a preset threshold corresponding to the advertisement blocking popup window.
In one possible example, the determining whether the pop window is an intercept advertisement pop window comprises: acquiring the interception times of the process; acquiring the window content of the popup window; acquiring an interception value according to the interception times and the window content; and if the interception value is larger than a second threshold value, determining the pop-up window as an advertisement interception pop-up window.
The interception number may be a total number of the process intercepted in the electronic device, or a number of times that the process is continuously intercepted in the electronic device, which is not limited herein. The interception times are used for describing the strength of refusing to check the popup window corresponding to the process by the user, otherwise, the interest of the user in checking the popup window can be reflected. The window content is a text, a picture, a video, a link or the like to be displayed of the popup window, and comprises the window content and a window title. The interest degree of the user for the popup can be determined through the content of the window.
The method for acquiring the interception value is not limited, the interception times and the interest values corresponding to the content can be acquired respectively, and the interception value is estimated based on the two interest values. The second threshold is not limited in this application, and reference may be made to the description of the first threshold.
In this example, determining whether the pop window is an advertisement blocking pop window according to the number of times of blocking and the blocking value obtained by the window content, and the second threshold value may improve the accuracy of determining the advertisement blocking pop window.
S205, if the popup is an advertisement blocking popup, refusing to respond to the popup event.
In the method shown in fig. 2, a popup event is monitored through a target hook function, at least one attribute feature of the popup corresponding to the popup event is obtained according to a process corresponding to the popup event, and the popup is determined to be an advertisement popup according to the at least one attribute feature. And further determining whether the popup is an advertisement blocking popup, and if so, refusing to respond to the popup event. Therefore, the advertisement popup is intercepted before being displayed, and the user experience is improved. And the advertisement popup is determined according to the attribute characteristics, and response to the popup event for intercepting the advertisement popup is refused, so that the accuracy of intercepting the advertisement popup can be further improved, and the safety of the electronic equipment is improved conveniently.
The advertisement popup as opposed to the blocked advertisement popup is a displayable advertisement popup, and in one possible example, the method further includes the following steps C1 and C2, wherein:
and C1, if the popup window is not an intercepted advertisement popup window, displaying selection prompt information corresponding to the popup window event.
Wherein the selection prompt information is used for indicating the purpose and/or content of the popup event. The selection prompt information may be generated based on an application corresponding to the pop-up window event and/or the display content, which is not limited herein. The display method of the selection prompt information is not limited, and the selection prompt information can be displayed in a task bar at the bottom, unread information, mails, information and the like.
Further, step C1 includes: acquiring a plurality of window contents of the popup; obtaining summary information of each window content in the plurality of window contents to obtain a plurality of summary information; generating a plurality of selection prompt messages according to the plurality of summary messages; and displaying the plurality of selection prompt messages.
The window content is an information item to be displayed in the pop-up window event, and reference may be made to the description of S204, which is not described herein again. The summary information is main information corresponding to the content, and may be obtained through a title corresponding to the content, or may be obtained according to a text of the content itself, which is not limited herein.
It can be understood that the selection prompt information of each window content corresponding to the popup event is displayed, so that the information concerned by the user can be prevented from being intercepted. And the summary information corresponding to the displayed window content can save the display occupied area and improve the information reading efficiency.
C2, if a display rejection instruction for the selection prompt information is received, rejecting to respond to the popup event.
In step C1 and step C2, when it is determined that the pop-up window is not an advertisement blocking pop-up window, selection prompt information corresponding to the pop-up window event is displayed. Therefore, the user can determine whether to intercept the popup window corresponding to the popup window event or not according to the selection prompt information, and the accuracy of interception is improved.
Referring to fig. 3, fig. 3 is a structural diagram of an advertisement popup intercepting apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus 300 may include:
a processing unit 301, configured to obtain a process corresponding to a popup event if it is detected that a target hook function bound to the popup event is called; acquiring at least one attribute characteristic of a popup corresponding to the popup event according to the process; determining whether the pop-up window is an advertisement pop-up window according to the at least one attribute characteristic;
an executing unit 302, configured to refuse to respond to the pop-window event if the pop-window is an advertisement pop-window.
As an optional embodiment, the processing unit 301 is specifically configured to identify the at least one attribute feature, and obtain a probability value that the pop window is an advertisement pop window; and if the probability value is larger than a first threshold value, determining that the pop-up window is an advertisement pop-up window.
As an optional embodiment, the processing unit 301 is specifically configured to search a reference advertisement popup window corresponding to at least one attribute feature of the at least one attribute feature from a pre-established advertisement popup window database to obtain at least two reference advertisement popup windows; acquiring a reference correlation value between the at least two reference advertisement pop windows; and taking the reference correlation value as the probability that the pop-window is the advertisement pop-window.
As an optional embodiment, the processing unit 301 is specifically configured to obtain an application corresponding to each of the at least two reference advertisement pop windows, so as to obtain at least two applications; acquiring an association value between the at least two applications; using the association value as a reference association value between the at least two reference advertisement pops.
As an alternative embodiment, the processing unit 301 is further configured to determine whether the pop window is an advertisement blocking pop window; if the pop window is an advertisement blocking pop window, the execution unit 302 is invoked to execute the step of refusing to respond to the pop window event.
As an optional embodiment, the processing unit 301 is specifically configured to obtain the number of times of interception of the process; acquiring the window content of the popup window; acquiring an interception value according to the interception times and the window content; and if the interception value is larger than a second threshold value, determining the pop-up window as an advertisement interception pop-up window.
As an optional embodiment, the execution unit 302 is further configured to display a selection prompt message corresponding to the pop-up event if the pop-up non-intercepted advertisement pop-up is detected; and if a display rejection instruction aiming at the selection prompt information is received, executing the step of rejecting to respond to the popup event.
In the advertisement popup intercepting apparatus described in fig. 3, a popup event is monitored through a target hook function, at least one attribute feature of a popup corresponding to the popup event is obtained according to a process corresponding to the popup event, the popup is determined to be an advertisement popup according to the at least one attribute feature, and the response to the popup event is rejected. Therefore, the advertisement popup is intercepted before being displayed, and the user experience is improved. And the advertisement popup is determined according to the attribute characteristics, so that the accuracy of intercepting the advertisement popup can be improved, and the safety of the electronic equipment can be improved conveniently.
Referring to fig. 4, fig. 4 is an electronic device according to an embodiment of the invention. The advertisement popup window intercepting method is suitable for electronic equipment such as mobile phones and tablet computers. As shown in fig. 4, the electronic device may include a housing 410, a processor 420, a memory 430, a circuit board 440, and a power circuit 440, wherein the circuit board 440 is disposed inside a space surrounded by the housing, and the processor 420 and the memory 430 are disposed on the circuit board 440; a power supply circuit 440 for supplying power to various circuits or devices of the electronic apparatus; the memory 430 is used for storing executable program code; the processor 420 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 430, for performing the steps of:
if the target hook function bound with the popup event is detected to be called, acquiring a process corresponding to the popup event;
acquiring at least one attribute characteristic of a popup corresponding to the popup event according to the process;
determining whether the pop-up window is an advertisement pop-up window according to the at least one attribute characteristic;
and if the pop-up window is the advertisement pop-up window, refusing to respond to the pop-up window event.
As an optional embodiment, in the aspect that the determining whether the pop-up window is an advertisement pop-up window according to the at least one attribute feature, the processor 420 is specifically configured to perform the following operations:
identifying the at least one attribute feature to obtain a probability value that the pop-up window is an advertisement pop-up window;
and if the probability value is larger than a first threshold value, determining that the pop-up window is an advertisement pop-up window.
As an optional embodiment, in the aspect that the identifying the at least one attribute feature obtains a probability value that the pop window is an advertisement pop window, the processor 420 is specifically configured to perform the following operations:
searching a reference advertisement popup window corresponding to at least one attribute characteristic in the at least one attribute characteristic from a pre-established advertisement popup window database to obtain at least two reference advertisement popup windows;
acquiring a reference correlation value between the at least two reference advertisement pop windows;
and taking the reference correlation value as the probability that the pop-window is the advertisement pop-window.
As an alternative embodiment, in the aspect of obtaining the reference association value between the at least two reference advertisement portholes, the processor 420 is specifically configured to perform the following operations:
acquiring an application corresponding to each of the at least two reference advertisement pop-windows to obtain at least two applications;
determining an association value between the at least two applications;
using the association value as a reference association value between the at least two reference advertisement pops.
As an alternative embodiment, the processor 420 is further configured to perform the following operations:
determining whether the pop window is an advertisement blocking pop window;
and if the popup is an advertisement blocking popup, executing the step of refusing to respond to the popup event.
As an alternative embodiment, in the aspect of determining whether the pop window is an advertisement blocking pop window, the processor 420 is specifically configured to perform the following operations:
acquiring the interception times of the process;
acquiring the window content of the popup window;
acquiring an interception value according to the interception times and the window content;
and if the interception value is larger than a second threshold value, determining the pop-up window as an advertisement interception pop-up window.
As an alternative embodiment, the processor 420 is further configured to perform the following operations:
if the popup window is not an intercepted advertisement popup window, displaying selection prompt information corresponding to the popup window event;
and if a display rejection instruction aiming at the selection prompt information is received, executing the step of rejecting to respond to the popup event.
In the electronic device described in fig. 4, a popup event is monitored through a target hook function, at least one attribute feature of the popup corresponding to the popup event is obtained according to a process corresponding to the popup event, the popup is determined to be an advertisement popup according to the at least one attribute feature, and response to the popup event is rejected. Therefore, the advertisement popup is intercepted before being displayed, and the user experience is improved. And the advertisement popup is determined according to the attribute characteristics, so that the accuracy of intercepting the advertisement popup can be improved, and the safety of the electronic equipment can be improved conveniently.
In one embodiment, a non-transitory computer readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the aforementioned advertisement popup intercepting method.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An advertisement popup intercepting method is characterized by comprising the following steps:
if the target hook function bound with the popup event is detected to be called, acquiring a process corresponding to the popup event;
acquiring at least one attribute characteristic of a popup corresponding to the popup event according to the process;
determining whether the pop-up window is an advertisement pop-up window according to the at least one attribute characteristic;
and if the pop-up window is the advertisement pop-up window, refusing to respond to the pop-up window event.
2. The method of claim 1, wherein said determining whether the pop is an advertisement pop based on the at least one attribute characteristic comprises:
identifying the at least one attribute feature to obtain a probability value that the pop-up window is an advertisement pop-up window;
and if the probability value is larger than a first threshold value, determining that the pop-up window is an advertisement pop-up window.
3. The method of claim 2, wherein the identifying the at least one attribute feature to obtain a probability value that the pop is an advertisement pop comprises:
searching a reference advertisement popup window corresponding to at least one attribute characteristic in the at least one attribute characteristic from a pre-established advertisement popup window database to obtain at least two reference advertisement popup windows;
acquiring a reference correlation value between the at least two reference advertisement pop windows;
and taking the reference correlation value as the probability that the pop-window is the advertisement pop-window.
4. The method of claim 3, wherein the obtaining the reference correlation value between the at least two reference advertisement pops comprises:
acquiring an application corresponding to each of the at least two reference advertisement pop-windows to obtain at least two applications;
determining an association value between the at least two applications;
using the association value as a reference association value between the at least two reference advertisement pops.
5. The method of any one of claims 1-4, further comprising:
determining whether the pop window is an advertisement blocking pop window;
and if the popup is an advertisement blocking popup, executing the step of refusing to respond to the popup event.
6. The method of claim 5, wherein the determining whether the pop is an blocked advertisement pop comprises:
acquiring the interception times of the process;
acquiring the window content of the popup window;
acquiring an interception value according to the interception times and the window content;
and if the interception value is larger than a second threshold value, determining the pop-up window as an advertisement interception pop-up window.
7. The method of claim 5 or 6, further comprising:
if the popup window is not an intercepted advertisement popup window, displaying selection prompt information corresponding to the popup window event;
and if a display rejection instruction aiming at the selection prompt information is received, executing the step of rejecting to respond to the popup event.
8. An advertisement pop-up window intercepting apparatus, comprising:
the processing unit is used for acquiring a process corresponding to the popup event if the fact that a target hook function bound with the popup event is called is detected; acquiring at least one attribute characteristic of a popup corresponding to the popup event according to the process; determining whether the pop-up window is an advertisement pop-up window according to the at least one attribute characteristic;
and the execution unit is used for refusing to respond to the popup event if the popup is an advertisement popup.
9. An electronic device, comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method of any one of claims 1-7.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any one of claims 1-7.
CN202010503928.7A 2020-06-04 2020-06-04 Advertisement popup intercepting method and device, electronic equipment and storage medium Pending CN111753191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010503928.7A CN111753191A (en) 2020-06-04 2020-06-04 Advertisement popup intercepting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010503928.7A CN111753191A (en) 2020-06-04 2020-06-04 Advertisement popup intercepting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111753191A true CN111753191A (en) 2020-10-09

Family

ID=72674811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010503928.7A Pending CN111753191A (en) 2020-06-04 2020-06-04 Advertisement popup intercepting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111753191A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282361A (en) * 2021-04-21 2021-08-20 荣耀终端有限公司 Window processing method and electronic equipment
CN115828227A (en) * 2023-01-05 2023-03-21 荣耀终端有限公司 Method for identifying advertisement popup, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060075359A1 (en) * 2004-10-06 2006-04-06 International Business Machines Corporation System and method for managing a floating window
CN106126217A (en) * 2016-06-17 2016-11-16 武汉深之度科技有限公司 A kind of apply the information getting method of window, device and calculating equipment
CN106649417A (en) * 2015-11-04 2017-05-10 珠海市君天电子科技有限公司 Window interception method and device
CN106776610A (en) * 2015-11-19 2017-05-31 珠海市君天电子科技有限公司 Advertisement popup intercepting method and device
US20170371888A1 (en) * 2014-12-27 2017-12-28 Beijing Qihoo Technology Company Limited Method for advertisement interception in dual-kernel browser and browser apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060075359A1 (en) * 2004-10-06 2006-04-06 International Business Machines Corporation System and method for managing a floating window
US20170371888A1 (en) * 2014-12-27 2017-12-28 Beijing Qihoo Technology Company Limited Method for advertisement interception in dual-kernel browser and browser apparatus
CN106649417A (en) * 2015-11-04 2017-05-10 珠海市君天电子科技有限公司 Window interception method and device
CN106776610A (en) * 2015-11-19 2017-05-31 珠海市君天电子科技有限公司 Advertisement popup intercepting method and device
CN106126217A (en) * 2016-06-17 2016-11-16 武汉深之度科技有限公司 A kind of apply the information getting method of window, device and calculating equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282361A (en) * 2021-04-21 2021-08-20 荣耀终端有限公司 Window processing method and electronic equipment
CN113282361B (en) * 2021-04-21 2022-09-23 荣耀终端有限公司 Window processing method and electronic equipment
CN115828227A (en) * 2023-01-05 2023-03-21 荣耀终端有限公司 Method for identifying advertisement popup, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN111753192A (en) Advertisement popup intercepting method and device, electronic equipment and storage medium
CN103077344A (en) Terminal and method for providing risk of application using the same
CN106295333B (en) method and system for detecting malicious code
EP3401780A1 (en) Notification message processing method and apparatus
US20150026813A1 (en) Method and system for detecting network link
CN112149032B (en) Advertisement interception method and device
CN107809762B (en) Security risk control method for card-raising identification by utilizing big data and equipment fingerprints
CN106776610B (en) Advertisement popup intercepting method and device
CN110401660B (en) False flow identification method and device, processing equipment and storage medium
CN111753191A (en) Advertisement popup intercepting method and device, electronic equipment and storage medium
CN109918678B (en) Method and device for identifying field meaning
CN111596971B (en) Application cleaning method and device, storage medium and electronic equipment
CN110557466A (en) data processing method and device, electronic equipment and storage medium
KR101490442B1 (en) Method and system for cutting malicious message in mobile phone, and mobile phone implementing the same
Khusro et al. There is no such thing as free Lunch: An Investigation of Bloatware Effects on Smart Devices
CN110611675A (en) Vector magnitude detection rule generation method and device, electronic equipment and storage medium
CN115544558A (en) Sensitive information detection method and device, computer equipment and storage medium
CN115080955A (en) Target data filtering method and device, electronic equipment and storage medium
CN113360916A (en) Risk detection method, device, equipment and medium for application programming interface
CN113360354A (en) User operation behavior monitoring method, device, equipment and readable storage medium
CN112613974A (en) Risk early warning method, device, equipment and readable storage medium
CN112464103A (en) Service processing method, device, server and storage medium
CN111338960A (en) Buried point data acquisition method and device
CN111786934A (en) Method and device for detecting normal user of client
CN110096874A (en) Program page security alarm method, apparatus, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201009