[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112149032A - Advertisement blocking method and device - Google Patents

Advertisement blocking method and device Download PDF

Info

Publication number
CN112149032A
CN112149032A CN202010952062.8A CN202010952062A CN112149032A CN 112149032 A CN112149032 A CN 112149032A CN 202010952062 A CN202010952062 A CN 202010952062A CN 112149032 A CN112149032 A CN 112149032A
Authority
CN
China
Prior art keywords
interception
advertisement
rule
class
rules
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.)
Granted
Application number
CN202010952062.8A
Other languages
Chinese (zh)
Other versions
CN112149032B (en
Inventor
李永才
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qilin Hesheng Network Technology Inc
Original Assignee
Qilin Hesheng Network Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qilin Hesheng Network Technology Inc filed Critical Qilin Hesheng Network Technology Inc
Priority to CN202010952062.8A priority Critical patent/CN112149032B/en
Publication of CN112149032A publication Critical patent/CN112149032A/en
Priority to PCT/CN2021/070770 priority patent/WO2022052396A1/en
Application granted granted Critical
Publication of CN112149032B publication Critical patent/CN112149032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • 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 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, matching each webpage resource in the first webpage with each appointed type of interception rule according to the priority corresponding to each appointed type of interception rule respectively to obtain a matching result; and if the matching result is that at least one target webpage resource is matched with the specified class of interception rules, 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. The technical scheme effectively improves the efficiency and accuracy of intercepting the advertisement.

Description

Advertisement blocking method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to an advertisement blocking method and apparatus.
Background
At present, there are two advertisement blocking schemes implemented in a browser, one of which is to use an advertisement blocking rule only including a plurality of domain name strings in the browser, and when determining whether a certain web Resource is an advertisement, only need to determine whether a URL (Uniform Resource Location) of the web Resource matches a domain name string in the advertisement blocking rule. Because the advertisement interception rule of the mode is too simple, only the advertisement with the domain name character string in the rule can be intercepted, but other types of advertisements cannot be intercepted, the interception accuracy rate of the advertisement is low.
The other method is to compile advertisement interception rules according to rule specifications formulated by Adblock plus (an advertisement interception plugin), the advertisement interception rules of the method 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 an advertisement interception device, and aims to solve the problems of low advertisement interception accuracy and low efficiency in the prior art.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in one aspect, an embodiment of the present application provides an advertisement blocking method, which is applied to a client, and includes:
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 appointed class intercepting rule comprises at least one of a pure domain name class intercepting rule, a popup class intercepting rule and a fourth class intercepting rule;
when a first webpage is accessed through the browser, matching each webpage resource in the first webpage with each appointed class interception rule according to the priority corresponding to each appointed class interception rule respectively 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.
On the other hand, an embodiment of the present application provides an advertisement blocking apparatus, including:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used 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;
the classification module is used for dividing the plurality of advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode; the appointed class intercepting rule comprises at least one of a pure domain name class intercepting rule, a popup class intercepting rule and a fourth class intercepting rule;
the matching module is used for respectively matching each webpage resource in the first webpage with each specified class of interception rules according to the priority corresponding to each specified class of interception rules when the first webpage is accessed through the browser to obtain a matching result;
the determining and intercepting module is used for determining that at least one target webpage resource belongs to the advertisement if the matching result indicates that at least one target webpage resource is matched with the specified type of intercepting rule; 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 blocking apparatus, which includes 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 blocking method.
In still another aspect, an embodiment of the present application provides a storage medium for storing a computer program, where the computer program is executable by a processor to implement the advertisement blocking method.
By adopting the technical scheme of the embodiment of the application, when the browser is opened at the client, the advertisement interception rule base which corresponds to the client and comprises the plurality of advertisement interception rules is obtained, and the plurality of advertisement interception rules are divided into the plurality of specified type interception rules with different priorities according to the preset classification mode, so that the plurality of advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. And when the first webpage is accessed through the browser, matching each webpage resource in the first webpage with each appointed type of interception rule according to the priority level corresponding to each appointed type of interception rule classified in advance, and determining that the target webpage resource belongs to the advertisement and intercepting the target webpage resource in the first webpage when the matching result shows that at least one target webpage resource is matched with the appointed type of interception rule. Therefore, when determining whether each webpage resource belongs to the 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 specified type of interception resource by taking the rule type as the dimension, thereby effectively reducing the workload of rule matching, reducing the memory space occupied by the advertisement interception process, and improving the efficiency and accuracy of advertisement interception. In addition, when the webpage resources are matched with the appointed intercepting resources by taking the rule category as the dimension, the webpage resources are matched based on the priority sequence corresponding to the appointed intercepting rules, so the appointed intercepting rules with high priority are necessarily matched preferentially, advertisements matched with the appointed intercepting rules with high priority can be intercepted rapidly, a large amount of matching workload is saved, and the efficiency of advertisement interception 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 needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a schematic flow chart diagram of an advertisement blocking method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of an advertisement blocking method according to another embodiment of the present application;
FIG. 3 is a schematic block diagram of an advertisement blocking device according to an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of an advertisement blocking device 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 efficiency in the prior art.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The advertisement blocking method provided by the embodiment of the application can be applied to a specific browser developed for realizing advertisement blocking, and can also be applied to a third party application or a third party browser which needs to be provided with advertisement blocking service on a client. Before the advertisement interception is performed on the third-party application or the third-party browser, the user is required to execute 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 following describes the advertisement blocking method provided by the embodiment of the present application in detail by taking an application to a specific browser (hereinafter, referred to as a browser) as an example.
Fig. 1 is a schematic flow chart of an advertisement blocking 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 is performed on the browser icon 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: a click operation or a long press operation of the browser icon or the like is performed using a predetermined physical key or a mouse.
And 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 intercepting rules comprise pure domain name class intercepting rules, popup class intercepting rules, fourth class intercepting rules and the like.
In this embodiment, the fourth class of interception rules are other classes of advertisement interception rules except the pure domain name class interception rule, the domain name class interception rule, and the pop window class interception rule in the multiple advertisement interception rules.
And S106, when the first webpage is accessed through the browser, matching each webpage resource in the first webpage with each appointed class of interception rules according to the priority corresponding to each appointed class of interception rules respectively to obtain a matching result.
The priority may be used to characterize the matching order of the interception rules of the designated classes of different classes, for example, the interception rules of the designated class with the higher priority may be preferentially matched, and the interception rules of the designated class with the lower priority may be matched later. Optionally, the priorities respectively corresponding to the interception rules of each designated class are, in order from high to low: a pure domain name class interception rule, a popup class interception rule and a fourth class interception rule. When the web page resources are matched with the specified interception rules, the matching can be performed in sequence according to the priority order.
S108, if the matching result shows 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, and other web page resources not belonging to the advertisement may not be intercepted, so that the user may still normally access other web page resources not belonging to the advertisement in the first web page, thereby avoiding a 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 at the client, the advertisement interception rule base which corresponds to the client and comprises the plurality of advertisement interception rules is obtained, and the plurality of advertisement interception rules are divided into the plurality of specified type interception rules with different priorities according to the preset classification mode, so that the plurality of advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. And when the first webpage is accessed through the browser, matching each webpage resource in the first webpage with each appointed type of interception rule according to the priority level corresponding to each appointed type of interception rule classified in advance, and determining that the target webpage resource belongs to the advertisement and intercepting the target webpage resource in the first webpage when the matching result shows that at least one target webpage resource is matched with the appointed type of interception rule. Therefore, when determining whether each webpage resource belongs to the 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 specified type of interception resource by taking the rule type as the dimension, thereby effectively reducing the workload of rule matching, reducing the memory space occupied by the advertisement interception process, and improving the efficiency and accuracy of advertisement interception. In addition, when the webpage resources are matched with the appointed intercepting resources by taking the rule category as the dimension, the webpage resources are matched based on the priority sequence corresponding to the appointed intercepting rules, so the appointed intercepting rules with high priority are necessarily matched preferentially, advertisements matched with the appointed intercepting rules with high priority can be intercepted rapidly, a large amount of matching workload is saved, and the efficiency of advertisement interception 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 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 different accordingly.
In one embodiment, when the advertisement blocking rule base corresponding to the client is obtained, it may be determined whether the advertisement blocking rule base is stored in a first specified directory local to the client.
The first specified directory local to the client may be a directory in a browser on the client, such as a files directory. Alternatively, the advertisement blocking rule base may be stored in the directory files/ad _ rule.txt.
And if the advertisement interception rule base is stored in a local first specified directory of the client, acquiring the advertisement interception rule base stored in the first specified directory.
If the advertisement interception rule base is not stored in the local first specified directory of the client, the advertisement interception rule base is obtained from the network side, or the preset advertisement interception rule base carried in the installation package of the browser is obtained from the local second specified directory of the client. 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 blocking rule base is equivalent to a guaranteed-base blocking rule base, generally, the client side can acquire the advertisement blocking rule base from a first specified directory on the network side or the local part of the client side as much as possible, and the preset advertisement blocking rule base can be acquired from a second specified directory on the local part of the client side in a small amount of cases.
In the embodiment, the advertisement interception rule base corresponding to the client is acquired in multiple modes, so that stable realization of advertisement interception is facilitated, the problem that advertisement interception cannot be performed due to the fact that the advertisement interception rule base is not acquired is solved, and the execution rate of advertisement interception is improved.
In the above embodiment, if the advertisement blocking rule base obtained from the first specified directory meets the preset condition, the advertisement blocking rule base is obtained again from the network side. Wherein the preset conditions include: 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 can include simplified Chinese, traditional Chinese, English, etc. The fact that the advertisement interception rule base is not matched with the language used by the client side means that the language corresponding to the advertisement interception rule base is different from the language used by the client side.
For example, if the language corresponding to the advertisement interception rule base is simplified Chinese and the language used by the client is traditional Chinese, it may be determined that the language corresponding to the advertisement interception rule base is not matched with the language used by the client, that is, the advertisement interception rule base obtained from the first specified directory satisfies the preset condition.
In the embodiment, when the advertisement interception rule base locally acquired by 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, so that the matching degree of the advertisement interception rule base and the current operating environment of the client can be ensured, and the advertisement interception accuracy can be improved.
In one embodiment, the advertisement blocking rule base may be retrieved from the network side according to the following steps A1-A2:
step A1, according to the first language used by the client and the corresponding relationship between each language and the resource address of the advertisement interception rule base, obtaining the target resource address of the advertisement interception rule base corresponding to the first language.
The corresponding relation between each language and the resource address of the advertisement interception rule base can be stored in the network side, and can also be downloaded to the client side from the network side in advance and stored locally. The resource address of the advertisement blocking rule base may be a URL address of the advertisement blocking 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 currently used first language, and further 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 according to the correspondence between each language and the resource address of the advertisement interception rule base, the target resource address of the advertisement interception rule base corresponding to the obtained English may be http:// abc.
And step A2, sending an acquisition request of the advertisement interception rule base with the latest version to the network side, so that the network side sends the advertisement interception rule base with the latest version corresponding to the target resource address to the client side. Wherein the acquisition request includes a target resource address.
In the embodiment, the determined resource address of the advertisement interception rule base is sent to the network side, so that the network side returns to the corresponding advertisement interception rule base, and the acquisition efficiency and accuracy of the advertisement interception rule base are improved.
In one embodiment, when the advertisement blocking rule base corresponding to the client is obtained, the advertisement blocking rule base corresponding to the client can be directly obtained from the network side according to the language used by the client.
In the embodiment, the advertisement interception rule base corresponding to the client is directly obtained from the network side, and the advertisement interception rule base locally stored in 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 favorably ensured, and the effect of improving the accuracy and the efficiency of advertisement interception is realized.
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 an embodiment, if the obtained advertisement interception rule base is a specification set by the Adblock plus authority, advertisement element hiding rules in the advertisement interception rule base can be filtered out firstly, the number of the rules is large, the occupied memory is large, 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.
Each advertisement blocking rule in the advertisement blocking rule library is typically a string of various rules, such as the following two advertisement blocking rules "ad _", "js/ads $ third-party". Through the analysis operation, the rule character strings of the advertisement interception rules can be analyzed into rule classes.
In the embodiment, the rule character strings in the obtained advertisement interception rule base are analyzed into the rule classes, so that the rule classes are grouped into the specified interception rules, and the analysis is not repeated when the rules are matched, so that the matching speed is increased. Wherein, the analysis can be performed according to the rule defined by the adblock plus.
For example, the advertisement blocking rule "& adnum ═ means that as long as the webpage resource URL contains & adnum ═ the webpage resource can be considered to match the advertisement blocking rule, that is, the webpage resource belongs to the advertisement, and accordingly, the parsed rule class only contains & adnum ═ the rule class.
For another example, the advertisement interception rule "& overturiser ═ domain & -be.gl |. cpashka. ru" indicates that the web resource URL includes & overturiser ═ and the domain name of the current web page cannot be be.e.gl and cpasha.ru, and at this time, the rule class analyzed includes not only & overturiser ═ but also the domain name list on which the advertisement interception rule functions.
In one embodiment, the class name of the parsed rule class may be AdBlockEntry, whose definition and importance attributes are:
classAdBlockEntry:Serializable{
public:
std stringifilteredrule; a rule after filtering the limited characters (e.g., "$" character content) in each advertisement blocking rule in the advertisement blocking rule base.
std StringrawRule; v/advertisement interception rules in the advertisement interception rules repository.
std is stringdomain; // domain name, the interception rule would be set in the pure domain name class.
std, unordered _ map < std, string, DomainEntry > domains; // list of domain names where the ad blocking rules work.
int32_ tflags; the flags have 32 bits, and each bit represents a type identifier, such as whether it is a picture, whether it is css (cascading StyleS sheets), whether it is third-party, and the like.
WildcardPreparedStringwisdcardStr; // wildcard.
std: stringsitekey; the siteKey rule is used in the// adblock rule.
}
For example, for a rule string of an advertisement blocking rule: js/ads $ third-party, after AdBlcokEntry is analyzed, the attribute values are as follows: filteredRule is js/ads, rawRule is js/ads $ third-party, and int32_ tflags is third-party.
After analyzing each advertisement interception rule in the advertisement interception rule base, the advertisement interception rules can be divided into a plurality of specified class interception rules with different priorities according to a preset classification mode.
In one embodiment, each advertisement blocking rule corresponds to a respective rule string. When the plurality of advertisement interception rules are divided into a plurality of designated class interception rules with different priorities according to a preset classification mode, the rule character strings corresponding to the advertisement interception rules respectively can be determined, and the rule character strings are matched with unique characteristic characters in the designated class interception rules.
If the rule character string contains one of the unique characteristic characters, 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. And 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 of interception rules.
The unique characteristic characters are used for distinguishing the corresponding appointed class intercepting rules from other appointed class intercepting rules and can represent unique characteristics of the appointed class intercepting rules.
According to the embodiment, after the advertisement interception rule base corresponding to the client is obtained, the parsing operation is performed on each advertisement interception rule in the advertisement interception rule base, so in this embodiment, whether each advertisement interception rule includes the unique characteristic character in a certain specified class of interception rules can be directly determined according to each attribute value in the parsed adblcok entry.
The pure domain name class interception rule, the popup class interception rule and the corresponding unique characteristic characters are described in detail below.
The pure domain name class interception rule is a subset of the domain name class interception rule. The pure domain name class interception rule starts with "|". Optionally, the unique characteristic character specific to the pure domain name class interception rule may be "|". For example, the advertisement interception rule | | | img.3sjt.com is a pure domain name class interception rule.
The domain name class interception rule starts with "| |", and includes "/other/", "/some/" etc. characters after the domain name. Optionally, the unique characteristic characters specific to the domain name class interception rule may be "| …/other/", "| …/some/", etc. For example, the advertisement interception rules "| bkda.com/other/", "| bkda.com/home/plussshow.js" are domain name class interception rules.
The unique characteristic character specific to the popup type interception rule may be "$ popup". For example, the ad interception rule ". 189.gd ^ html? p ═ popup "is the popup class interception rule.
The fourth type of interception rule is an advertisement interception rule except a pure domain name type interception rule, a domain name type interception rule and a popup type interception rule in the advertisement interception rule base.
Optionally, for each specific class of interception rules, an exception rule may be further subdivided, and the unique characteristic character specific to the exception rule may be "@". The pure domain name class intercepting rules comprise pure domain name class exception rules, the domain name class intercepting rules comprise domain name class exception rules, the popup class intercepting rules comprise popup class exception rules, and the fourth class intercepting rules comprise fourth class exception rules.
In the embodiment, the rule character strings of the advertisement interception rules are matched with the unique characteristic characters in the various specified interception rules to determine the types of the specified interception rules to which the advertisement interception rules belong, so that the classification of the advertisement interception rules is simply and quickly realized, and a basis is provided for matching webpage resources with the specified interception rules for subsequent advertisement interception.
In one embodiment, after dividing a plurality of advertisement blocking rules into a plurality of specified-class blocking rules with different priorities according to a preset classification mode, the number of rules corresponding to each specified-class blocking rule can be determined, and each specified-class blocking rule is stored based on the number of rules.
And if the number of the rules corresponding to the specified class of interception rules is greater than or equal to a preset threshold value, storing the specified class of interception rules in a memory of the client in a hash mapping mode. The key of the Hash mapping is identification information of the appointed class interception rule, and the value of the Hash mapping is the appointed class interception rule. The identification information of the interception rule of the designated class may be a character with a predetermined length and/or a predetermined position in the interception rule of the designated class, such as an 8-bit character which is continuous from a first character.
For example, if the number of rules of the domain name class interception rule is greater than the preset threshold, the domain name class interception rule "| bkda.com/game/plussshow.js" is stored in the memory of the client in a hash mapping manner, and the hash mapping key may be the 8-bit character "bkda.com" that continues from the first character in the rule, and has the value of the rule "| bkda.com/game/plussshow.js".
For another example, if the number of rules of the pop-window class interception rule is greater than the preset threshold, then the pop-window class interception rule ". 189.gd ^ html? p ═ popup "is stored in the memory of the client in a hash map, where the hash map key is any continuous 8-bit character in the rule, such as". 189.gd ^ 89.gd ^ html? p ═ popup ".
In order to reduce data collision in the hash mapping, continuous 8-bit characters at different character positions can be selected as keys of the hash mapping according to similar popup window type intercepting rules. For example, for the popup class intercept rule ". 189.gd ^ html? p ═ popup "and". 189.gd ^ abc? p ═ popup ", the hash map keys may be" d ^ html "," gd ^ abc ", respectively.
And if the quantity of the rules corresponding to the specified class interception rules is smaller than a preset threshold value, 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.
The preset sorting manner may include an initial sorting, a rule-set time sorting, and the like. For example, if the interception rules are sorted in an initial sorting manner, the interception rules of each designated class may be sorted according to the initial of the interception rules of each designated class from a to z, and the sorted interception rules of each designated class are stored in the memory of the client in a list form. For another example, if the ordering is performed according to the rule set time ordering manner, the designated class interception rules may be ordered according to the set time corresponding to each designated class interception rule, and the ordered designated class interception rules are stored in the memory of the client in a list form.
Optionally, the pure domain name class interception rule is stored in the memory of the client in a form of std:: unordered _ set < std:: string > domain online list _.
Optionally, the domain name class interception rule is stored in the memory of the client in the form of adblockmapmail within ruleslst _ s.
After analyzing each advertisement interception rule in the advertisement interception rule base, according to the assigned class of interception rules to which each advertisement interception rule belongs, the domain name class interception rules with a large number of rules can be stored in the memory in a hash mapping hash map mode, and because the time complexity of the hash map is O (1), when each webpage resource is matched with each assigned class of interception rules, the speed of inquiring the interception rules can be increased, so that the quick matching effect is realized, and the advertisement interception efficiency is further improved.
For example, for the domain name class interception rule "| bkda.com/other/", "| bkda.com/home/plussshow.js", the following form may 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 the key of the hash map, and "| bkda.com/other/", "| bkda.com/game/plussshow.js" is the value of the hash map.
Optionally, the popup type intercepting rule is stored in the memory of the client in a form of std: < vector > mainpopup list-.
Optionally, the fourth type of interception rule is stored in the memory of the client in the form of any one of the existing common general lists.
In the embodiment, different strategies are adopted for the storage form of each specified type of interception rule in the memory by analyzing the number of the rules of each specified type of interception rule, the occupation of the memory of the client side in the advertisement interception process is considered, the balance between the advertisement interception efficiency and the occupation of the memory of the client side is realized, the performance of client side equipment is prevented from being influenced when the advertisement interception is executed, and the use experience of a user is improved.
In one embodiment, the priorities corresponding to the interception rules of each specified class are, in order from high to low: a pure domain name class interception rule, a popup class interception rule and a fourth class interception rule.
The priority corresponding to each of the designated interception rules may be set comprehensively according to the number of the designated interception rules, the storage form in the memory of the client, the advertisement category matched with each of the designated interception rules, and other factors.
For example, the highest priority is set for the pure domain name class interception rule with a small number of rules, so that each webpage resource in the webpage can be firstly matched with the pure domain name class interception rule when the webpage is subsequently accessed through the browser. Because the number of the rules of the pure domain name class intercepting rules is less, no matter whether each webpage resource in the webpage can be matched with the pure domain name class intercepting rules or not, more matching time is not occupied.
For another example, a second priority is set for domain name class interception rules which are large in rule number and stored in the memory of the client in a hash mapping manner, so that when each webpage resource in the webpage is not matched with a pure domain name class interception rule, the domain name class interception rules can be further matched with each other. Because the domain name class interception rule is stored in the memory of the client by adopting a hash mapping hash map mode, and the time complexity of the hash map 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 rule or not, more matching time is not occupied.
For another example, a third priority and a fourth priority are respectively set for the popup type interception rules and the fourth type interception rules which have a large number of rules and are stored in the memory of the client in a list form.
When the webpage resources in the first webpage are matched with the appointed interception rules according to the priorities corresponding to the appointed interception rules, the webpage resources can be matched with the pure domain name interception rules aiming at any webpage resource in the first webpage, if the webpage resources are not matched with the pure domain name interception rules, the webpage resources are further matched with the domain name interception rules, if the webpage resources are not matched with the domain name interception rules, the webpage resources are further matched with the popup interception rules, if the webpage resources are not matched with the popup interception rules, the webpage resources are further matched with the fourth interception rules, and if the webpage resources are not matched with the fourth interception rules, the matching result is determined that the webpage resources in the first webpage are not matched with the appointed interception rules.
If the matching result is that the webpage resources in the first webpage are not matched with the specified blocking rule, it can be determined that the webpage resources in the first webpage do not belong to the advertisement and the webpage resources in the first webpage are not blocked.
For example, for one web page resource in a first web page: http:// img.3sjt.com, matching the webpage resource with the pure domain name class interception rule, and determining that the webpage resource is matched with the pure domain name class interception rule | | | img.3sjt.com, so that the matching result can be determined as that the webpage resource in the first webpage is matched with the pure domain name class interception rule.
For another example, if a web resource URL on a web page accessed through a browser is sohu.com/ads.jsp, a 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 includes the domain name sohu.com, the web resource is considered to belong to an advertisement. For example, if the domain name of the URL of the web page resource 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 page resource, that is, the web page 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 in the order of the first letter 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 resource is matched with the pure domain name class interception rules, the position of the corresponding pure domain name class interception rule in the list can be determined according to the first letter of the web resource, one or more pure domain name class interception rules corresponding to the web resource are further determined, the web resource is matched with each corresponding pure domain name class interception rules one by one, and whether there is a pure domain name class interception rule matching with the web resource is determined. For example, if the web resource is sohu.com/ads.jsp, the location area where "s" is located is first searched in the storage list, the pure domain name class interception rule including "sohu.com" is further determined, the web resource is matched with each corresponding pure domain name class interception rule one by one, and whether the pure domain name class interception rule matched with the web resource exists is determined.
For another example, for one web page resource in the first web page: http:// bkda.com/other/ads _. html, matching the webpage resource with the pure domain name class interception rule, determining that 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, determining that the webpage resource is matched with the domain name class interception rule | | bkda.com/other, and determining that the matching result is that the webpage resource in the first webpage is matched with the domain name class interception rule.
In this embodiment, the domain name class interception rule is stored locally at the client in a hash mapping manner. When the webpage resources are matched with the domain name class intercepting rules, corresponding values can be inquired from the hashmap according to any continuous 8-bit characters (keys of the hashmap) of the webpage resources, the webpage resources are further matched with the corresponding values one by one, and whether the domain name class intercepting rules matched with the webpage resources exist is determined. For example, the web page resource is http:// bkda.com/other/ads _. html, if the key of the hashmap is "bkda.com", the corresponding value queried from the hashmap is "bkda.com/other/ads _. html", "bkda.com/some/ads _. html", the web page resource is matched with each corresponding value one by one, and whether the domain name class interception rule matched with the web page resource exists is determined.
Following the above example, if it is determined that the web page resource does not match the domain name class interception rule, the web page resource is further matched with the popup class interception rule, and if it is determined that the web page resource does not match the popup class interception rule, the web page resource is further matched with the fourth class interception rule, and it is determined that the web page resource matches the fourth class interception rule ads _. html, it is determined that the matching result is that the web page resource in the first web page matches the fourth class interception rule. .
In this embodiment, the popup type interception rule or the fourth type interception rule is stored locally in the client in a list. When the webpage resource is matched with the popup type interception rule or the fourth type interception rule, the webpage resource can be matched with each rule in the storage list corresponding to the popup type interception rule or the fourth type interception rule one by one so as to determine whether the popup type interception rule or the fourth type interception rule matched with the webpage resource exists.
In addition, in order to improve the matching speed and thus improve the advertisement interception efficiency, the popup type interception rule and the fourth type interception rule can be stored in the memory of the client in the form of hashmap respectively. Correspondingly, when the webpage resource is matched with the popup type intercepting rule or the fourth type intercepting rule, the corresponding value can be inquired from the hashmap according to any continuous 8-bit characters (keys of the hashmap) of the webpage resource, the webpage resource is further matched with the corresponding values one by one, and whether the popup type intercepting rule or the fourth type intercepting rule matched with the webpage resource exists or not is determined.
In this embodiment, the popup type intercepting rule and the fourth type intercepting rule are stored in the memory of the client in the form of hashmap, so that whether corresponding values exist in the hashmap can be directly searched in subsequent matching according to characters with set lengths (such as 8 bits) in the webpage resource, and the webpage resource and the corresponding values are matched one by one.
In one embodiment, if the matching result indicates that at least one target webpage resource is matched with one of the specified class interception rules, the at least one target webpage resource may be further matched with an exception rule in the specified class interception rules, and if the at least one target webpage resource is not matched with the exception rule, the at least one webpage resource is determined to belong to an advertisement, and the at least one webpage resource is intercepted; if the at least one target web resource matches the exception rule, determining that the at least one web resource does not belong to the advertisement and not intercepting the at least one web resource.
In this embodiment, the webpage resources in the first webpage are respectively matched with the specified interception rules according to the priorities corresponding to the specified interception rules, so as to obtain a matching result, and the webpage resources in the webpage do not need to be matched with the disordered advertisement interception rules in the advertisement interception rule base one by one, thereby effectively improving the advertisement interception efficiency.
In an 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 responding to a first operation of opening the browser on the client and acquiring an advertisement blocking rule base corresponding to the client, an authorization operation of advertisement blocking for the third-party application or the third-party browser may be received in advance, so that the client has an advertisement blocking authority for the third-party application or the third-party browser.
When the client opens the third-party application or the third-party browser, whether the client has the right of intercepting the advertisement of the third-party application or the third-party browser is judged, and when the client is determined to have the right of intercepting the advertisement of the third-party application or the third-party browser, the advertisement interception rule base corresponding to the client is obtained, and the operations in S104-S108 are further executed.
In the embodiment, the client can perform advertisement interception on the third-party application or the third-party browser by receiving the authorization operation of advertisement interception aiming at the third-party application or the third-party browser in advance, so that the application scene of the advertisement interception method is optimized, the advertisement interception method can act on more applications or browsers instead of only a specific browser, and the use experience of the advertisement interception method is improved.
Fig. 2 is a schematic flow chart of an advertisement blocking method according to an embodiment of the present application, and as shown in fig. 2, the method is applied to a browser developed for advertisement blocking 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 embodiments, and is not described herein again.
S202, determining rule character strings corresponding to the advertisement interception rules in the obtained advertisement interception rule base.
Wherein, each advertisement interception rule corresponds to each rule character string.
S203, judging whether the determined rule character strings are matched with unique characteristic characters in various appointed intercepting rules. If yes, executing S204; if not, go to S205.
The unique characteristic characters are used for distinguishing the corresponding appointed class intercepting rules from other appointed class intercepting rules. The appointed class intercepting rules comprise pure domain name class intercepting rules, popup class intercepting rules and fourth class intercepting rules.
Whether each rule character string is matched with the unique characteristic character in each appointed type of interception rule or not means whether each rule character string contains the unique characteristic character in each appointed type of interception rule or not. If the rule character string contains the unique characteristic character which is specific in a certain type of specified type of interception rule, the specified type of interception rule corresponding to the rule character string can be considered to be matched with the unique characteristic character. The specific determination method has been described in detail in the above embodiments, and is not described herein again.
S204, determining that the advertisement interception rules corresponding to the rule character strings belong to the specified class interception rules corresponding to the unique characteristic characters matched with the advertisement interception rules. After that, S206 is executed.
S205, determining that the advertisement interception rules corresponding to the rule character strings belong to the fourth class of interception rules.
And S206, determining the priority corresponding to each appointed interception rule according to the rule quantity corresponding to each appointed interception rule and the storage mode in the memory.
In this embodiment, the storage manner of each specified type of interception rule in the memory may be determined based on the number of corresponding rules. If the rule number of the specified class of interception rules is greater than or equal to a preset threshold value, the specified class of interception rules are stored in a memory of the client in a hash mapping mode. The key of the Hash mapping is identification information of the specified class interception rule, and the value is the specified class interception rule.
If the number of the rules of the designated class of interception rules is smaller than the preset threshold, the designated class of interception rules are stored in the memory of the client in a list form, specifically, the designated class of interception rules may be sorted according to a preset sorting mode, and the sorted designated class of interception rules are stored in the memory of the client in a list form.
The specific manner for determining the priorities corresponding to the interception rules of each designated class is described in detail in the foregoing embodiments, and is not described herein again. The priority levels corresponding to the interception rules of each designated class are as follows in sequence from high to low: a pure domain name class interception rule, a popup class interception rule and a fourth class interception rule.
S207, when the first webpage is accessed through the browser, aiming at any webpage resource in the first webpage, matching the webpage resource with a pure domain name type interception rule; if yes, go to step S212; if not, go to step S208.
S208, matching the webpage resources with the domain name interception rule; if yes, go to step S212; if not, S209 is executed.
S209, matching the webpage resources with the popup window type interception rule; if yes, go to step S212; if not, go to step S210.
S210, matching the webpage resources with a fourth type of interception rule; if yes, go to step S212; if not, S211 is executed.
The specific matching manner of the above-mentioned S207 to S210 has been described in detail in the above-mentioned embodiments, and is not described herein again.
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 at the client, the advertisement interception rule base which corresponds to the client and comprises the plurality of advertisement interception rules is obtained, and the plurality of advertisement interception rules are divided into the plurality of specified type interception rules with different priorities according to the preset classification mode, so that the plurality of advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. And when the first webpage is accessed through the browser, matching each webpage resource in the first webpage with each appointed type of interception rule according to the priority level corresponding to each appointed type of interception rule classified in advance, and determining that the target webpage resource belongs to the advertisement and intercepting the target webpage resource in the first webpage when the matching result shows that at least one target webpage resource is matched with the appointed type of interception rule. Therefore, when determining whether each webpage resource belongs to the 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 specified type of interception resource by taking the rule type as the dimension, thereby effectively reducing the workload of rule matching, reducing the memory space occupied by the advertisement interception process, and improving the efficiency and accuracy of advertisement interception. In addition, when the webpage resources are matched with the appointed intercepting resources by taking the rule category as the dimension, the webpage resources are matched based on the priority sequence corresponding to the appointed intercepting rules, so the appointed intercepting rules with high priority are necessarily matched preferentially, advertisements matched with the appointed intercepting rules with high priority can be intercepted rapidly, a large amount of matching workload is saved, and the efficiency of advertisement interception 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.
Based on the same idea, the advertisement blocking method provided by the embodiment of the present application further provides an advertisement blocking device.
Fig. 3 is a schematic block diagram of an advertisement blocking apparatus according to an embodiment of the present application, and as shown in fig. 3, the advertisement blocking apparatus includes:
an obtaining module 310, configured to, in response to a first operation of opening a browser at a client, obtain an advertisement interception rule base corresponding to the client; the advertisement interception rule base comprises a plurality of advertisement interception rules;
the classification module 320 is configured to divide the advertisement interception rules into a plurality of designated class interception rules with different priorities according to a preset classification manner; the appointed class intercepting rule comprises at least one of a pure domain name class intercepting rule, a popup class intercepting rule and a fourth class intercepting rule;
the matching module 330 is configured to, when the first webpage is accessed through the browser, match each webpage resource in the first webpage with each specified type of interception rule according to the priority corresponding to each specified type of interception rule, respectively, so as to obtain a matching result;
the determining and intercepting module 340 is configured to determine that at least one target webpage resource belongs to an advertisement if the matching result indicates that at least one target webpage resource is matched with the specified type of intercepting rule; and intercepting at least one target webpage resource in the first webpage.
In one embodiment, the priorities corresponding to the interception rules of each specified class are, in order from high to low: a pure domain name class interception rule, a popup class interception rule and a fourth class interception rule;
the matching module 330 includes:
the first matching unit is used for matching the webpage resources with the pure domain name interception rule aiming at any webpage resource in the first webpage;
the second matching unit is used for further matching the webpage resources with the domain name class interception rule if the webpage resources are not matched with the pure domain name class interception rule;
the third matching unit is used for further matching the webpage resources with the popup window type interception rule if the webpage resources are not matched with the domain name type interception rule;
the fourth matching unit is used for further matching the webpage resources with the fourth type of interception rules if the webpage resources are not matched with the popup type of interception rules;
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 of interception rules if the webpage resource is not matched with the fourth class of interception rules.
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 string with unique characteristic characters in various specified interception rules; the unique characteristic characters are used for distinguishing corresponding appointed class intercepting rules from other appointed class intercepting rules;
the third determining unit is used for 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 contains one of the unique characteristic characters;
and the fourth determining unit is used for determining that the advertisement interception rules corresponding to the rule character strings belong to a fourth class of interception rules if any unique characteristic character is not contained in the rule character strings.
In one embodiment, the advertisement blocking apparatus further comprises:
the determining module is used for determining the number of the rules corresponding to each appointed type of intercepting rules;
the storage module is used for storing the corresponding specified class interception rules in a memory of the client in a hash mapping mode if the number of the rules is greater than or equal to a preset threshold value; the key of the Hash mapping is identification information of the appointed class interception rule, and the value of the Hash mapping is the appointed class interception rule;
and the sorting and storing module is used for sorting the corresponding specified type interception rules according to a preset sorting mode if the number of the rules is less than a preset threshold value, and storing the sorted specified type interception rules in a memory of the client in a list form.
In one embodiment, the obtaining module 310 includes:
the first judgment unit is used for judging whether an advertisement interception rule base is stored under a first local specified directory of the 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 stored in the first appointed directory;
the second acquisition unit is used for acquiring the advertisement interception rule base from the network side if the advertisement interception rule base is not acquired; or, acquiring a preset advertisement interception rule base carried in the installation package of the browser from a second specified directory local to the client.
In one embodiment, the obtaining module 310 further comprises:
a third obtaining unit, configured to obtain the advertisement interception rule base again from the network side if the advertisement interception rule base obtained from the first specified directory meets a preset condition;
wherein the preset condition comprises at least one of the following conditions: 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 has the permission of advertisement interception of the browser;
the obtaining module 310 includes:
the second judgment unit is used for responding to the first operation of opening the browser at the client and judging whether the client has the permission of carrying out advertisement interception on the browser;
and the fourth obtaining unit is used for obtaining the advertisement interception rule base corresponding to the client if the advertisement interception rule base is the same as the advertisement interception rule base.
By adopting the device provided by the embodiment of the application, when the browser is opened at the client, the advertisement interception rule base which corresponds to the client and comprises the plurality of advertisement interception rules is obtained, and the plurality of advertisement interception rules are divided into the plurality of specified type interception rules with different priorities according to the preset classification mode, so that the plurality of advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. And when the first webpage is accessed through the browser, matching each webpage resource in the first webpage with each appointed type of interception rule according to the priority level corresponding to each appointed type of interception rule classified in advance, and determining that the target webpage resource belongs to the advertisement and intercepting the target webpage resource in the first webpage when the matching result shows that at least one target webpage resource is matched with the appointed type of interception rule. Therefore, when determining whether each webpage resource belongs to the 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 specified type of interception resource by taking the rule type as the dimension, thereby effectively reducing the workload of rule matching, reducing the memory space occupied by the advertisement interception process, and improving the efficiency and accuracy of advertisement interception. In addition, when the webpage resources are matched with the appointed intercepting resources by taking the rule category as the dimension, the webpage resources are matched based on the priority sequence corresponding to the appointed intercepting rules, so the appointed intercepting rules with high priority are necessarily matched preferentially, advertisements matched with the appointed intercepting rules with high priority can be intercepted rapidly, a large amount of matching workload is saved, and the efficiency of advertisement interception is improved.
It should be understood by those skilled in the art that the advertisement blocking apparatus in fig. 3 can be used to implement the advertisement blocking method described above, and the detailed description thereof should be similar to the detailed description of the method, and therefore, in order to avoid the complexity, it is not repeated herein.
Based on the same idea, an advertisement blocking device is further provided in the embodiments of the present application, as shown in fig. 4. The advertisement blocking devices may vary greatly in configuration or performance and may include one or more processors 401 and memory 402, where the memory 402 may have one or more stored applications or data stored therein. Wherein memory 402 may be transient or persistent. The application program stored in memory 402 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for the ad blocking device. Still further, the processor 401 may be configured to communicate with the memory 402 to execute a series of computer-executable instructions in the memory 402 on the ad blocking device. The advertisement blocking device may also include one or more power sources 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 blocking device 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 blocking device, and the one or more programs configured to be executed by the one or more processors include 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 appointed class intercepting rule comprises at least one of a pure domain name class intercepting rule, a popup class intercepting rule and a fourth class intercepting rule;
when a first webpage is accessed through a browser, matching each webpage resource in the first webpage with each appointed type of interception rule according to the priority corresponding to each appointed type of interception rule respectively 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 webpage resource in the first webpage.
Optionally, the priorities respectively corresponding to the interception rules of each designated class are, in order from high to low: a pure domain name class interception rule, a popup class interception rule and a fourth class interception rule;
the computer executable instructions, when executed, may further cause the processor to:
aiming at any webpage resource in the first webpage, matching the webpage resource with a pure domain name class interception rule;
if the webpage resources are not matched with the pure domain name class interception rule, further matching the webpage resources with the domain name class interception rule;
if the webpage resources are not matched with the domain name class interception rules, further matching the webpage resources with the popup window 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;
and if the webpage resources are not matched with the fourth type of interception rules, determining that the matching result is that the webpage resources in the first webpage are not matched with the specified type of interception rules.
Optionally, each advertisement interception rule corresponds to a respective rule character 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 string with unique characteristic characters in various appointed interception rules; the unique characteristic characters are used for distinguishing corresponding appointed class intercepting rules from other appointed class intercepting rules;
if the rule character string contains one of the unique characteristic characters, 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;
and 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 of interception rules.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
determining the number of rules corresponding to each appointed class of interception rules;
if the number of the rules is larger than or equal to a preset threshold value, storing the corresponding specified class interception rules in a memory of the client in a hash mapping mode; the key of the Hash mapping is identification information of the appointed class interception rule, and the value of the Hash mapping is the appointed class interception rule;
if the number of the rules is smaller than a preset threshold value, 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 local specified directory of a client;
if yes, acquiring an advertisement interception rule base stored in a first appointed directory;
if not, acquiring an advertisement interception rule base from the network side; or, acquiring a preset advertisement interception rule base carried in the installation package of the browser from a second specified directory local to the client.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
if the advertisement interception rule base acquired from the first specified directory meets the preset condition, acquiring the advertisement interception rule base again from the network side;
wherein the preset condition comprises at least one of the following conditions: 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 an authorization operation for advertisement interception of a browser so that a client has the permission for advertisement interception of the browser;
responding to a first operation of opening a browser at a client, and acquiring an advertisement blocking rule base corresponding to the client, wherein the first operation comprises the following steps:
responding to a first operation of opening a browser at a client, and judging whether the client has the permission of carrying out advertisement interception on the browser;
if yes, acquiring an advertisement interception rule base corresponding to the client.
By adopting the equipment provided by the embodiment of the application, when the browser is opened at the client, the advertisement interception rule base which corresponds to the client and comprises the plurality of advertisement interception rules is obtained, and the plurality of advertisement interception rules are divided into the plurality of specified type interception rules with different priorities according to the preset classification mode, so that the plurality of advertisement interception rules in the advertisement interception rule base can be classified before the webpage is accessed. And when the first webpage is accessed through the browser, matching each webpage resource in the first webpage with each appointed type of interception rule according to the priority level corresponding to each appointed type of interception rule classified in advance, and determining that the target webpage resource belongs to the advertisement and intercepting the target webpage resource in the first webpage when the matching result shows that at least one target webpage resource is matched with the appointed type of interception rule. Therefore, when determining whether each webpage resource belongs to the advertisement, the equipment 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 specified type of interception resource by taking the rule type as the dimension, thereby effectively reducing the workload of rule matching, reducing the memory space occupied by the advertisement interception process, and improving the efficiency and accuracy of advertisement interception. In addition, when the webpage resources are matched with the appointed intercepting resources by taking the rule category as the dimension, the webpage resources are matched based on the priority sequence corresponding to the appointed intercepting rules, so the appointed intercepting rules with high priority are necessarily matched preferentially, advertisements matched with the appointed intercepting rules with high priority can be intercepted rapidly, a large amount of matching workload is saved, and the efficiency of advertisement interception is improved.
The embodiment of the present application further provides a storage medium, where the storage medium stores one or more computer programs, where the one or more computer programs include an instruction, and when the instruction is executed by an advertisement blocking device including multiple application programs, the advertisement blocking device can execute each process of the advertisement blocking method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, 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 divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
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 computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory 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 that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) 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 an … …" 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.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An advertisement blocking method is applied to a client side and 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 appointed class intercepting rule comprises at least one of a pure domain name class intercepting rule, a popup class intercepting rule and a fourth class intercepting rule;
when a first webpage is accessed through the browser, matching each webpage resource in the first webpage with each appointed class interception rule according to the priority corresponding to each appointed class interception rule respectively 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.
2. The method according to claim 1, wherein the priorities respectively corresponding to the interception rules of the specified classes 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 matching of each web resource in the first web page and each specified class of interception rules according to the priority corresponding to each specified class of interception rules respectively to obtain a matching result includes:
aiming at any webpage resource in the first webpage, matching the webpage resource with the pure domain name class interception rule;
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, further matching the webpage resource with the popup window class interception rule;
if the webpage resources are not matched with the popup type interception rules, further matching the webpage resources with the fourth type interception rules;
if the webpage resources are not matched with the fourth type of interception rules, determining that the matching result is that the webpage resources in the first webpage are not matched with the specified type of interception rules.
3. The method of claim 1, wherein each of the advertisement blocking rules corresponds to a respective rule string;
the dividing the plurality of advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode 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 in various specified class interception rules; the unique characteristic character is used for distinguishing the corresponding appointed class intercepting rule from other appointed class intercepting rules;
if the rule character string contains one of the unique characteristic characters, 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 class of interception rules.
4. The method of claim 3, wherein after dividing the advertisement blocking rules into a plurality of specified class blocking rules with different priorities according to a preset classification manner, the method further comprises:
determining the number of rules corresponding to each appointed class of interception rules;
if the rule number is larger than or equal to a preset threshold value, storing the corresponding specified class intercepting rule in a memory of the client in a hash mapping mode; the key of the Hash mapping is identification information of the appointed class interception rule, and the value of the Hash mapping is the appointed class interception rule;
if the rule quantity is smaller than the preset threshold value, 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 of the advertisement blocking rule base corresponding to the client comprises:
judging whether the advertisement interception rule base is stored under a first specified directory local to the client;
if yes, acquiring the advertisement interception rule base stored under the first specified directory;
if not, acquiring the advertisement interception rule base from the network side; or, acquiring a preset advertisement interception rule base carried in the installation package of the browser from a second specified directory local to the client.
6. The method of claim 5, wherein the obtaining of the advertisement blocking rule base corresponding to the client further comprises:
if the advertisement interception rule base obtained from the first appointed directory meets a preset condition, the advertisement interception rule base is obtained again from the network side;
wherein the preset condition comprises at least one of the following: the advertisement interception rule base is not matched with the language used by the client side, and the version of the advertisement interception rule base is lower than the preset version.
7. The method of claim 1, wherein before the obtaining of the advertisement blocking rule base corresponding to the client in response to the first operation of opening a browser at the client, the method further comprises:
receiving an authorization operation for advertisement interception of the browser, so that the client has the permission for advertisement interception of the browser;
the obtaining of the advertisement interception rule base corresponding to the client in response to the first operation of opening the browser at the client comprises:
responding to a first operation of opening a browser at a client, and judging whether the client has the permission of carrying out advertisement interception on the browser;
and if so, acquiring an advertisement interception rule base corresponding to the client.
8. An advertisement blocking apparatus, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used 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;
the classification module is used for dividing the plurality of advertisement interception rules into a plurality of specified class interception rules with different priorities according to a preset classification mode; the appointed class intercepting rule comprises at least one of a pure domain name class intercepting rule, a popup class intercepting rule and a fourth class intercepting rule;
the matching module is used for respectively matching each webpage resource in the first webpage with each specified class of interception rules according to the priority corresponding to each specified class of interception rules when the first webpage is accessed through the browser to obtain a matching result;
the determining and intercepting module is used for determining that at least one target webpage resource belongs to the advertisement if the matching result indicates that at least one target webpage resource is matched with the specified type of intercepting rule; and intercepting the at least one target webpage resource in the first webpage.
9. An advertisement blocking device 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 blocking method of any one of claims 1 to 7.
10. A storage medium for storing a computer program executed by a processor to implement the advertisement blocking method according to any one of claims 1 to 7.
CN202010952062.8A 2020-09-11 2020-09-11 Advertisement interception method and device Active CN112149032B (en)

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 true CN112149032A (en) 2020-12-29
CN112149032B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641911A (en) * 2021-08-19 2021-11-12 郑州阿帕斯数云信息科技有限公司 Method, device, equipment and storage medium for establishing advertisement interception rule base
CN113657940A (en) * 2021-08-20 2021-11-16 深圳墨世科技有限公司 Advertisement dynamic aggregation method and device, terminal equipment and readable storage medium
CN113779475A (en) * 2021-08-19 2021-12-10 成都鲁易科技有限公司 Advertisement blocking method and device, storage medium and computer equipment
WO2022052396A1 (en) * 2020-09-11 2022-03-17 麒麟合盛网络技术股份有限公司 Advertisement blocking method and apparatus
CN114785607A (en) * 2022-05-06 2022-07-22 深圳创维-Rgb电子有限公司 Advertisement blocking method, device, equipment and computer readable storage medium
CN114880541A (en) * 2022-05-31 2022-08-09 哈尔滨工业大学(威海) Method for acquiring embedded advertisements in multi-device webpage and identifying maliciousness

Citations (10)

* Cited by examiner, † Cited by third party
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
US20160335669A1 (en) * 2014-01-30 2016-11-17 Netzwelt Gmbh System and method for preventing a delivery of advertising contents
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160335669A1 (en) * 2014-01-30 2016-11-17 Netzwelt Gmbh System and method for preventing a delivery of advertising contents
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022052396A1 (en) * 2020-09-11 2022-03-17 麒麟合盛网络技术股份有限公司 Advertisement blocking method and apparatus
CN113641911A (en) * 2021-08-19 2021-11-12 郑州阿帕斯数云信息科技有限公司 Method, device, equipment and storage medium for establishing advertisement interception rule base
CN113779475A (en) * 2021-08-19 2021-12-10 成都鲁易科技有限公司 Advertisement blocking method and device, storage medium and computer equipment
CN113641911B (en) * 2021-08-19 2024-03-08 郑州阿帕斯数云信息科技有限公司 Advertisement interception rule base establishing method, device, equipment and storage medium
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
CN114880541A (en) * 2022-05-31 2022-08-09 哈尔滨工业大学(威海) Method for acquiring embedded advertisements in multi-device webpage and identifying maliciousness

Also Published As

Publication number Publication date
WO2022052396A1 (en) 2022-03-17
CN112149032B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
CN112149032B (en) Advertisement interception method and device
US10567423B2 (en) Performing rule-based actions for domain names accessed by particular parties
US10547618B2 (en) Method and apparatus for setting access privilege, server and storage medium
US8495102B2 (en) Method, system, and program product for organizing a database
US20120060083A1 (en) Method for Use in Association With A Multi-Tab Interpretation and Rendering Function
CN104899220B (en) Application program recommendation method and system
US20210042355A1 (en) Method and device for searching for information in applications
JP2009003930A (en) Method and system for providing navigable search result
CN111008348A (en) Anti-crawler method, terminal, server and computer readable storage medium
WO2017104655A1 (en) Information analysis system, information analysis method, and recording medium
CN111814024B (en) Distributed data acquisition method, system and storage medium
CN106156244A (en) A kind of information search air navigation aid and device
CN111443899B (en) Element processing method and device, electronic equipment and storage medium
CN111163072A (en) Method and device for determining characteristic value in machine learning model and electronic equipment
CN111314063A (en) Big data information management method, system and device based on Internet of things
CN109325192B (en) Advertisement anti-shielding method and device
US20140052851A1 (en) Systems and methods for discovering sources of online content
CN110147223B (en) Method, device and equipment for generating component library
CN113806652B (en) Page generation method, page generation device, computer equipment and storage medium
CN110955855B (en) Information interception method, device and terminal
CN112597105B (en) File association object processing method, server device and storage medium
CN113761565B (en) Data desensitization method and device
CN104361094A (en) Storage method and device for file in search result, and browser client
CN110020297A (en) A kind of loading method of web page contents, apparatus and system
CN105354506A (en) File hiding method and apparatus

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