CN112149032B - Advertisement interception method and device - Google Patents
Advertisement interception method and device Download PDFInfo
- Publication number
- CN112149032B CN112149032B CN202010952062.8A CN202010952062A CN112149032B CN 112149032 B CN112149032 B CN 112149032B CN 202010952062 A CN202010952062 A CN 202010952062A CN 112149032 B CN112149032 B CN 112149032B
- Authority
- CN
- China
- Prior art keywords
- interception
- advertisement
- rule
- rules
- client
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24564—Applying rules; Deductive queries
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application discloses an advertisement interception method and device, which are used for solving the problems of low advertisement interception accuracy and low advertisement interception efficiency in the prior art. The method comprises the following steps: responding to a first operation of opening a browser at a client, and acquiring an advertisement interception rule base which corresponds to the client and comprises a plurality of advertisement interception rules; dividing a plurality of advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode; when a first webpage is accessed through a browser, respectively matching each webpage resource in the first webpage with each specified type interception rule according to the priority corresponding to each specified type interception rule to obtain a matching result; if the matching result is that at least one target webpage resource is matched with the specified class interception rule, determining that the at least one target webpage resource belongs to the advertisement, and intercepting the at least one target webpage resource in the first webpage. According to the technical scheme, the interception efficiency and accuracy of advertisements are effectively improved.
Description
Technical Field
The application relates to the technical field of Internet, in particular to an advertisement interception method and device.
Background
In the prior art, two advertisement interception schemes are generally implemented in a browser, one of which is to use an advertisement interception rule only comprising a plurality of domain name character strings in the browser, and when judging whether a certain web resource is an advertisement, only need to judge whether the URL (Uniform Resource Location, uniform resource locator) of the web resource is matched with the domain name character strings in the advertisement interception rule. Because the advertisement interception rule in this way is too simple, only advertisements with domain name strings in the rule can be intercepted, but other types of advertisements cannot be intercepted, so that the interception accuracy of the advertisements is lower.
The other is to write advertisement interception rules according to rule specifications formulated by Adblock plus (an advertisement interception plug-in), the advertisement interception rules in the way are complex and various, although the accuracy of advertisement interception is improved to a certain extent, the complex and various rules inevitably occupy too high memory, and the matching workload in the advertisement interception process is various, so that the advertisement interception efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide an advertisement interception method and device, which are used for solving the problems of low advertisement interception accuracy and low advertisement interception efficiency in the prior art.
In order to solve the technical problems, the embodiment of the application is realized as follows:
in one aspect, an embodiment of the present application provides an advertisement interception method, applied to a client, including:
responding to a first operation of opening a browser at a client, and acquiring an advertisement interception rule base corresponding to the client; the advertisement interception rule base comprises a plurality of advertisement interception rules;
dividing the advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode; the specified class interception rules comprise at least one of pure domain name class interception rules, popup class interception rules and fourth class interception rules;
when a first webpage is accessed through the browser, respectively matching each webpage resource in the first webpage with each specified class interception rule according to the priority corresponding to each specified class interception rule to obtain a matching result;
if the matching result is that at least one target webpage resource is matched with the specified class interception rule, determining that the at least one target webpage resource belongs to an advertisement; and intercepting the at least one target webpage resource in the first webpage.
In another aspect, an embodiment of the present application provides an advertisement interception apparatus, including:
the acquisition module is used for responding to a first operation of opening the browser at the client and acquiring an advertisement interception rule base corresponding to the client; the advertisement interception rule base comprises a plurality of advertisement interception rules;
the classification module is used for dividing the advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode; the specified class interception rules comprise at least one of pure domain name class interception rules, popup class interception rules and fourth class interception rules;
the matching module is used for respectively matching each webpage resource in the first webpage with each specified class interception rule according to the priority corresponding to each specified class interception rule when the first webpage is accessed through the browser, so as to obtain a matching result;
the determining and intercepting module is used for determining that at least one target webpage resource belongs to an advertisement if the matching result is that the at least one target webpage resource is matched with the specified class intercepting rule; and intercepting the at least one target webpage resource in the first webpage.
In still another aspect, an embodiment of the present application provides an advertisement interception apparatus, including a processor and a memory electrically connected to the processor, where the memory stores a computer program, and the processor is configured to call and execute the computer program from the memory to implement the advertisement interception method described above.
In yet another aspect, an embodiment of the present application provides a storage medium storing a computer program executable by a processor to implement the above-described advertisement interception method.
By adopting the technical scheme of the embodiment of the application, when the browser is opened by the client, the advertisement interception rule base which corresponds to the client and comprises a plurality of advertisement interception rules is obtained, and the advertisement interception rules are divided into a plurality of specified class interception rules with different priorities according to a preset classification mode, so that the advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. When the first webpage is accessed through the browser, according to the priorities corresponding to the pre-classified interception rules of the specified classes, matching the webpage resources in the first webpage with the interception rules of the specified classes, and when the matching result shows that at least one target webpage resource is matched with the interception rules of the specified classes, determining that the target webpage resource belongs to an advertisement and intercepting the target webpage resource in the first webpage. Therefore, when determining whether each webpage resource belongs to an advertisement, the technical scheme does not need to match each webpage resource with each advertisement interception rule in the advertisement interception rule base one by one, but matches each webpage resource in the webpage with each appointed interception resource by taking the rule type as a dimension, so that the rule matching workload is effectively reduced, the memory space occupied by the advertisement interception process is reduced, and the advertisement interception efficiency and accuracy are improved. In addition, when the rule type is used as the dimension to match the webpage resources with the specified type interception resources, the priority order corresponding to the specified type interception rules is based on the matching, so that the specified type interception rules with high priority are necessarily matched with one another, advertisements matched with the specified type interception rules with high priority can be intercepted quickly, a large amount of matching workload is saved, and the advertisement interception efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart diagram of an advertisement interception method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of an advertisement interception method according to another embodiment of the present application;
FIG. 3 is a schematic block diagram of an advertisement blocking apparatus in accordance with an embodiment of the present application;
fig. 4 is a schematic hardware structure of an advertisement blocking apparatus according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides an advertisement interception method and device, which are used for solving the problems of low advertisement interception accuracy and low advertisement interception efficiency in the prior art.
In order to make the technical solution of the present application better understood by those skilled in the art, the technical solution of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, shall fall within the scope of the application.
The advertisement interception method provided by the embodiment of the application can be applied to a specific browser developed for realizing advertisement interception and can also be applied to a third party application or a third party browser which needs to be provided with advertisement interception service on a client. Before the advertisement interception is performed for the third party application or the third party browser, a user is required to perform an authorization operation on the third party application or the third party browser according to the advertisement interception requirement, so that the client can intercept the advertisement in the third party application or the third party browser.
The advertisement interception method provided by the embodiment of the present application is described in detail below by taking a specific browser (hereinafter referred to as a browser) as an example.
Fig. 1 is a schematic flow chart of an advertisement interception method according to an embodiment of the present application, and as shown in fig. 1, the method is applied to a client, and includes:
s102, responding to a first operation of opening a browser at a client, and acquiring an advertisement interception rule base corresponding to the client, wherein the advertisement interception rule base comprises a plurality of advertisement interception rules.
If the device where the client is located has a touch panel, the first operation of opening the browser at the client may be: a click operation, a long press operation, a slide operation, or the like of the browser icon is performed on the touch panel. If the touch panel does not exist on the device of the client, the first operation of opening the browser at the client may be: clicking operation or long-press operation on the browser icon or the like is performed using a predetermined physical key or mouse.
S104, dividing the advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode.
The specified class interception rules comprise a pure domain name class interception rule, a popup class interception rule, a fourth class interception rule and the like.
In this embodiment, the fourth type of interception rule is another type of interception rule except for a pure domain name type interception rule, a domain name type interception rule and a popup type interception rule in the plurality of advertisement interception rules.
S106, when the first webpage is accessed through the browser, matching each webpage resource in the first webpage with each specified class interception rule according to the priority corresponding to each specified class interception rule, and obtaining a matching result.
The priority may be used to characterize the matching order of the specified class intercept rules of different classes, e.g., a specified class intercept rule with a high priority may be preferentially matched, while a specified class intercept rule with a low priority matches more later. Optionally, the priorities corresponding to the specified class interception rules are as follows in order from high to low: pure domain name class interception rules, popup class interception rules and fourth class interception rules. Then when matching each web page resource with each specified class interception rule, the matching can be performed sequentially according to the priority order.
S108, if the matching result is that at least one target webpage resource is matched with the specified class interception rule, determining that the target webpage resource belongs to the advertisement; and intercepting the target webpage resource in the first webpage.
In this embodiment, for a plurality of web page resources in the first web page, including at least one target web page resource belonging to the advertisement and other web page resources not belonging to the advertisement, only the at least one target web page resource belonging to the advertisement may be intercepted, but the other web page resources not belonging to the advertisement may not be intercepted, so that the user may still normally access the other web page resources not belonging to the advertisement in the first web page, thereby avoiding the situation that the user cannot normally access the web page after the whole web page is intercepted.
By adopting the technical scheme of the embodiment of the application, when the browser is opened by the client, the advertisement interception rule base which corresponds to the client and comprises a plurality of advertisement interception rules is obtained, and the advertisement interception rules are divided into a plurality of specified class interception rules with different priorities according to a preset classification mode, so that the advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. When the first webpage is accessed through the browser, according to the priorities corresponding to the pre-classified interception rules of the specified classes, matching the webpage resources in the first webpage with the interception rules of the specified classes, and when the matching result shows that at least one target webpage resource is matched with the interception rules of the specified classes, determining that the target webpage resource belongs to an advertisement and intercepting the target webpage resource in the first webpage. Therefore, when determining whether each webpage resource belongs to an advertisement, the technical scheme does not need to match each webpage resource with each advertisement interception rule in the advertisement interception rule base one by one, but matches each webpage resource in the webpage with each appointed interception resource by taking the rule type as a dimension, so that the rule matching workload is effectively reduced, the memory space occupied by the advertisement interception process is reduced, and the advertisement interception efficiency and accuracy are improved. In addition, when the rule type is used as the dimension to match the webpage resources with the specified type interception resources, the priority order corresponding to the specified type interception rules is based on the matching, so that the specified type interception rules with high priority are necessarily matched with one another, advertisements matched with the specified type interception rules with high priority can be intercepted quickly, a large amount of matching workload is saved, and the advertisement interception efficiency is improved.
In the above embodiment, the advertisement interception rule base corresponding to the client may be stored in the network side, or may be downloaded from the network side to the local area in advance for storage. Based on different storage modes of the advertisement interception rule base, the mode of acquiring the advertisement interception rule base corresponding to the client is also different.
In one embodiment, when the advertisement interception rule base corresponding to the client is obtained, whether the advertisement interception rule base is stored in the first specified directory local to the client can be judged.
The first specified directory local to the client may be a directory in a browser on the client, such as a file (folder) directory. Alternatively, the advertisement interception rule base may be stored in the directory files/ad_rule.
If the advertisement interception rule base is stored in the first appointed directory of the client, the advertisement interception rule base stored in the first appointed directory is obtained.
If the advertisement interception rule base is not stored under the first specified directory of the local client, the advertisement interception rule base is obtained from the network side, or a preset advertisement interception rule base carried in an installation package of the browser is obtained from the second specified directory of the local client. Wherein the second specified directory local to the client may be a directory in an installation package of the browser, such as an assets directory. The preset advertisement interception rule base is equivalent to a bottom protection interception rule base, in general, the client side can acquire the advertisement interception rule base from a network side or a first appointed directory local to the client side as much as possible, and in a small number of cases, the client side can acquire the preset advertisement interception rule base from a second appointed directory local to the client side.
In the embodiment, the advertisement interception rule base corresponding to the client is acquired in a plurality of modes, so that stable realization of advertisement interception is ensured, the problem that advertisement interception cannot be performed because the advertisement interception rule base is not acquired is avoided, and the execution rate of advertisement interception is improved.
In the above embodiment, if the advertisement interception rule base obtained from the first specified directory meets the preset condition, the advertisement interception rule base is re-obtained from the network side. The preset conditions comprise: the advertisement interception rule base is not matched with the language used by the client, the version of the advertisement interception rule base is lower than the preset version, and the like.
The language used by the client may include chinese simplified, chinese traditional, english, etc. The fact that the advertisement interception rule base is not matched with the language used by the client means that the language corresponding to the advertisement interception rule base is different from the language used by the client.
For example, if the language corresponding to the advertisement interception rule base is a chinese simplified form and the language used by the client is a chinese traditional form, it may be determined that the language corresponding to the advertisement interception rule base does not match the language used by the client, that is, the advertisement interception rule base obtained from the first specified directory satisfies the preset condition.
In this embodiment, when the locally acquired advertisement interception rule base of the client is not matched with the language used by the client or the version is too low, the advertisement interception rule base can be acquired again from the network side, which is favorable for ensuring the matching degree between the advertisement interception rule base and the current operation environment of the client, thereby improving the accuracy of advertisement interception.
In one embodiment, the advertisement interception rule base may be retrieved from the network side according to the following steps A1-A2:
and A1, acquiring a target resource address of the advertisement interception rule base corresponding to the first language according to the first language used by the client and the corresponding relation between each language and the resource address of the advertisement interception rule base.
The corresponding relation between the languages and the resource addresses of the advertisement interception rule base can be stored in the network side, or can be downloaded to the client side from the network side in advance and stored. The resource address of the advertisement interception rule base may be a URL address of the advertisement interception rule base.
The advertisement interception rule base corresponding to each language is stored in the network side, and the client can determine the URL address of the advertisement interception rule base corresponding to the first language according to the first language currently used, so as to obtain the advertisement interception rule base corresponding to the URL address from the network side.
For example, the language used by the client is English, and the target resource address of the advertisement interception rule base corresponding to the obtained English can be http:// abc.com/ad_en.txt according to the corresponding relation between each language and the resource address of the advertisement interception rule base.
And A2, sending an acquisition request of the latest version of advertisement interception rule base to the network side so that the network side sends the latest version of advertisement interception rule base corresponding to the target resource address to the client side. Wherein the fetch request includes the target resource address.
In the embodiment, the network side returns the corresponding advertisement interception rule base by sending the determined resource address of the advertisement interception rule base to the network side, so that the acquisition efficiency and accuracy of the advertisement interception rule base are improved.
In one embodiment, when the advertisement interception rule base corresponding to the client is obtained, the advertisement interception rule base corresponding to the client can be directly obtained from the network side according to the language used by the client.
In this embodiment, by directly obtaining the advertisement interception rule base corresponding to the client from the network side, the advertisement interception rule base locally stored by the client does not need to be compared, so that the speed of obtaining the advertisement interception rule base is increased, the matching degree of the advertisement interception rule base and the current operating environment of the client is ensured, and the effect of improving the accuracy and efficiency of advertisement interception is achieved.
After the advertisement interception rule base corresponding to the client is obtained, each advertisement interception rule in the advertisement interception rule base can be analyzed.
In one embodiment, if the obtained advertisement interception rule base is a rule formulated by an Adblock plus authority, advertisement element hiding rules in the advertisement interception rule base can be filtered out first, the number of the rules is large, the occupied memory is larger, but the advertisement interception effect is not good, so that the advertisement interception method provided by the embodiment of the application can not consider the advertisement element hiding rules.
The advertisement interception rules in the advertisement interception rule base are generally various rule strings, such as the following two advertisement interception rules "ad_", "js/ads$thord-party". Through the analysis operation, the rule character strings of each advertisement interception rule can be analyzed into rule classes.
In this embodiment, the rule strings in the obtained advertisement interception rule base are parsed into rule classes, so that each rule class is grouped into each specified class interception rule later, and when rules are matched, parsing is not repeated, thereby improving the matching speed. Wherein, can be according to the rule defined by adblock plus to analyze.
For example, the advertisement interception rule "& adnum=" indicates that as long as & adnum= "is included in the web resource URL, the web resource is considered to be matched with the advertisement interception rule, that is, the web resource belongs to the advertisement, and accordingly, only & adnum= is included in the parsed rule class.
For another example, the advertisement interception rule "& adventiservice= & gt domain= -be.gl| -cpashka. Ru" indicates that the web page resource URL contains & adventiservice=, and the domain name of the current web page cannot be be.gl.gl and cpashka. Ru, and at this time, the parsed rule class contains not only & adventiservice=, but also a domain name list that the advertisement interception rule acts on.
In one embodiment, the class name of the parsed rule class may be AdBlockEntry, which defines and importance attributes as:
classAdBlockEntry:Serializable{
public:
std is stringfiledRule; the rules in the advertisement interception rules library that filter defined characters (e.g., "$" post character content) in each advertisement interception rule.
std is stringrawrelle; each advertisement interception rule in the advertisement interception rule base.
std is stringdomain; the per domain name, in the pure domain name class interception rules are set.
std: unorded_map < std:: string, domainEntry > domains; a list of domain names for which the advertisement interception rules are active.
int 32_tfags; the/type identifier, flags have 32 bits, each representing a type identifier, such as whether it is a picture, whether it is css (cascades style sheets), whether it is a third party, etc.
WildCardPreparedStringWildCardStr; a// wildcard.
std is stringsetekey; the siteKey rule is used when there is a siteKey rule in the// adblock rule.
}
For example, for a rule string of advertisement interception rules: js/ads $threrd-party, after resolving AdBlcokEntry, each attribute value: the filedRule is js/ads, the rawRule is js/ads $thred-part, and the int32_tflag is thred-part.
After analyzing each advertisement interception rule in the advertisement interception rule library, dividing the advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode.
In one embodiment, each advertisement interception rule corresponds to a respective rule string. When a plurality of advertisement interception rules are divided into a plurality of specified class interception rules with different priorities according to a preset classification mode, rule character strings corresponding to the advertisement interception rules respectively can be determined, and the rule character strings are matched with unique characteristic characters specific to various specified class interception rules.
If the rule character string contains one of the unique characteristic characters, the advertisement interception rule corresponding to the rule character string is determined to belong to the appointed class interception rule corresponding to the unique characteristic character. If the rule character string does not contain any unique characteristic character, determining that the advertisement interception rule corresponding to the rule character string belongs to a fourth class interception rule.
The unique characteristic characters are used for distinguishing corresponding specified class interception rules from other specified class interception rules, and can characterize unique characteristics specific to each specified class interception rule.
According to the above embodiment, it can be known that after the advertisement interception rule base corresponding to the client is obtained, the analysis operation is performed on each advertisement interception rule in the advertisement interception rule base, so in this embodiment, whether each advertisement interception rule includes a unique feature character in a specific class of interception rules can be determined directly according to each attribute value in the analyzed adblcok entry.
The following describes in detail the pure domain name class interception rules, and bullet window class interception rules, and the unique feature characters corresponding to each.
The pure domain name class interception rules are a subset of domain name class interception rules. The pure domain name class interception rules start with "||". Alternatively, the unique characteristic character specific to the pure domain name class interception rule may be "|". For example, advertisement interception rules img.3sjt.com are pure domain name class interception rules.
The domain name class interception rules start with "|" and include "/other/", "/name/" and like characters after the domain name. Alternatively, the unique feature characters specific to the domain name class interception rules may be "|| …/other/", "|| …/name/", and the like. For example, advertisement interception rules "||bda.com/other/", "|bda.com/name/plus show.js" are domain name class interception rules.
The unique characteristic character specific to the popup class interception rule may be "$popup". For example, advertisement interception rule ".189.Gd ζ. Htmlp= $popup" is a popup class interception rule.
The fourth type of interception rules are advertisement interception rules except for a pure domain name class interception rule, a domain name class interception rule and a popup window class interception rule in the advertisement interception rule base.
Optionally, for each specified class of interception rules, an exception rule may be further subdivided, and the unique feature character specific to the exception rule may be "@". The domain name class interception rule comprises a domain name class exception rule, the bullet window class interception rule comprises a bullet window class exception rule, and the fourth class interception rule comprises a fourth class exception rule.
In the embodiment, the classification of each advertisement interception rule is simply and quickly realized by matching the rule character string of each advertisement interception rule with unique characteristic characters specific to each specific class interception rule so as to determine the class of the specific class interception rule to which each advertisement interception rule belongs, and a basis is provided for matching web page resources with each specific class interception rule for realizing advertisement interception subsequently.
In one embodiment, after the plurality of advertisement interception rules are divided into a plurality of specified class interception rules with different priorities according to a preset classification mode, the number of rules corresponding to each specified class interception rule may be determined, and each specified class interception rule may be stored based on the number of rules.
If the number of rules corresponding to the specified class interception rules is greater than or equal to a preset threshold, storing the specified class interception rules in a memory of the client in a hash mapping mode. The hash mapping key is identification information of a specified class interception rule, and the value is the specified class interception rule. Wherein, the identification information of the specified class interception rule may be a character of a predetermined length and/or a predetermined position in the specified class interception rule, such as 8-bit characters that are consecutive from the first character.
For example, if the rule number of the domain name class interception rule is greater than a preset threshold, the domain name class interception rule "|bda.com/name/plushow.js" is stored in the memory of the client in a hash mapping manner, and the hash mapping key may be an 8-bit character "bda.com" which is consecutive from the first character in the rule, and the value is "|bda.com/name/plushow.js.
For another example, if the number of rules of the popup class interception rule is greater than the preset threshold, the popup class interception rule ".189.gd = $popup" is stored in the memory of the client in a hash mapping manner, and the hash mapping key is any continuous 8-bit character in the rule, such as ".189.gd #," -89.gd # ", and the like, and the value is the rule". 189.gd #,.htmlp= $popup ".
In order to reduce data collision in the hash map, continuous 8-bit characters with different character positions can be selected as keys of the hash map according to similar bullet window interception rules. For example, for the popup class interception rules ".189. Gd.
And if the number of the rules corresponding to the specified class interception rules is smaller than a preset threshold, ordering the corresponding specified class interception rules according to a preset ordering mode, and storing the ordered specified class interception rules in a memory of the client in a list form.
The preset sorting mode may include initial sorting, regular time sorting, etc. For example, if the order is in the first letter order, the order of the interception rules of each specified class may be ordered according to the first letters of the interception rules of each specified class from a-z, and the ordered interception rules of each specified class may be stored in the memory of the client in the form of a list. For another example, if the ordering is performed according to the rule set time ordering mode, the specified class interception rules may be ordered according to the set time corresponding to each specified class interception rule, and the ordered specified class interception rules may be stored in the memory of the client in a list form.
Alternatively, the pure domain name class interception rules are stored in the memory of the client in the form of std:: unorded_set < std:: string > domainOnlyList _.
Optionally, the domain name class interception rule is stored in the memory of the client in the form of adblockmapma ai domainwithruleslist.
After the analysis operation is carried out on each advertisement interception rule in the advertisement interception rule library, according to the appointed class interception rule category to which each advertisement interception rule belongs, domain name class interception rules with a large number of rules can be stored in a memory in a Hash map mode, and the time complexity of the Hash map is O (1), so that the speed of inquiring the interception rules can be increased when each webpage resource is matched with each appointed class interception rule respectively, the quick matching effect is realized, and the advertisement interception efficiency is further improved.
For example, for domain name class interception rules "||bda/other/", "|bda/com/name/plus show. Js", the following forms can be stored in the memory of the client:
Map<bkda.com,
List<AdBlockEntry("||bkda.com/other/"),
AdBlockEntry("||bkda.com/some/plusshow.js")>
"bkda.com" is a hash mapped key, and "||bkda.com/other/", "||bkda.com/name/plus show.js" is a hash mapped value.
Optionally, the bullet window class interception rule is stored in the memory of the client in the form of std: vector < AdBlockEntry > main PopupList.
Optionally, the fourth type of interception rule is stored in the memory of the client in any of the existing common general list forms.
In the embodiment, by analyzing the rule number of each specified type of interception rule, different strategies are adopted for the storage form of each specified type of interception rule in the memory, so that the occupation of the memory of the client in the advertisement interception process is considered, the balance between the interception efficiency of advertisements and the occupation of the memory of the client is realized, the influence on the performance of the client device when the advertisement interception is executed is avoided, and the use experience of a user is improved.
In one embodiment, the priorities corresponding to the specified class interception rules are sequentially from high to low: pure domain name class interception rules, popup class interception rules and fourth class interception rules.
The priority corresponding to each specified class interception rule can be comprehensively set according to the rule number of each specified class interception rule, the storage form in the memory of the client, advertisement classes matched with each specified class interception rule and other factors.
For example, the highest priority is set for the pure domain name class interception rule with a smaller rule number, so that each web page resource in the web page can be matched with the pure domain name class interception rule respectively when the web page is accessed through the browser later. Because the number of the rules of the pure domain name class interception rules is small, no matter whether each web page resource in the web page can be matched with the pure domain name class interception rules or not, more matching time is not occupied.
For another example, the second priority is set for the domain name class interception rules which have a large number of rules and are stored in the memory of the client in a hash mapping manner, so that when each web page resource in the web page is not matched with the pure domain name class interception rules, the web page resource can be further matched with the domain name class interception rules respectively. Because the domain name class interception rules are stored in the memory of the client in a hash mapping hashmap mode, and the time complexity of the hashmap is O (1), the matching speed is high, and no matter whether each webpage resource in the webpage can be matched with the domain name class interception rules, more matching time is not occupied.
For another example, the third priority and the fourth priority are set for a popup window type interception rule and a fourth type interception rule which are large in rule number and stored in a memory of the client in a list form.
When each web resource in the first web page is matched with each specified type of interception rule according to the priority respectively corresponding to each specified type of interception rule, the web resource can be matched with the pure domain name type interception rule for any web resource in the first web page, if the web resource is not matched with the pure domain name type interception rule, the web resource is further matched with the domain name type interception rule, if the web resource is not matched with the domain name type interception rule, the web resource is further matched with the popup window type interception rule, if the web resource is not matched with the popup window type interception rule, the web resource is further matched with the fourth type interception rule, and if the web resource is not matched with the fourth type interception rule, the web resource in the first web page is determined to be not matched with the specified type interception rule.
If the matching result is that the web page resources in the first web page are not matched with the specified class interception rules, it can be determined that the web page resources in the first web page do not belong to advertisements and the web page resources in the first web page are not intercepted.
For example, for one web page resource in the first web page: and (3) matching the webpage resource with a pure domain name class interception rule to determine that the webpage resource is matched with the pure domain name class interception rule I img.3sjt.com, and determining that the matching result is that the webpage resource in the first webpage is matched with the pure domain name class interception rule.
For another example, one web resource URL on a web page accessed through a browser is sohu.com/ads.jsp, the domain name sohu.com of the web resource URL is matched with a pure domain name class interception rule, and if the pure domain name interception rule contains the domain name sohu.com, the web resource is considered to belong to an advertisement. For example, if the domain name of the web resource URL is m.sohu.com and the pure domain name class interception rule is sohu.com, the pure domain name interception rule is considered to include the domain name of the web resource, that is, the web resource is matched with the pure domain name class interception rule.
In the above example, if the pure domain name class interception rules are ordered according to the order of the initial letters from a-z, and the ordered pure domain name class interception rules are stored in the memory of the client in the form of a list, when the web page resource is matched with the pure domain name class interception rules, the position of the corresponding pure domain name class interception rules in the list can be determined according to the initial letters of the web page resource, one or more pure domain name class interception rules corresponding to the web page resource can be further determined, the web page resource is matched with each corresponding pure domain name class interception rule one by one, and whether the pure domain name class interception rules matched with the web page resource exist or not is determined. For example, the web resource is sohu.com/ads.jsp, the location area where "s" is located is searched in the storage list, the pure domain name class interception rule containing "sohu.com" is further determined, the web resource is matched with the corresponding pure domain name class interception rules one by one, and whether the pure domain name class interception rule matched with the web resource exists or not is determined.
For another example, for one web page resource in the first web page: http:// bda.com/other/ads_ html, matching the web page resource with a pure domain name class interception rule, determining that the web page resource is not matched with the pure domain name class interception rule, further matching the web page resource with the domain name class interception rule, determining that the web page resource is matched with the domain name class interception rule.
In this embodiment, the domain name class interception rule is stored locally on the client in a hash mapping manner. When the web page resource is matched with the domain name class interception rule, the corresponding value can be queried from the hashmap according to any continuous 8-bit character (the key of the hashmap) of the web page resource, the web page resource is further matched with each corresponding value one by one, and whether the domain name class interception rule matched with the web page resource exists or not is determined. For example, if the web page resource is http:// bda.com/other/ads_ html, and if the hashmap key is "bda.com", the corresponding value queried from the hashmap is "bda.com/other/ads_ html", "bda.com/name/ads_ html", the web page resource is matched with each corresponding value one by one, and whether a domain name class interception rule matched with the web page resource exists is determined.
If the web resource is determined to be not matched with the domain name class interception rule, the web resource is further matched with the popup class interception rule, if the web resource is determined to be not matched with the popup class interception rule, the web resource is further matched with the fourth class interception rule, and if the web resource is determined to be matched with the fourth class interception rule ads_.html, the matching result is determined to be that the web resource in the first web page is matched with the fourth class interception rule. .
In this embodiment, the popup class interception rule or the fourth class interception rule is stored locally in the client in a list form. When the webpage resource is matched with the popup interception rule or the fourth interception rule, the webpage resource can be matched with each rule in a storage list corresponding to the popup interception rule or the fourth interception rule one by one so as to determine whether the popup interception rule or the fourth interception rule matched with the webpage resource exists.
In addition, in order to improve the matching speed and thus improve the interception efficiency of advertisements, the popup type interception rules and the fourth type interception rules can be respectively stored in the memory of the client in the form of hashmap. Correspondingly, when matching the webpage resource with the popup window type interception rule or the fourth type interception rule, the corresponding value can be queried from the hashmap according to any continuous 8-bit character (the key of the hashmap) of the webpage resource, the webpage resource is further matched with each corresponding value one by one, and whether the popup window type interception rule or the fourth type interception rule matched with the webpage resource exists or not is determined.
In this embodiment, by storing the popup type interception rules and the fourth type interception rules in the memory of the client in the form of hashmap, when matching is performed subsequently, whether corresponding values exist or not can be searched from the hashmap directly according to characters with set lengths (e.g., 8 bits) in the webpage resources, and then the webpage resources and the corresponding values are matched one by one.
In one embodiment, if the matching result is that there is at least one target web page resource matching with one of the specified class interception rules, the at least one target web page resource may be further matched with an exception rule in the specified class interception rules, and if the at least one target web page resource does not match with the exception rule, it is determined that the at least one web page resource belongs to an advertisement, and the at least one web page resource is intercepted; if the at least one target web page resource matches the exception rule, determining that the at least one web page resource does not belong to the advertisement and not intercepting the at least one web page resource.
In the embodiment, by respectively matching each web page resource in the first web page with each specified type interception rule according to the priority corresponding to each specified type interception rule, a matching result is obtained, and each web page resource in the web page is not required to be matched with the disordered advertisement interception rules in the advertisement interception rule base one by one, so that the interception efficiency of advertisements is effectively improved.
In one embodiment, for a third party application or a third party browser that needs to be provided with an advertisement blocking service on a client, before a first operation of opening the browser at the client is responded to obtain an advertisement blocking rule base corresponding to the client, an authorization operation for blocking advertisements for the third party application or the third party browser may be received in advance, so that the client has permission for blocking advertisements for the third party application or the third party browser.
Judging whether the client side has the authority of intercepting advertisements of the third party application or the third party browser or not when the client side opens the third party application or the third party browser, acquiring an advertisement interception rule base corresponding to the client side when the client side is determined to have the authority of intercepting advertisements of the third party application or the third party browser, and further executing each operation in S104-S108.
In this embodiment, by receiving the authorization operation for the third party application or the third party browser to perform advertisement interception in advance, the client can perform advertisement interception on the third party application or the third party browser, so that an application scene of an advertisement interception method is optimized, the advertisement interception method can act on more applications or browsers, not just a specific browser, and a use experience sense of the advertisement interception method is improved.
Fig. 2 is a schematic flow chart of an advertisement interception method according to an embodiment of the present application, and as shown in fig. 2, the method is applied to a browser developed for implementing advertisement interception on a client, and includes:
s201, responding to a first operation of opening a browser at a client, and acquiring an advertisement interception rule base corresponding to the client.
In this step, the specific manner of obtaining the advertisement interception rule base is described in detail in the above embodiment, and will not be described here again.
S202, determining rule character strings corresponding to all advertisement interception rules in the obtained advertisement interception rule base.
Wherein each advertisement interception rule corresponds to a respective rule string.
S203, judging whether each determined rule character string is matched with unique characteristic characters specific to various specified class interception rules. If yes, executing S204; if not, S205 is performed.
The unique characteristic characters are used for distinguishing corresponding specified class interception rules from other specified class interception rules. The specified class interception rules comprise a pure domain name class interception rule, a popup class interception rule and a fourth class interception rule.
Whether each rule character string is matched with unique characteristic characters specific to each specified class interception rule refers to whether each rule character string contains unique characteristic characters specific to each specified class interception rule. If the rule character string contains unique characteristic characters specific to a specified class interception rule of a certain class, the specified class interception rule corresponding to the rule character string can be considered to be matched with the unique characteristic characters. The specific determination method is described in detail in the above embodiments, and will not be repeated here.
S204, determining that the advertisement interception rule corresponding to the rule character string belongs to a specified class interception rule corresponding to the unique characteristic character matched with the advertisement interception rule. After that, S206 is performed.
S205, determining that the advertisement interception rule corresponding to the rule character string belongs to a fourth type interception rule.
S206, determining the priority corresponding to each specified class interception rule according to the rule number corresponding to each specified class interception rule and the storage mode in the memory.
In this embodiment, the storage manner of each specified class interception rule in the memory may be determined based on the corresponding rule number. If the rule number of the specified class interception rules is greater than or equal to a preset threshold, the specified class interception rules are stored in the memory of the client in a hash mapping mode. The hash map key is the identification information of the specified class interception rule, and the value is the specified class interception rule.
If the number of the specified class interception rules is smaller than the preset threshold, the specified class interception rules are stored in the memory of the client in a list form, specifically, the specified class interception rules can be ordered according to a preset ordering mode, and the ordered specified class interception rules are stored in the memory of the client in a list form.
The specific manner of determining the priorities corresponding to the specified class interception rules is described in detail in the above embodiments, and is not described herein again. The priority corresponding to each specified interception rule is as follows from high to low in sequence: pure domain name class interception rules, popup class interception rules and fourth class interception rules.
S207, when a first webpage is accessed through a browser, matching the webpage resource with a pure domain name class interception rule aiming at any webpage resource in the first webpage; if so, executing S212; if not, S208 is performed.
S208, matching the webpage resources with domain name class interception rules; if so, executing S212; if not, S209 is performed.
S209, matching the webpage resources with the popup window type interception rules; if so, executing S212; if not, S210 is performed.
S210, matching the webpage resources with a fourth type interception rule; if so, executing S212; if not, S211 is performed.
The specific matching manners of S207 to S210 are described in detail in the above embodiments, and are not described herein.
S211, determining that the target webpage resource does not belong to the advertisement and does not intercept the target webpage resource in the first webpage.
S212, determining that the target webpage resource belongs to the advertisement and intercepting the target webpage resource in the first webpage.
By adopting the technical scheme of the embodiment of the application, when the browser is opened by the client, the advertisement interception rule base which corresponds to the client and comprises a plurality of advertisement interception rules is obtained, and the advertisement interception rules are divided into a plurality of specified class interception rules with different priorities according to a preset classification mode, so that the advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. When the first webpage is accessed through the browser, according to the priorities corresponding to the pre-classified interception rules of the specified classes, matching the webpage resources in the first webpage with the interception rules of the specified classes, and when the matching result shows that at least one target webpage resource is matched with the interception rules of the specified classes, determining that the target webpage resource belongs to an advertisement and intercepting the target webpage resource in the first webpage. Therefore, when determining whether each webpage resource belongs to an advertisement, the technical scheme does not need to match each webpage resource with each advertisement interception rule in the advertisement interception rule base one by one, but matches each webpage resource in the webpage with each appointed interception resource by taking the rule type as a dimension, so that the rule matching workload is effectively reduced, the memory space occupied by the advertisement interception process is reduced, and the advertisement interception efficiency and accuracy are improved. In addition, when the rule type is used as the dimension to match the webpage resources with the specified type interception resources, the priority order corresponding to the specified type interception rules is based on the matching, so that the specified type interception rules with high priority are necessarily matched with one another, advertisements matched with the specified type interception rules with high priority can be intercepted quickly, a large amount of matching workload is saved, and the advertisement interception efficiency is improved.
In summary, particular embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
The advertisement interception method provided by the embodiment of the application is based on the same thought, and the embodiment of the application also provides an advertisement interception device.
Fig. 3 is a schematic block diagram of an advertisement blocking apparatus according to an embodiment of the present application, as shown in fig. 3, the advertisement blocking apparatus includes:
an obtaining module 310, configured to obtain an advertisement interception rule base corresponding to a client in response to a first operation of opening a browser at the client; the advertisement interception rule base comprises a plurality of advertisement interception rules;
the classification module 320 is configured to divide the plurality of advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification manner; the specified class interception rules comprise at least one of pure domain name class interception rules, popup class interception rules and fourth class interception rules;
The matching module 330 is configured to, when accessing the first web page through the browser, match each web page resource in the first web page with each specified type interception rule according to the priority corresponding to each specified type interception rule, so as to obtain a matching result;
the determining and intercepting module 340 is configured to determine that at least one target web resource belongs to an advertisement if the matching result indicates that the at least one target web resource matches the specified class of intercepting rules; and intercepting at least one target web page resource in the first web page.
In one embodiment, the priorities corresponding to the specified class interception rules are sequentially from high to low: pure domain name class interception rules, popup window class interception rules and fourth class interception rules;
the matching module 330 includes:
the first matching unit is used for matching the web page resources with the pure domain name class interception rules aiming at any web page resource in the first web page;
the second matching unit is used for further matching the webpage resources with the domain name class interception rules if the webpage resources are not matched with the pure domain name class interception rules;
the third matching unit is used for further matching the webpage resources with the popup window type interception rules if the webpage resources are not matched with the domain name type interception rules;
The fourth matching unit is used for further matching the webpage resources with a fourth type interception rule if the webpage resources are not matched with the popup window type interception rule;
and the first determining unit is used for determining that the matching result is that each webpage resource in the first webpage is not matched with the specified class interception rule if the webpage resource is not matched with the fourth class interception rule.
In one embodiment, each advertisement interception rule corresponds to a respective rule string;
the classification module 320 includes:
the second determining unit is used for determining rule character strings corresponding to the advertisement interception rules respectively;
the fifth matching unit is used for matching the rule character strings with unique characteristic characters specific to various specified class interception rules; the unique characteristic characters are used for distinguishing corresponding specified class interception rules from other specified class interception rules;
a third determining unit, configured to determine that, if one of the unique feature characters is included in the rule string, the advertisement interception rule corresponding to the rule string belongs to a specified class interception rule corresponding to the unique feature character;
and the fourth determining unit is used for determining that the advertisement interception rule corresponding to the rule character string belongs to a fourth type interception rule if the rule character string does not contain any unique characteristic character.
In one embodiment, the advertisement blocking apparatus further comprises:
the determining module is used for determining the rule quantity corresponding to each specified class interception rule;
the storage module is used for storing the corresponding specified class interception rules in the memory of the client in a hash mapping mode if the number of the rules is larger than or equal to a preset threshold; wherein, the hash mapping key is the identification information of the specified class interception rule, and the value is the specified class interception rule;
and the ordering and storing module is used for ordering the corresponding specified class interception rules according to a preset ordering mode if the number of the rules is smaller than a preset threshold value, and storing the ordered specified class interception rules in a memory of the client in a list form.
In one embodiment, the acquisition module 310 includes:
the first judging unit is used for judging whether the advertisement interception rule base is stored under a first appointed directory of the local client;
the first acquisition unit is used for acquiring an advertisement interception rule base stored in a first appointed directory if the advertisement interception rule base is the same;
the second acquisition unit is used for acquiring an advertisement interception rule base from the network side if not; or obtaining a preset advertisement interception rule base carried in the installation package of the browser from the second specified directory of the local client.
In one embodiment, the acquisition module 310 further includes:
a third obtaining unit, configured to re-obtain the advertisement interception rule base from the network side if the advertisement interception rule base obtained from the first specified directory meets a preset condition;
wherein the preset conditions include at least one of the following: the advertisement interception rule base is not matched with the language used by the client, and the version of the advertisement interception rule base is lower than the preset version.
In one embodiment, the advertisement blocking apparatus further comprises:
the receiving module is used for receiving the authorization operation of advertisement interception aiming at the browser so that the client side has the authority of advertisement interception aiming at the browser;
the acquisition module 310 includes:
the second judging unit is used for responding to the first operation of opening the browser at the client and judging whether the client has the authority of intercepting the advertisement of the browser or not;
and the fourth acquisition unit is used for acquiring the advertisement interception rule base corresponding to the client if the advertisement interception rule base is the advertisement interception rule base.
By adopting the device provided by the embodiment of the application, when the browser is opened by the client, the advertisement interception rule base corresponding to the client and comprising a plurality of advertisement interception rules is obtained, and the advertisement interception rules are divided into a plurality of specified class interception rules with different priorities according to the preset classification mode, so that the advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. When the first webpage is accessed through the browser, according to the priorities corresponding to the pre-classified interception rules of the specified classes, matching the webpage resources in the first webpage with the interception rules of the specified classes, and when the matching result shows that at least one target webpage resource is matched with the interception rules of the specified classes, determining that the target webpage resource belongs to an advertisement and intercepting the target webpage resource in the first webpage. Therefore, when determining whether each webpage resource belongs to an advertisement, the device does not need to match each webpage resource with each advertisement interception rule in the advertisement interception rule base one by one, but matches each webpage resource in the webpage with each appointed interception resource by taking the rule type as the dimension, so that the rule matching workload is effectively reduced, the memory space occupied by the advertisement interception process is reduced, and the advertisement interception efficiency and accuracy are improved. In addition, when the rule type is used as the dimension to match the webpage resources with the specified type interception resources, the priority order corresponding to the specified type interception rules is based on the matching, so that the specified type interception rules with high priority are necessarily matched with one another, advertisements matched with the specified type interception rules with high priority can be intercepted quickly, a large amount of matching workload is saved, and the advertisement interception efficiency is improved.
It should be understood by those skilled in the art that the advertisement blocking apparatus of fig. 3 can be used to implement the advertisement blocking method described above, and the detailed description thereof should be similar to that of the method described above, so as to avoid complexity, and is not repeated herein.
Based on the same thought, the embodiment of the application also provides advertisement interception equipment, as shown in fig. 4. The advertisement intercepting apparatus may have a relatively large difference due to different configurations or performances, and may include one or more processors 401 and a memory 402, and one or more storage applications or data may be stored in the memory 402. Wherein the memory 402 may be transient storage or persistent storage. The application program stored in memory 402 may include one or more modules (not shown in the figures), each of which may include a series of computer-executable instructions for use in an advertisement interception apparatus. Still further, the processor 401 may be arranged to communicate with the memory 402 to execute a series of computer executable instructions in the memory 402 on the advertisement intercepting apparatus. The advertisement interception apparatus may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input/output interfaces 405, one or more keyboards 406.
In particular, in this embodiment, the advertisement interception apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the advertisement interception apparatus, and the one or more programs configured to be executed by the one or more processors comprise computer executable instructions for:
responding to a first operation of opening a browser at a client, and acquiring an advertisement interception rule base corresponding to the client; the advertisement interception rule base comprises a plurality of advertisement interception rules;
dividing a plurality of advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode; the specified class interception rules comprise at least one of pure domain name class interception rules, popup class interception rules and fourth class interception rules;
when a first webpage is accessed through a browser, respectively matching each webpage resource in the first webpage with each specified type interception rule according to the priority corresponding to each specified type interception rule to obtain a matching result;
If the matching result is that at least one target webpage resource is matched with the specified class interception rule, determining that the at least one target webpage resource belongs to the advertisement; and intercepting at least one target web page resource in the first web page.
Optionally, the priorities corresponding to the specified class interception rules are as follows in order from high to low: pure domain name class interception rules, popup window class interception rules and fourth class interception rules;
the computer executable instructions, when executed, may further cause the processor to:
matching the web page resource with a pure domain name class interception rule aiming at any web page resource in the first web page;
if the webpage resources are not matched with the pure domain name class interception rules, the webpage resources are further matched with the domain name class interception rules;
if the webpage resources are not matched with the domain name class interception rules, the webpage resources are further matched with the popup class interception rules;
if the webpage resources are not matched with the popup window type interception rules, further matching the webpage resources with a fourth type interception rule;
if the web page resources are not matched with the fourth type interception rules, determining that the matching result is that each web page resource in the first web page is not matched with the appointed type interception rules.
Optionally, each advertisement interception rule corresponds to a respective rule string; the computer executable instructions, when executed, may further cause the processor to:
determining rule character strings corresponding to the advertisement interception rules respectively;
matching the rule character strings with unique characteristic characters specific to various specified class interception rules; the unique characteristic characters are used for distinguishing corresponding specified class interception rules from other specified class interception rules;
if the rule character string contains one unique characteristic character, determining that the advertisement interception rule corresponding to the rule character string belongs to the appointed class interception rule corresponding to the unique characteristic character;
if the rule character string does not contain any unique characteristic character, determining that the advertisement interception rule corresponding to the rule character string belongs to a fourth class interception rule.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
determining the number of rules corresponding to each specified class of interception rules;
if the number of the rules is greater than or equal to a preset threshold, storing the corresponding specified class interception rules in a memory of the client in a hash mapping mode; wherein, the hash mapping key is the identification information of the specified class interception rule, and the value is the specified class interception rule;
And if the number of the rules is smaller than a preset threshold, sequencing the corresponding specified class interception rules according to a preset sequencing mode, and storing the sequenced specified class interception rules in a memory of the client in a list form.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
judging whether an advertisement interception rule base is stored under a first appointed directory of the local client;
if yes, acquiring an advertisement interception rule base stored in a first appointed directory;
if not, acquiring an advertisement interception rule base from a network side; or obtaining a preset advertisement interception rule base carried in the installation package of the browser from the second specified directory of the local client.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
if the advertisement interception rule base acquired from the first appointed directory meets the preset condition, acquiring the advertisement interception rule base again from the network side;
wherein the preset conditions include at least one of the following: the advertisement interception rule base is not matched with the language used by the client, and the version of the advertisement interception rule base is lower than the preset version.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
Receiving authorization operation for intercepting advertisements of a browser, so that a client side has the authority for intercepting the advertisements of the browser;
the method for obtaining the advertisement interception rule base corresponding to the client side comprises the following steps of:
responding to a first operation of opening the browser at the client, and judging whether the client has the authority of intercepting the advertisement of the browser;
if yes, the advertisement interception rule base corresponding to the client is obtained.
By adopting the device provided by the embodiment of the application, when the browser is opened by the client, the advertisement interception rule base corresponding to the client and comprising a plurality of advertisement interception rules is obtained, and the advertisement interception rules are divided into a plurality of specified class interception rules with different priorities according to the preset classification mode, so that the advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. When the first webpage is accessed through the browser, according to the priorities corresponding to the pre-classified interception rules of the specified classes, matching the webpage resources in the first webpage with the interception rules of the specified classes, and when the matching result shows that at least one target webpage resource is matched with the interception rules of the specified classes, determining that the target webpage resource belongs to an advertisement and intercepting the target webpage resource in the first webpage. Therefore, when the equipment determines whether each webpage resource belongs to an advertisement, each webpage resource does not need to be matched with each advertisement interception rule in the advertisement interception rule base one by one, but each webpage resource in the webpage is matched with each appointed interception resource by taking the rule type as the dimension, so that the rule matching workload is effectively reduced, the memory space occupied by the advertisement interception process is reduced, and the advertisement interception efficiency and accuracy are improved. In addition, when the rule type is used as the dimension to match the webpage resources with the specified type interception resources, the priority order corresponding to the specified type interception rules is based on the matching, so that the specified type interception rules with high priority are necessarily matched with one another, advertisements matched with the specified type interception rules with high priority can be intercepted quickly, a large amount of matching workload is saved, and the advertisement interception efficiency is improved.
The embodiment of the application also provides a storage medium, which stores one or more computer programs, the one or more computer programs comprise instructions, and the instructions, when executed by advertisement interception equipment comprising a plurality of application programs, can enable the advertisement interception equipment to execute the processes of the advertisement interception method embodiment, and can achieve the same technical effect, so that repetition is avoided, and no redundant description is provided herein.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transshipment) such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.
Claims (9)
1. An advertisement interception method, which is applied to a client, comprises the following steps:
responding to a first operation of opening a browser at a client, and acquiring an advertisement interception rule base corresponding to the client; the advertisement interception rule base comprises a plurality of advertisement interception rules;
dividing the advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode; the specified class interception rules comprise at least one of pure domain name class interception rules, popup class interception rules and fourth class interception rules;
when a first webpage is accessed through the browser, respectively matching each webpage resource in the first webpage with each specified class interception rule according to the priority corresponding to each specified class interception rule to obtain a matching result;
if the matching result is that at least one target webpage resource is matched with the specified class interception rule, determining that the at least one target webpage resource belongs to an advertisement; intercepting the at least one target webpage resource in the first webpage;
the obtaining the advertisement interception rule base corresponding to the client comprises the following steps:
Judging whether the advertisement interception rule base is stored under a first appointed directory of the local client;
if yes, acquiring the advertisement interception rule base stored under the first appointed directory;
if not, acquiring the advertisement interception rule base from a network side; or, obtaining a preset advertisement interception rule base carried in the installation package of the browser from a second appointed directory of the local client;
the re-acquiring the advertisement interception rule base from the network side comprises the following steps:
according to a first language used by a client and the corresponding relation between each language and the resource address of the advertisement interception rule base, acquiring a target resource address of the advertisement interception rule base corresponding to the first language;
and sending an acquisition request of the advertisement interception rule base of the latest version to the network side so that the network side sends the advertisement interception rule base of the latest version corresponding to the target resource address to the client side, wherein the acquisition request comprises the target resource address.
2. The method according to claim 1, wherein the priorities corresponding to the specified class interception rules are in order from high to low: the pure domain name class interception rule, the popup class interception rule and the fourth class interception rule;
The step of respectively matching each web page resource in the first web page with each specified class interception rule according to the priorities respectively corresponding to each specified class interception rule to obtain a matching result, including:
matching the web page resource with the pure domain name class interception rule aiming at any web page resource in the first web page;
if the webpage resource is not matched with the pure domain name class interception rule, further matching the webpage resource with the domain name class interception rule;
if the webpage resource is not matched with the domain name class interception rule, the webpage resource is further matched with the popup window class interception rule;
if the webpage resource is not matched with the popup window type interception rule, further matching the webpage resource with the fourth type interception rule;
and if the webpage resources are not matched with the fourth type interception rules, determining that the matching result is that each webpage resource in the first webpage is not matched with the specified type interception rules.
3. The method of claim 1, wherein each of the advertisement interception rules corresponds to a respective rule string;
Dividing the advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode, wherein the method comprises the following steps:
determining the rule character strings corresponding to the advertisement interception rules respectively;
matching the rule character string with unique characteristic characters specific to various specified class interception rules; the unique characteristic characters are used for distinguishing the corresponding specified class interception rules from other specified class interception rules;
if one of the unique characteristic characters is contained in the rule character string, determining that the advertisement interception rule corresponding to the rule character string belongs to the specified class interception rule corresponding to the unique characteristic character;
if the rule character string does not contain any unique characteristic character, determining that the advertisement interception rule corresponding to the rule character string belongs to the fourth type interception rule.
4. The method of claim 3, wherein after dividing the plurality of advertisement interception rules into a plurality of specified class interception rules having different priorities according to a preset classification scheme, further comprising:
Determining the rule quantity corresponding to each specified class interception rule;
if the number of the rules is greater than or equal to a preset threshold, storing the corresponding specified class interception rules in a memory of the client in a hash mapping mode; wherein, the hash mapping key is the identification information of the specified class interception rule, and the value is the specified class interception rule;
and if the number of the rules is smaller than the preset threshold, sequencing the corresponding specified class interception rules according to a preset sequencing mode, and storing the sequenced specified class interception rules in a memory of the client in a list form.
5. The method of claim 1, wherein the obtaining the advertisement interception rule base corresponding to the client further comprises:
if the advertisement interception rule base acquired from the first appointed directory meets a preset condition, acquiring the advertisement interception rule base again from the network side;
wherein the preset conditions include at least one of: the advertisement interception rule base is not matched with the language used by the client, and the version of the advertisement interception rule base is lower than a preset version.
6. The method of claim 1, wherein the responding to the first operation of opening the browser by the client obtains the advertisement interception rule base corresponding to the client, and the method further comprises:
receiving authorization operation for advertisement interception of the browser, so that the client side has the authority for advertisement interception of the browser;
the responding to the first operation of opening the browser at the client side obtains an advertisement interception rule base corresponding to the client side, and the method comprises the following steps:
responding to a first operation of opening a browser at a client, and judging whether the client has the authority of intercepting advertisements of the browser;
if yes, acquiring an advertisement interception rule base corresponding to the client.
7. An advertisement intercepting apparatus, comprising:
the acquisition module is used for responding to a first operation of opening the browser at the client and acquiring an advertisement interception rule base corresponding to the client; the advertisement interception rule base comprises a plurality of advertisement interception rules;
the classification module is used for dividing the advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode; the specified class interception rules comprise at least one of pure domain name class interception rules, popup class interception rules and fourth class interception rules;
The matching module is used for respectively matching each webpage resource in the first webpage with each specified class interception rule according to the priority corresponding to each specified class interception rule when the first webpage is accessed through the browser, so as to obtain a matching result;
the determining and intercepting module is used for determining that at least one target webpage resource belongs to an advertisement if the matching result is that the at least one target webpage resource is matched with the specified class intercepting rule; intercepting the at least one target webpage resource in the first webpage;
the acquisition module comprises:
the first judging unit is used for judging whether the advertisement interception rule base is stored under a first appointed directory of the local client;
the first acquisition unit is used for acquiring an advertisement interception rule base stored in a first appointed directory if the advertisement interception rule base is the same;
the second acquisition unit is used for acquiring an advertisement interception rule base from the network side if not; or, obtaining a preset advertisement interception rule base carried in the installation package of the browser from a second designated directory of the client;
the step of re-acquiring the advertisement interception rule base from the network side comprises the following steps:
According to a first language used by a client and the corresponding relation between each language and the resource address of the advertisement interception rule base, acquiring a target resource address of the advertisement interception rule base corresponding to the first language;
and sending an acquisition request of the advertisement interception rule base of the latest version to the network side so that the network side sends the advertisement interception rule base of the latest version corresponding to the target resource address to the client side, wherein the acquisition request comprises the target resource address.
8. An advertisement interception apparatus comprising a processor and a memory electrically connected to the processor, the memory storing a computer program, the processor being configured to invoke and execute the computer program from the memory to implement the advertisement interception method of any one of claims 1-6.
9. A storage medium storing a computer program for execution by a processor to implement the advertisement interception method of any one of claims 1-6.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010952062.8A CN112149032B (en) | 2020-09-11 | 2020-09-11 | Advertisement interception method and device |
| PCT/CN2021/070770 WO2022052396A1 (en) | 2020-09-11 | 2021-01-08 | Advertisement blocking method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010952062.8A CN112149032B (en) | 2020-09-11 | 2020-09-11 | Advertisement interception method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112149032A CN112149032A (en) | 2020-12-29 |
| CN112149032B true CN112149032B (en) | 2023-12-08 |
Family
ID=73890926
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010952062.8A Active CN112149032B (en) | 2020-09-11 | 2020-09-11 | Advertisement interception method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112149032B (en) |
| WO (1) | WO2022052396A1 (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112149032B (en) * | 2020-09-11 | 2023-12-08 | 麒麟合盛网络技术股份有限公司 | Advertisement interception method and device |
| CN113641911B (en) * | 2021-08-19 | 2024-03-08 | 郑州阿帕斯数云信息科技有限公司 | Advertisement interception rule base establishing method, device, equipment and storage medium |
| CN113779475A (en) * | 2021-08-19 | 2021-12-10 | 成都鲁易科技有限公司 | Advertisement blocking method and device, storage medium and computer equipment |
| CN113657940A (en) * | 2021-08-20 | 2021-11-16 | 深圳墨世科技有限公司 | Advertisement dynamic aggregation method and device, terminal equipment and readable storage medium |
| CN114785607A (en) * | 2022-05-06 | 2022-07-22 | 深圳创维-Rgb电子有限公司 | Advertisement blocking method, device, equipment and computer readable storage medium |
| CN114880541B (en) * | 2022-05-31 | 2024-10-15 | 哈尔滨工业大学(威海) | Method for acquiring embedded advertisements in multi-device webpage and identifying maliciousness |
| CN116244019B (en) * | 2023-01-13 | 2025-09-02 | 北京百度网讯科技有限公司 | Pop-up window management method, device, electronic device and computer-readable storage medium |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104021172A (en) * | 2014-05-30 | 2014-09-03 | 北京搜狗科技发展有限公司 | Advertisement filtering method and advertisement filtering device |
| CN104572798A (en) * | 2014-07-25 | 2015-04-29 | 上海二三四五网络科技有限公司 | Method, equipment and system for processing webpage |
| CN105100904A (en) * | 2014-05-09 | 2015-11-25 | 深圳市快播科技有限公司 | Video advertisement blocking method, device and browser |
| CN105677654A (en) * | 2014-11-18 | 2016-06-15 | 广州市动景计算机科技有限公司 | Advertisement filtering method and device |
| CN106326316A (en) * | 2015-07-08 | 2017-01-11 | 腾讯科技(深圳)有限公司 | Web page advertisement filtering method and device |
| CN106886563A (en) * | 2016-12-30 | 2017-06-23 | 北界无限(北京)软件有限公司 | A kind of advertisement filter method and device |
| CN107451846A (en) * | 2016-05-31 | 2017-12-08 | 北京京东尚科信息技术有限公司 | The management method and managing device of business rule |
| CN109688205A (en) * | 2018-12-07 | 2019-04-26 | 麒麟合盛网络技术股份有限公司 | The hold-up interception method and device of web page resources |
| CN109842617A (en) * | 2019-01-03 | 2019-06-04 | 深圳壹账通智能科技有限公司 | Ad blocking method, apparatus and storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE102014101174A1 (en) * | 2014-01-30 | 2015-07-30 | Netzwelt Gmbh | System and method for preventing the delivery of advertising content |
| CN104572923B (en) * | 2014-12-27 | 2018-10-30 | 北京奇虎科技有限公司 | The method and browser device of Ad blocking are carried out in double-core browser |
| CN106599298A (en) * | 2016-12-28 | 2017-04-26 | 北京金山安全软件有限公司 | Advertisement blocking method and device and terminal equipment |
| CN110365665A (en) * | 2019-07-01 | 2019-10-22 | 珠海天燕科技有限公司 | A kind of hold-up interception method of advertising resource, device and its equipment |
| CN112149032B (en) * | 2020-09-11 | 2023-12-08 | 麒麟合盛网络技术股份有限公司 | Advertisement interception method and device |
-
2020
- 2020-09-11 CN CN202010952062.8A patent/CN112149032B/en active Active
-
2021
- 2021-01-08 WO PCT/CN2021/070770 patent/WO2022052396A1/en not_active Ceased
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105100904A (en) * | 2014-05-09 | 2015-11-25 | 深圳市快播科技有限公司 | Video advertisement blocking method, device and browser |
| CN104021172A (en) * | 2014-05-30 | 2014-09-03 | 北京搜狗科技发展有限公司 | Advertisement filtering method and advertisement filtering device |
| CN104572798A (en) * | 2014-07-25 | 2015-04-29 | 上海二三四五网络科技有限公司 | Method, equipment and system for processing webpage |
| CN105677654A (en) * | 2014-11-18 | 2016-06-15 | 广州市动景计算机科技有限公司 | Advertisement filtering method and device |
| CN106326316A (en) * | 2015-07-08 | 2017-01-11 | 腾讯科技(深圳)有限公司 | Web page advertisement filtering method and device |
| CN107451846A (en) * | 2016-05-31 | 2017-12-08 | 北京京东尚科信息技术有限公司 | The management method and managing device of business rule |
| CN106886563A (en) * | 2016-12-30 | 2017-06-23 | 北界无限(北京)软件有限公司 | A kind of advertisement filter method and device |
| CN109688205A (en) * | 2018-12-07 | 2019-04-26 | 麒麟合盛网络技术股份有限公司 | The hold-up interception method and device of web page resources |
| CN109842617A (en) * | 2019-01-03 | 2019-06-04 | 深圳壹账通智能科技有限公司 | Ad blocking method, apparatus and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2022052396A1 (en) | 2022-03-17 |
| CN112149032A (en) | 2020-12-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112149032B (en) | Advertisement interception method and device | |
| CN110109958B (en) | Cache processing method, device, equipment and computer readable storage medium | |
| US11403346B2 (en) | Method and device for searching for information in applications | |
| US10250526B2 (en) | Method and apparatus for increasing subresource loading speed | |
| CN110245069B (en) | Page version testing method and device and page display method and device | |
| US10547618B2 (en) | Method and apparatus for setting access privilege, server and storage medium | |
| US20120060083A1 (en) | Method for Use in Association With A Multi-Tab Interpretation and Rendering Function | |
| CN111163072B (en) | Method and device for determining characteristic value in machine learning model and electronic equipment | |
| JP2009003930A (en) | Method and system for providing navigable search result | |
| JPWO2017104655A1 (en) | Information analysis system, information analysis method, and program | |
| US10291492B2 (en) | Systems and methods for discovering sources of online content | |
| CN115757492A (en) | Hotspot data processing method and device, computer equipment and storage medium | |
| CN110955855B (en) | Information interception method, device and terminal | |
| CN109325192B (en) | Advertisement anti-shielding method and device | |
| CN113761565B (en) | Data desensitization method and device | |
| CN113761102A (en) | Data processing method, device, server, system and storage medium | |
| CN104424325A (en) | Data inquiry method and device | |
| CN112835490A (en) | Menu display method and device, client device and storage medium | |
| CN111680247A (en) | Local calling method, device, equipment and storage medium of webpage character string | |
| CN110555053B (en) | Method and apparatus for outputting information | |
| US6330557B1 (en) | Method and system for storing data in a hash table that eliminates the necessity of key storage | |
| CN114070847A (en) | Current limiting method, device, equipment and storage medium of server | |
| CN115150130B (en) | Tracking analysis method, device, equipment and storage medium for attack group | |
| CN115185798A (en) | Data acquisition and analysis method and device, electronic equipment and storage medium | |
| CN114840608A (en) | Distributed data access method, device 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |