CN104572914B - The method and apparatus that Ad blocking is carried out in double-core browser - Google Patents

The method and apparatus that Ad blocking is carried out in double-core browser Download PDF

Info

Publication number
CN104572914B
CN104572914B CN201410832195.6A CN201410832195A CN104572914B CN 104572914 B CN104572914 B CN 104572914B CN 201410832195 A CN201410832195 A CN 201410832195A CN 104572914 B CN104572914 B CN 104572914B
Authority
CN
China
Prior art keywords
webpage
access requests
kernels
web access
subprocess
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410832195.6A
Other languages
Chinese (zh)
Other versions
CN104572914A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410832195.6A priority Critical patent/CN104572914B/en
Publication of CN104572914A publication Critical patent/CN104572914A/en
Application granted granted Critical
Publication of CN104572914B publication Critical patent/CN104572914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Abstract

The present invention provides the method and apparatus for carrying out Ad blocking in a kind of double-core browser, the method includes:Detect that IE kernel webpage subprocess and/or Webkit kernel webpage subprocess in double-core browser load webpage information according to web access requests;The web access requests are intercepted and captured and hang up, wherein the web access requests include web page address information URL;The IE kernels webpage subprocess and/or Webkit kernel webpage subprocess call an independent plug-in unit process to carry out advertising resource verification to the web access requests by browser host process;When the advertising resource verify it is obstructed out-of-date, abandon the web access requests in the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess.It fundamentally prevents from opening advertisement webpage, provides clean web page contents to the user, and save Internet resources.

Description

The method and apparatus that Ad blocking is carried out in double-core browser
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of method for carrying out Ad blocking in double-core browser With a kind of double-core browser device.
Background technology
Browser refers to that can show web page server or HTML (the HyperText Mark-up of file system Language, standard generalized markup language) file content, and allow a kind of software of user and these file interactions.Browser master Webpage is interacted and obtained with web page server by http protocol, these webpages are specified by URL, and file format is usually HTML, and indicated in http protocol by MIME.
With the development of network technology, there is different typesetting formats in webpage, therefore the different kernels also generated is clear Device of looking at is parsed and is shown to it.Various webpages are browsed for the ease of user to meet the tendency of into double-core browser, to be directed to not It is parsed and is shown using different kernels with webpage.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly It states and carries out the method for Ad blocking and corresponding double-core browser device in a kind of double-core browser of problem.
One side according to the present invention provides a kind of method that Ad blocking is carried out in double-core browser, including:Inspection IE kernel webpage subprocess and/or Webkit the kernel webpage subprocess measured in double-core browser adds according to web access requests Contained network page information;The web access requests are intercepted and captured and hang up, wherein the web access requests include web page address information URL;The IE kernels webpage subprocess and/or Webkit kernel webpage subprocess are independent by browser host process calling one Plug-in unit process carries out advertising resource verification to the web access requests;When the advertising resource verify it is obstructed out-of-date, abandon institute State the web access requests in IE kernel webpage subprocess and/or Webkit kernel webpage subprocess.
According to another aspect of the present invention, a kind of double-core browser device is provided, including:Monitoring module is asked, is used for Detect IE kernel webpage subprocess in double-core browser and/or Webkit kernel webpage subprocess according to web access requests Load webpage information;Blocking module is asked, for intercepting and capturing and hanging up the web access requests, wherein the web access requests Including web page address information URL;Resource authentication module is used for the IE kernels webpage subprocess and/or Webkit kernel webpages Subprocess calls an independent plug-in unit process to carry out advertising resource verification to the web access requests by browser host process; Blocking module, it is obstructed out-of-date for working as advertising resource verification, it abandons in the IE kernels webpage subprocess and/or Webkit The web access requests in nucleoreticulum page subprocess.
Double-core browser is sending web page access using IE kernel webpage subprocess and/or Webkit kernel webpage subprocess When request of loading corresponding web page information, the web access requests are intercepted and captured and hang up, to prevent webpage subprocess from directly adding Carry the webpage information returned based on web access requests.Then agency is used as by browser host process, calls independent third The plug-in unit process of side carries out advertising resource verification to web access requests, and the webpage information for the web access requests being verified is It can load, and the web access requests for verifying different mistakes directly abandon, and do not return to webpage subprocess of the webpage information to request, from It fundamentally prevents from opening advertisement webpage, provides clean web page contents to the user, and save Internet resources.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the embodiment of the method that Ad blocking is carried out in double-core browser according to an embodiment of the invention Flow chart of steps;
Fig. 2 shows Webkit kernel webpage subprocess in double-core browser according to an embodiment of the invention to carry out extensively Accuse the step flow chart of the embodiment of the method intercepted;
Fig. 3 shows that IE kernels webpage subprocess progress advertisement is blocked in double-core browser according to an embodiment of the invention The step flow chart for the embodiment of the method cut;
Fig. 4 shows a kind of structure diagram of double-core browser device embodiment according to an embodiment of the invention;
Fig. 5 shows the preferred structure block diagram of double-core browser device embodiment according to an embodiment of the invention;
Fig. 6 shows the knot of resource authentication module in double-core browser device embodiment according to an embodiment of the invention Structure block diagram;And
Fig. 7 shows the knot of content verification module in double-core browser device embodiment according to an embodiment of the invention Structure block diagram.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Embodiment one
Referring to Fig.1, show that the method that Ad blocking is carried out in double-core browser according to an embodiment of the invention is real The step flow chart for applying example, can specifically include following steps:
Step 102, detect the IE kernel webpage subprocess in double-core browser, and/or, Webkit kernel webpage into Journey loads webpage information according to web access requests.
Kernel refers to the rendering engine (Rendering Engine) of browser, in the present embodiment, double-core browser packet Include IE (Internet Explorer) kernels and Webkit kernels, wherein IE kernels are actually with microsoft operation system Webcontrol controls are kernel, and if Trident engines may be used in IE kernels, WebKit is that a browser increased income draws It holds up.
Double-core browser can start different kernel webpage when opening webpage based on the difference of webpage layout format Process opens corresponding webpage.Since Most current webpage all carries advertisement pushing, user opens webpage and just can be appreciated that advertisement, no Convenient for being browsed to web page contents.Therefore the present embodiment intercepts the webpage opened in double-core browser, therefore double-core IE kernels webpage subprocess and Webkit kernel webpage subprocess are monitored in browser, can detect IE kernel webpages Subprocess loads webpage information according to web access requests, and/or, Webkit kernel webpage subprocess is according to web access requests Load webpage information.
Step 104, it intercepts and captures and hangs up the web access requests.
No matter IE kernel webpage subprocess or Webkit kernel webpage subprocess are visited according to webpage in double-core browser When asking request of loading webpage information, it will intercept and capture and hang up the web access requests, i.e., the web access requests be blocked It cuts, wherein the web access requests include web page address information URL (Uniform Resource Locator, unified resource Finger URL).
Step 106, the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess pass through browser host process An independent plug-in unit process is called to carry out advertising resource verification to the web access requests.
In the present embodiment, in order to be intercepted to the advertisement in request of loading webpage, webpage subprocess to be prevented to pass through net Access to web page asks to be loaded directly into webpage information, but the web access requests are independent by browser host process calling one Plug-in unit process carries out advertising resource verification.Use browser host process as agency, by third-party plug-in unit process to net Access to web page request carries out advertising resource verification, and the web access requests verified by advertising resource can normally return to webpage information It is loaded.
Step 108, when the advertising resource verify it is obstructed out-of-date, abandon the IE kernels webpage subprocess, and/or, The web access requests in Webkit kernel webpage subprocess.
When advertising resource verification is obstructed out-of-date, it is the request for advertisement webpage to characterize current web access requests, this When to abandon the web access requests, do not return webpage information to request IE kernel webpage subprocess and/or Webkit kernels Webpage subprocess loads.
In conclusion double-core browser is sent out using IE kernel webpage subprocess and/or Webkit kernel webpage subprocess When web access requests being sent to load corresponding web page information, the web access requests are intercepted and captured and hang up, to prevent webpage Process is loaded directly into the webpage information returned based on web access requests.Then agency is used as by browser host process, called Independent third-party plug-in unit process carries out advertising resource verification to web access requests, the web access requests being verified Webpage information could load, and the web access requests for verifying different mistakes directly abandon, and not return to net of the webpage information to request Page subprocess fundamentally prevents from opening advertisement webpage, provides clean web page contents to the user, and saves network money Source.
Double-core browser includes IE kernels and Webkit kernels, the webpage subprocess pair of different kernels in the embodiment of the present invention The interception of advertisement has a certain difference.
Embodiment two
On the basis of the above embodiments, the present embodiment be discussed in detail in double-core browser Webkit kernels webpage into The step of journey intercepts advertising information in webpage.
With reference to Fig. 2, Webkit kernels webpage subprocess in double-core browser according to an embodiment of the invention is shown The step flow chart for carrying out the embodiment of the method for Ad blocking, can specifically include following steps:
Step 202, detect that Webkit kernel webpage subprocess loads webpage information according to web access requests.
Step 204, it intercepts and captures and hangs up the web access requests.
Step 206, the web access requests are sent to browser host process by Webkit kernels webpage subprocess.
When double-core browser uses Webkit kernel webpage subprocess to send web access requests to load webpage information, cut The web access requests are obtained and hung up, the browser host process as agency is transmitted to.Browser master in the present embodiment Process can be based on IE kernels, can also be based on Webkit kernels, by taking Webkit kernel host processes as an example, the Webkit Web access requests directly can not be sent to network by kernel webpage subprocess, but the web access requests are sent to work For the Webkit kernel host processes of agency, Webkit kernel webpage subprocess is determined whether by the Webkit kernel host processes Load the webpage information based on the web access requests.
Step 208, the web access requests are sent to the independent plug-in unit process of calling by the browser host process.
In the present embodiment, using browser host process as intercept advertising information agency, then browser host process can call One independent plug-in unit process, which can be the plug-in unit process for including Ad blocking rule parsing engine, to insert Part process carries out Ad blocking by built-in Ad blocking rule parsing engine to web access requests.Therefore browser master into Web access requests can be sent to the independent plug-in unit process of calling by journey.
Step 210, the plug-in unit process is respectively to URL, source address information and the request header type in web access requests Information carries out global and/or designated domain name inspection.
Step 212, determine that advertising resource verifies whether to pass through.
In the present embodiment, the web access requests include:URL information, source address information and request header type information.Its In, URL information is the web page address of requested webpage.Source address information, that is, refer, alternatively referred to as HTTP Referer are A part of the request header header of http, the address for characterizing a upper page, when browser is asked to web server transmission When asking, it will usually take Referer when the notification server request to come from which page link.Request header type is believed Breath, i.e. accept-type be http request header header in the reception type that carries.
It, can be successively to URL, source address information and request header type when plug-in unit process is detected web access requests Information is detected, wherein for the detected rule of Ad blocking, includes the rule of global rule and designated domain name.
Wherein, global rule refer to all URL, source address information and request header type information according to the rule into Row match check matches if being detected with this with the global rule, and characterize its request is advertising resource information, advertising resource Verification does not pass through.
The rule of designated domain name is asked by web page access to the advertisement matching rule of the web access requests of designated domain name URL in asking can parse its corresponding domain name, and the matching rule for then obtaining the domain name successively believes the URL, source address Breath and request header type information carry out matching inspection, if detecting the rule match with the designated domain name with this, characterize it and ask What is asked is advertising resource information, and advertising resource verification does not pass through.
If the URL, source address information in web access requests and request header type information, with global rule and designated domain name Rule mismatch, then advertising resource is verified.
In an alternative embodiment of the invention, the plug-in unit process respectively believes the URL in web access requests, source address Breath and request header type information carry out designated domain name inspection, determine advertising resource verify whether by the step of, including:It is described Plug-in unit process obtains the URL, source address information and request header type information from the web access requests successively;Determine institute The website belonging to URL is stated, the filter of the website is obtained;Using the filter of the website respectively to the URL, source address Information and request header type information are filtered processing;Determine that advertising resource verifies whether to pass through according to filter result.
For the detection for the rule for formulating domain name, it can be pre-configured with filter corresponding with rule in the present embodiment and carry out Detection.The step of wherein generating filter:The plug-in unit process obtains each website successively from the interception rule base of network side Intercept rule file;The interception rule file for parsing each website respectively, generates the filter of each website.
The interception rule base for the advertisement matching rule for having each website is safeguarded in network, therefore plug-in unit process can be periodically from net It is obtained in network and intercepts the interception rule file that rule base obtains each website, for each interception rule file, generated by parsing It corresponds to the filter of website intercepted to advertisement.It is realized based on domain to intercept rule file using it to each website The interception matching of name.
After generating filter, plug-in unit process obtains the URL, source address information and request header class from browser host process Type information can then proceed in the domain name that URL determines its affiliated web site, and determine filter corresponding with domain name matching, Then processing is filtered to URL, source address information and request header type information using the filter successively, determine if with It is identical to intercept the interception rule configured in rule file, advertising resource is verified and do not passed through if identical, if literary with interception rule The interception rule configured in part is different, then advertising resource is verified.
Step 214, browser host process obtains the web access requests and corresponds to webpage information and feed back to Webkit kernels Webpage subprocess is loaded.
After advertising resource is verified, which is not the request to advertisement page, therefore browser host process normally obtains It takes the web access requests to correspond to webpage information, the webpage information is then fed back into Webkit kernel webpage subprocess, Webkit kernel webpage subprocess carries out the corresponding webpage of loaded and displayed to the webpage information.
Step 216, the web access requests in the Webkit kernels webpage subprocess are abandoned.
When advertising resource verifies obstructed out-of-date, requests of the URL to advertisement page, browser host process is abandoned using the net Access to web page requested webpage resource can not feed back any information and give Webkit kernel webpage subprocess, or feedback webpage without The message that method is opened gives Webkit kernel webpage subprocess.
To sum up, webpage subprocess is asked by third party's independent plug-in unit process as acting on behalf of using browser host process The web access requests asked are detected, and global detection may be used, and domain name can also be used to detect, to accurately detect pair The request of advertisement webpage, and abandoned.
Secondly, can it is network-based intercept rule base in each website interception rule file, generate the filter at each station, To when being detected based on domain name, determine the filter of selection to URL, source address information and request header class based on the domain name of URL Type information is filtered processing, completes advertising resource verification.
Embodiment three
When user opens webpage in a browser, the webpage carries independent advertisement page sometimes, to by above-mentioned Mode can intercept the independence advertisement page of request, forbid its display.But to be embedded in webpage normal for some advertisements In content, it can cause entire webpage that can not all show if directly intercepting its URL, this is clearly unreasonable also worthless.
Therefore the present embodiment is additionally provided to being embedded into the step of advertisement in webpage normal content intercepts, this implementation Example is described by taking IE kernel webpage subprocess as an example.
With reference to Fig. 3, show that IE kernels webpage subprocess carries out in double-core browser according to an embodiment of the invention The step flow chart of the embodiment of the method for Ad blocking, can specifically include following steps:
Step 302, in the double-core browser start IE kernel webpage subprocess when, IE kernels webpage into Process hook is set in journey.
Step 304, the IE kernels webpage subprocess is monitored using the process hook.
In the present embodiment, browser host process uses WebKit kernel host processes, not due to IE kernel webpages subprocess It can directly be communicated with WebKit kernel host processes, therefore to realize the interaction of the two by hook.
When starting IE kernel webpage subprocess in the double-core browser, it can be arranged in IE kernel webpage subprocess Process hook HOOK.Hook Mechanism allows application program to intercept and capture processing window message or particular event.The process hook can be with The various message of the IE kernels webpage subprocess are monitored.
Step 306, process hook detects that IE kernel webpage subprocess loads webpage information according to web access requests.
Step 308, process hook is intercepted and captured and hangs up the web access requests.
Process hook detect IE kernel webpage subprocess send web access requests carry out request of loading webpage information when, The web access requests are intercepted, and the temporary suspension web access requests are not sent to network.
Step 310, the web access requests are sent to Webkit kernel host processes by process hook by hook interface.
Step 312, the web access requests are sent to the independent plug-in unit process of calling by the browser host process.
Web access requests are sent to the Webkit kernels for being used as Ad blocking agency by hook interface by process hook Host process.Host process can start an independent plug-in unit process to intercept advertisement, and Ad blocking is configured in the plug-in unit process Rule parsing engine, to detect the web access requests of advertisement page.
In the present embodiment, Ad blocking rule parsing engine includes:Adblock or Adblock Plus.Wherein, Adblock allows user to intercept the various page elements including advertisement, and these contents is made to be not downloaded and show.Adblock Plus is the branch of Adblock, can stop object on particular web site and webpage, such as picture, Flash etc..It can be in mistake Stop all advertisements, and institute on Adblock Plus acquiescence meeting filtering web pages in filter using asterisk wildcard or regular expression There are annoying advertisement, including YouTube, the video ads on Facebook, twinkling banner, pop-up window, recessive bullet Go out window and more advertisements.
To be detected to the web access requests of IE kernel webpage subprocess by plug-in unit process, wherein net Access to web page request includes URL, source address information and request header type information, realizes the purpose for preventing the request to advertisement page.
Step 314, plug-in unit process is respectively to URL, source address information and the request header type information in web access requests Carry out global and/or designated domain name inspection.
Step 316, determine that advertising resource verifies whether to pass through.
It, can be successively to URL, source address information and request header type when plug-in unit process is detected web access requests Information is detected, wherein for the detected rule of Ad blocking, includes the rule of global rule and designated domain name.
Wherein, global rule refer to all URL, source address information and request header type information according to the rule into Row match check matches if being detected with this with the global rule, and characterize its request is advertising resource information, advertising resource Verification does not pass through.
The rule of designated domain name is asked by web page access to the advertisement matching rule of the web access requests of designated domain name URL in asking can parse its corresponding domain name, and the matching rule for then obtaining the domain name successively believes the URL, source address Breath and request header type information carry out matching inspection, if detecting the rule match with the designated domain name with this, characterize it and ask What is asked is advertising resource information, and advertising resource verification does not pass through.
If the URL, source address information in web access requests and request header type information, with global rule and designated domain name Rule mismatch, then advertising resource is verified.
In an alternative embodiment of the invention, the plug-in unit process respectively believes the URL in web access requests, source address Breath and request header type information carry out designated domain name inspection, determine advertising resource verify whether by the step of, including:It is described Plug-in unit process obtains the URL, source address information and request header type information from the web access requests successively;Determine institute The website belonging to URL is stated, the filter of the website is obtained;Using the filter of the website respectively to the URL, source address Information and request header type information are filtered processing;Determine that advertising resource verifies whether to pass through according to filter result.
For the detection for the rule for formulating domain name, it can be pre-configured with filter corresponding with rule in the present embodiment and carry out Detection.The step of wherein generating filter:The plug-in unit process obtains each website successively from the interception rule base of network side Intercept rule file;The interception rule file for parsing each website respectively, generates the filter of each website.
The interception rule base for the advertisement matching rule for having each website is safeguarded in network, therefore plug-in unit process can be periodically from net It is obtained in network and intercepts the interception rule file that rule base obtains each website, for each interception rule file, generated by parsing It corresponds to the filter of website intercepted to advertisement.It is realized based on domain to intercept rule file using it to each website The interception matching of name.
After generating filter, plug-in unit process obtains the URL, source address information and request header class from browser host process Type information can then proceed in URL and determine the domain name of its affiliated web site, and gives main officer of Tibet device domain name and match corresponding filter, so Processing is filtered to URL, source address information and request header type information successively using the filter afterwards, determines and if blocks The interception rule configured in cut rule file is identical, if identical advertising resource verification do not pass through, if with intercept rule file The interception rule of middle configuration is different, then advertising resource is verified.
Step 318, the web access requests in the IE kernels webpage subprocess are abandoned.
When advertising resource verifies obstructed out-of-date, requests of the URL to advertisement page, browser host process is abandoned using the net Access to web page requested webpage resource can not feed back any information and give IE kernel webpage subprocess, or feedback webpage that can not open The message opened gives IE kernel webpage subprocess.
Step 320, the corresponding webpage information of the web access requests is returned into the IE kernels webpage subprocess.
Step 322, the IE kernels webpage subprocess calls ad content blocker to the webpage by control interface Information carries out ad content verification.
After advertising resource is verified, which is not the request for advertisement webpage, but in order to It improves to the accuracy to advertisement filter, some advertisements may be hidden in normal web page contents, if straight to this series advertisements Tapping into row and abandoning can make user that can not browse normal web page contents therein.
Therefore, web access requests are verified for advertising resource, the hang-up to the web access requests can be terminated Then the webpage information got is returned to IE kernel webpage subprocess by operation, its corresponding webpage information to network request.
Ad content interception may be used in order to be intercepted to the advertisement being hidden in webpage in IE kernel webpage subprocess Device is intercepted, which includes Cascading Style Sheet (Cascading Style Sheets, CSS) selector, The control to the element in html page may be implemented in CSS selector, include in html page element realize it is one-to-one, one To more or many-to-one control.
IE kernel webpage subprocess calls ad content blocker by control interface, using the ad content blocker pair The webpage information carries out ad content verification.
In a preferred embodiment of the invention, the IE kernels webpage subprocess calls ad content to block by control interface It cuts device and ad content verification is carried out to the webpage information, including:The IE kernels webpage subprocess is called by control interface Ad content blocker obtains advertisement and hides rule list;The IE kernels webpage subprocess is examined in the webpage information and is specified Web page element whether meet the advertisement hide rule list in advertisement hidden conditional;When the specified web page element meets When the advertisement hidden conditional in rule list is hidden in the advertisement, determine that the ad content verification does not pass through.
IE kernel webpage subprocess calls ad content blocker by control interface (such as WebBrowser interfaces), passes through The ad content blocker obtains advertisement and hides rule list, and then the web page element in IE kernels webpage subprocess detection webpage is It is no to be matched with the hiding rule list of advertisement, that is, the web page element specified in webpage information is used, is hidden with advertisement corresponding in rule list Advertisement hidden conditional is matched.Item is hidden when the specified web page element meets the advertisement in the hiding rule list of the advertisement When part, determine that the ad content verification does not pass through.Conversely, hiding rule when the specified web page element does not meet the advertisement When then corresponding to advertisement hidden conditional in table, determine that the ad content is verified.
Optionally, the IE kernels webpage subprocess calls ad content blocker by control interface, and it is hidden to obtain advertisement Rule list is hidden, including:The IE kernels webpage subprocess calls ad content blocker using control interface;Ad content intercepts Device obtains the domain name of the web page address information URL, and hides rule list using domain name matching advertisement;Nucleoreticulum in the IE Page subprocess hides rule list by the advertisement that ad content blocker described in the control interface is fed back.
IE kernel webpage subprocess calls ad content blocker, ad content blocker to obtain in IE using control interface The URL of nucleoreticulum page subprocess transmission, analyzes the domain name of the URL, then uses domain name to match corresponding advertisement and hides rule list, then Rule list is hidden into the advertisement, IE kernel webpage subprocess is sent to by the control structure, so that IE kernel webpage subprocess The detection that rule list carries out web page element in webpage information is hidden based on the advertisement.
Step 324, ad content verifies whether to pass through.
If so, i.e. ad content is verified, step 328 is executed;If it is not, i.e. ad content verification does not pass through, step is executed Rapid 326.
Step 326, the IE kernels webpage subprocess shields the web page element specified in the webpage information that is loaded It covers.
When the specified web page element, which meets the advertisement, hides the advertisement hidden conditional in rule list, described in determination Ad content verification does not pass through, and the web page element corresponding content for meeting advertisement hidden conditional is advertising information, then to nucleoreticulum in IE Page subprocess shields the web page element specified in the webpage information that is loaded, and the specified webpage is not loaded in the page Element.
Step 328, the webpage information of web access requests described in the IE kernels webpage subprocess normal load.
When the specified web page element, which is not met, corresponds to advertisement hidden conditional in the hiding rule list of the advertisement, determine The ad content of the specified web page element is verified, can in webpage the normal load specified web page element, to The webpage information verified by ad content is loaded and shown.
Above provide the web page element progress to being hidden in the advertisement in webpage information in IE kernel webpage subprocess The embodiment intercept, shielded also can be to being hidden in webpage information in Webkit kernel webpage subprocess in specific implementation The web page element of advertisement is intercepted, is shielded, substantially similar with the above process, therefore is repeated no more.
To sum up, for advertising resource verification not by web access requests can directly abandon, therefore its be not suitable for it is hidden The interception of the advertisement in normal web page contents is ensconced, therefore for the web access requests that advertising resource is verified, it will also be into Row ad content is verified, and URL can not be intercepted by preventing it to be hidden in normal web page contents, improve the accuracy of Ad blocking.
Secondly, in ad content verification, advertisement is obtained by ad content blocker and hides rule list, so as to reality Now Ad blocking in the webpage based on domain name ensures the accuracy intercepted.
For embodiment of the method, for simple description, therefore it is all expressed as a series of combination of actions, but this field Technical staff should know that the embodiment of the present invention is not limited by the described action sequence, because implementing according to the present invention Example, certain steps can be performed in other orders or simultaneously.Next, those skilled in the art should also know that, specification Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Example IV
On the basis of the above embodiments, the present embodiment additionally provides a kind of double-core browser device, the double-core browser Device includes IE (Internet Explorer) kernels and Webkit kernels.
With reference to Fig. 4, the structure diagram of double-core browser device embodiment according to an embodiment of the invention is shown, have Body may include following module:
Monitoring module 402 is asked, for detecting in IE kernel webpage subprocess and/or Webkit in double-core browser Nucleoreticulum page subprocess loads webpage information according to web access requests.
Blocking module 404 is asked, for intercepting and capturing and hanging up the web access requests, wherein the web access requests packet Include web page address information URL.
Resource authentication module 406 passes through for the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess Browser host process calls an independent plug-in unit process to carry out advertising resource verification to the web access requests.
Blocking module 408, it is obstructed out-of-date for working as advertising resource verification, abandon the IE kernels webpage subprocess And/or the web access requests in Webkit kernel webpage subprocess.
In conclusion double-core browser is sent out using IE kernel webpage subprocess and/or Webkit kernel webpage subprocess When web access requests being sent to load corresponding web page information, the web access requests are intercepted and captured and hang up, to prevent webpage Process is loaded directly into the webpage information returned based on web access requests.Then agency is used as by browser host process, called Independent third-party plug-in unit process carries out advertising resource verification to web access requests, the web access requests being verified Webpage information could load, and the web access requests for verifying different mistakes directly abandon, and not return to net of the webpage information to request Page subprocess fundamentally prevents from opening advertisement webpage, provides clean web page contents to the user, and saves network money Source.
With reference to Fig. 5, the preferred structure frame of double-core browser device embodiment according to an embodiment of the invention is shown Figure.
With reference to Fig. 6, show that resource verifies mould in double-core browser device embodiment according to an embodiment of the invention The structure diagram of block.
With reference to Fig. 7, content verification mould in double-core browser device embodiment according to an embodiment of the invention is shown The structure diagram of block.
In an alternative embodiment of the invention, the resource authentication module 406, including:Sending submodule 40602, is used for The web access requests are sent to browser master by the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess Process;The web access requests are sent to the independent of calling by agent sub-module 40604 for the browser host process Plug-in unit process;Plug-in unit verifies submodule 40606, and carrying out advertising resource to the web access requests for the plug-in unit process tests Card.
The web access requests further include:Source address information and request header type information;The plug-in unit verifies submodule 40606, for the plug-in unit process respectively to URL, source address information and the request header type information in web access requests into The inspection of the row overall situation and/or designated domain name, determines that advertising resource verifies whether to pass through.
In an alternative embodiment of the invention, the plug-in unit verifies submodule 40606, including:Resource acquisition unit 406062, the URL, source address information and request header are obtained from the web access requests successively for the plug-in unit process Type information;Determination unit 406064 obtains the filter of the website for determining the website belonging to the URL;Filtering is single Member 406066 respectively carries out the URL, source address information and request header type information for the filter using the website Filtration treatment;And determine that advertising resource verifies whether to pass through according to filter result.
Further include:Filter generation module 410 is obtained for the plug-in unit process from the interception rule base of network side successively Take the interception rule file of each website;The interception rule file for parsing each website respectively, generates the filter of each website.
Module 412 is returned to, for when the advertising resource is verified, by the corresponding webpage of the web access requests Information returns to the IE kernels webpage subprocess.
Content verification module 414 calls ad content to intercept for the IE kernels webpage subprocess by control interface Device carries out ad content verification to the webpage information.
Shroud module 416, for verifying obstructed out-of-date, the IE kernels webpage subprocess pair when the determining ad content The web page element specified in the webpage information loaded is shielded.
In an alternative embodiment of the invention, the content verification module 414, including:Call simultaneously acquisition submodule 41402, ad content blocker is called by control interface for the IE kernels webpage subprocess, advertisement is obtained and hides rule Table;Examine submodule 41404, for the IE kernels webpage subprocess examine in the webpage information specify web page element be The no advertisement hidden conditional met in the hiding rule list of the advertisement;It is hidden when the specified web page element meets the advertisement When advertisement hidden conditional in rule list, determine that the ad content verification does not pass through.
In an alternative embodiment of the invention, the calling and acquisition submodule 41402, including:Call unit 414022, Ad content blocker is called using control interface for the IE kernels webpage subprocess;Domain name matching unit 414024 is used The domain name of the web page address information URL is obtained in ad content blocker, and rule is hidden using domain name matching advertisement Table;Acquiring unit 414026 obtains the ad content by the control interface for the IE kernels webpage subprocess and blocks Rule list is hidden in the advertisement for cutting device feedback.
Wherein, the ad content blocker includes:Cascading Style Sheet CSS selector.The plug-in unit process includes:Including The plug-in unit process of Ad blocking rule parsing engine, the Ad blocking rule parsing engine include:Adblock or Adblock Plus。
In an alternative embodiment of the invention, the browser host process includes:WebKit kernel host processes, the dress It sets and further includes:Hook module 418, when for starting IE kernel webpage subprocess in the double-core browser, in the IE Process hook is set in nucleoreticulum page subprocess;The request monitoring module 408, for using the process hook in the IE Nucleoreticulum page subprocess is monitored, to detect the web access requests of the IE kernels webpage subprocess.
The sending submodule 40602 is sent out the web access requests by hook interface for the process hook Give Webkit kernel host processes.
To sum up, webpage subprocess is asked by third party's independent plug-in unit process as acting on behalf of using browser host process The web access requests asked are detected, and global detection may be used, and domain name can also be used to detect, to accurately detect pair The request of advertisement webpage, and abandoned.
Secondly, can it is network-based intercept rule base in each website interception rule file, generate the filter at each station, To when being detected based on domain name, determine the filter of selection to URL, source address information and request header class based on the domain name of URL Type information is filtered processing, completes advertising resource verification.
Again, for advertising resource verification not by web access requests can directly abandon, therefore its be not suitable for it is hidden The interception of the advertisement in normal web page contents is ensconced, therefore for the web access requests that advertising resource is verified, it will also be into Row ad content is verified, and URL can not be intercepted by preventing it to be hidden in normal web page contents, improve the accuracy of Ad blocking.
Again, in ad content verification, advertisement is obtained by ad content blocker and hides rule list, so as to reality Now Ad blocking in the webpage based on domain name ensures the accuracy intercepted.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) carry out extensively to realize in a kind of double-core browser according to the ... of the embodiment of the present invention Accuse some or all functions of some or all components in the method and apparatus equipment intercepted.The present invention can also realize It is some or all equipment or program of device for executing method as described herein (for example, computer program And computer program product).It is such to realize that the program of the present invention may be stored on the computer-readable medium, or can have There are one or multiple signals form.Such signal can be downloaded from internet website and be obtained, or in carrier signal Upper offer, or provide in any other forms.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
The invention discloses a kind of methods that Ad blocking is carried out in A1, double-core browser, including:Detect that double-core browses IE kernel webpage subprocess and/or Webkit kernel webpage subprocess in device load webpage information according to web access requests; The web access requests are intercepted and captured and hang up, wherein the web access requests include web page address information URL;The IE kernels Webpage subprocess and/or Webkit kernel webpage subprocess call an independent plug-in unit process to described by browser host process Web access requests carry out advertising resource verification;When the advertising resource is verified obstructed out-of-date, IE kernels webpage is abandoned The web access requests in process and/or Webkit kernel webpage subprocess.
A2, the method as described in A1, the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess pass through clear Device host process of looking at calls an independent plug-in unit process to carry out advertising resource verification to the web access requests, including:The IE The web access requests are sent to browser host process by kernel webpage subprocess and/or Webkit kernel webpage subprocess; The web access requests are sent to the independent plug-in unit process of calling by the browser host process;The plug-in unit process is to institute It states web access requests and carries out advertising resource verification.
A3, the method as described in A2, the web access requests further include:Source address information and request header type information, The plug-in unit process carries out advertising resource verification to the web access requests, including:The plug-in unit process respectively visits webpage It asks that URL, source address information and request header type information in request carry out global and/or designated domain name inspection, determines advertisement Resource verifies whether to pass through.
A4, the method as described in A3, the plug-in unit process respectively in web access requests URL, source address information and Request header type information carry out designated domain name inspection, determine advertising resource verify whether by the step of, including:The plug-in unit Process obtains the URL, source address information and request header type information from the web access requests successively;Described in determination Website belonging to URL obtains the filter of the website;The URL, source address are believed respectively using the filter of the website Breath and request header type information are filtered processing;Determine that advertising resource verifies whether to pass through according to filter result.
5A, the method as described in A3 or A4 further include the steps that generating filter:Plug-in unit process the blocking from network side The interception rule file of each website is obtained in cut rule library successively;The interception rule file of each website is parsed respectively, is generated The filter of each website.
A6, the method as described in A1, the method further include:When the advertising resource is verified, by the webpage The corresponding webpage information of access request returns to the IE kernels webpage subprocess;The IE kernels webpage subprocess passes through control Interface calls ad content blocker to carry out ad content verification to the webpage information;When determining ad content verification not By when, the IE kernels webpage subprocess shields the web page element specified in the webpage information that is loaded.
A7, the method as described in A6, the IE kernels webpage subprocess call ad content blocker by control interface Ad content verification is carried out to the webpage information, including:The IE kernels webpage subprocess calls advertisement by control interface Content intercept device obtains advertisement and hides rule list;The IE kernels webpage subprocess examines the net specified in the webpage information Whether page element meets the advertisement hidden conditional in the hiding rule list of the advertisement;Described in meeting when the specified web page element When the advertisement hidden conditional in rule list is hidden in advertisement, determine that the ad content verification does not pass through.
A8, the method as described in A7, the IE kernels webpage subprocess call ad content blocker by control interface, It obtains advertisement and hides rule list, including:The IE kernels webpage subprocess calls ad content blocker using control interface;Extensively The domain name that content intercept device obtains the web page address information URL is accused, and rule list is hidden using domain name matching advertisement;Institute State the hiding rule list of advertisement that IE kernel webpage subprocess obtains the ad content blocker feedback by the control interface.
A9, the method as described in A6 or A7 or A8, the ad content blocker include:Cascading Style Sheet CSS selector.
A10, the method as described in A1, the plug-in unit process include:Including the plug-in unit of Ad blocking rule parsing engine into Journey, the Ad blocking rule parsing engine include:Adblock or AdblockPlus.
A11, the method as described in A2, the browser host process include:WebKit kernel host processes, the method is also Including:In the double-core browser start IE kernel webpage subprocess when, be arranged in the IE kernels webpage subprocess into Journey hook;The IE kernels webpage subprocess is monitored using the process hook, to detect IE kernels webpage The web access requests of process.
A12, the method as described in A11, the IE kernels webpage subprocess by the web access requests be sent to it is main into The step of journey, including:The process hook by hook interface by the web access requests be sent to Webkit kernels master into Journey.
B13, a kind of double-core browser device, including:Monitoring module is asked, for detecting in the IE in double-core browser Nucleoreticulum page subprocess and/or Webkit kernel webpage subprocess load webpage information according to web access requests;Request intercepts mould Block, for intercepting and capturing and hanging up the web access requests, wherein the web access requests include web page address information URL;Money Source authentication module passes through browser host process for the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess An independent plug-in unit process is called to carry out advertising resource verification to the web access requests;Blocking module, for when described wide It is obstructed out-of-date to accuse resource verification, abandons described in the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess Web access requests.
B14, the device as described in B13, the resource authentication module, including:Sending submodule, for nucleoreticulum in the IE The web access requests are sent to browser host process by page subprocess and/or Webkit kernel webpage subprocess;Agency's The web access requests are sent to the independent plug-in unit process of calling for the browser host process by module;Plug-in unit is tested Submodule is demonstrate,proved, advertising resource verification is carried out to the web access requests for the plug-in unit process.
B15, the device as described in B14, the web access requests further include:Source address information and request header type letter Breath;The plug-in unit verifies submodule, for the plug-in unit process respectively in web access requests URL, source address information and Request header type information carries out global and/or designated domain name inspection, determines that advertising resource verifies whether to pass through.
B16, the device as described in B15, the plug-in unit verify submodule, including:Resource acquisition unit is used for the plug-in unit Process obtains the URL, source address information and request header type information from the web access requests successively;Determination unit, For determining the website belonging to the URL, the filter of the website is obtained;Filter element, for the mistake using the website Filter is filtered processing to the URL, source address information and request header type information respectively;And it is determined according to filter result Advertising resource verifies whether to pass through.
B17, the device as described in B15 or B16 further include:Filter generation module is used for the plug-in unit process from network The interception rule file of each website is obtained in the interception rule base of side successively;The interception rule text of each website is parsed respectively Part generates the filter of each website.
B18, the device as described in B13 further include:Module is returned to, for when the advertising resource is verified, by institute It states the corresponding webpage information of web access requests and returns to the IE kernels webpage subprocess;Content verification module, for described IE kernel webpage subprocess calls ad content blocker to carry out ad content verification to the webpage information by control interface; Shroud module, for when determining that ad content verification is obstructed out-of-date, the IE kernels webpage subprocess is to the net that is loaded The web page element specified in page information is shielded.
B19, the device as described in B18, the content verification module, including:Simultaneously acquisition submodule is called, the IE is used for Kernel webpage subprocess calls ad content blocker by control interface, obtains advertisement and hides rule list;Submodule is examined, is used It examines the web page element specified in the webpage information whether to meet the advertisement in the IE kernels webpage subprocess and hides rule The then advertisement hidden conditional in table;Item is hidden when the specified web page element meets the advertisement in the hiding rule list of the advertisement When part, determine that the ad content verification does not pass through.
B20, the device as described in B19, the calling and acquisition submodule, including:Call unit is used for the IE kernels Webpage subprocess calls ad content blocker using control interface;Domain name matching unit is obtained for ad content blocker The domain name of the web page address information URL, and rule list is hidden using domain name matching advertisement;Acquiring unit, for described Rule list is hidden in the advertisement that IE kernel webpage subprocess obtains the ad content blocker feedback by the control interface.
B21, the device as described in B18 or B19 or B20, the ad content blocker include:Cascading Style Sheet CSS choosings Select device.
B22, the device as described in B13, the plug-in unit process include:Including the plug-in unit of Ad blocking rule parsing engine into Journey, the Ad blocking rule parsing engine include:Adblock or AdblockPlus.
B23, the device as described in B14, the browser host process include:WebKit kernel host processes, the device Further include:Hook module, when for starting IE kernel webpage subprocess in the double-core browser, in the IE kernels webpage Process hook is set in subprocess;Monitoring module is asked, for using the process hook to the IE kernels webpage subprocess It is monitored, to detect the web access requests of the IE kernels webpage subprocess.
B24, the device as described in B23, the sending submodule will be described by hook interface for the process hook Web access requests are sent to Webkit kernel host processes.

Claims (22)

1. a kind of method that Ad blocking is carried out in double-core browser, including:
Detect IE kernel webpage subprocess in double-core browser and/or Webkit kernel webpage subprocess according to web page access Request of loading webpage information;
The web access requests are intercepted and captured and hang up, wherein the web access requests include web page address information URL;
The IE kernels webpage subprocess and/or Webkit kernel webpage subprocess are independent by browser host process calling one Plug-in unit process carries out advertising resource verification to the web access requests;Wherein, the browser host process is to intercept advertisement letter The agency of breath;
When the advertising resource is verified obstructed out-of-date, the IE kernels webpage subprocess and/or Webkit kernels webpages are abandoned The web access requests in process;
When the advertising resource is verified, the corresponding webpage information of the web access requests is returned into the IE kernels Webpage subprocess;The IE kernels webpage subprocess by control interface call ad content blocker to the webpage information into Row ad content is verified;When determining that ad content verification is obstructed out-of-date, the IE kernels webpage subprocess is to being loaded The web page element specified in webpage information is shielded.
2. the method as described in claim 1, which is characterized in that nucleoreticulum in the IE kernels webpage subprocess and/or Webkit Page subprocess calls an independent plug-in unit process to carry out advertising resource to the web access requests and tests by browser host process Card, including:
The web access requests are sent to browsing by the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess Device host process;
The web access requests are sent to the independent plug-in unit process of calling by the browser host process;
The plug-in unit process carries out advertising resource verification to the web access requests.
3. method as claimed in claim 2, which is characterized in that the web access requests further include:It source address information and asks A type information, the plug-in unit process is asked to carry out advertising resource verification to the web access requests, including:
The plug-in unit process respectively carries out URL, source address information and the request header type information in web access requests global And/or the inspection of designated domain name, determine that advertising resource verifies whether to pass through.
4. method as claimed in claim 3, which is characterized in that the plug-in unit process respectively in web access requests URL, Source address information and request header type information carry out the inspection of designated domain name, determine advertising resource verify whether by the step of, Including:
The plug-in unit process obtains the URL, source address information and request header type letter from the web access requests successively Breath;
It determines the website belonging to the URL, obtains the filter of the website;
Processing is filtered to the URL, source address information and request header type information using the filter of the website respectively;
Determine that advertising resource verifies whether to pass through according to filter result.
5. method as described in claim 3 or 4, which is characterized in that further include the steps that generating filter:
The plug-in unit process obtains the interception rule file of each website successively from the interception rule base of network side;
The interception rule file for parsing each website respectively, generates the filter of each website.
6. the method as described in claim 1, which is characterized in that the IE kernels webpage subprocess is called wide by control interface It accuses content intercept device and ad content verification is carried out to the webpage information, including:
The IE kernels webpage subprocess calls ad content blocker by control interface, obtains advertisement and hides rule list;
It is hiding that the IE kernels webpage subprocess examines the web page element specified in the webpage information whether to meet the advertisement Advertisement hidden conditional in rule list;
When the specified web page element, which meets the advertisement, hides the advertisement hidden conditional in rule list, the advertisement is determined Content verification does not pass through.
7. method as claimed in claim 6, which is characterized in that the IE kernels webpage subprocess is called wide by control interface Content intercept device is accused, advertisement is obtained and hides rule list, including:
The IE kernels webpage subprocess calls ad content blocker using control interface;
Ad content blocker obtains the domain name of the web page address information URL, and hides rule using domain name matching advertisement Then table;
The advertisement that the IE kernels webpage subprocess obtains the ad content blocker feedback by the control interface is hidden Rule list.
8. the method as described in claim 1 or 6 or 7, which is characterized in that the ad content blocker includes:Cascade pattern Table CSS selector.
9. the method as described in claim 1, which is characterized in that the plug-in unit process includes:Including Ad blocking rule parsing The plug-in unit process of engine, the Ad blocking rule parsing engine include:Adblock or Adblock Plus.
10. method as claimed in claim 2, which is characterized in that the browser host process includes:WebKit kernels master into Journey, the method further include:
When starting IE kernel webpage subprocess in the double-core browser, process is set in the IE kernels webpage subprocess Hook;
The IE kernels webpage subprocess is monitored using the process hook, to detect the IE kernels webpage subprocess Web access requests.
11. method as claimed in claim 10, which is characterized in that the IE kernels webpage subprocess asks the web page access The step of being sent to host process is asked, including:
The web access requests are sent to Webkit kernel host processes by the process hook by hook interface.
12. a kind of double-core browser device, including:
Monitoring module is asked, for detecting IE kernel webpage subprocess and/or Webkit kernel webpages in double-core browser Subprocess loads webpage information according to web access requests;
Blocking module is asked, for intercepting and capturing and hanging up the web access requests, wherein the web access requests include webpage Address information URL;
Resource authentication module passes through browser for the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess Host process calls an independent plug-in unit process to carry out advertising resource verification to the web access requests;Wherein, the browser Host process is to intercept the agency of advertising information;
Blocking module, for when the advertising resource verify it is obstructed out-of-date, abandon the IE kernels webpage subprocess and/or The web access requests in Webkit kernel webpage subprocess;
Module is returned to, for when the advertising resource is verified, the corresponding webpage information of the web access requests to be returned Back to the IE kernels webpage subprocess;
Content verification module calls ad content blocker to described for the IE kernels webpage subprocess by control interface Webpage information carries out ad content verification;
Shroud module, for when determining that the ad content verification is obstructed out-of-date, the IE kernels webpage subprocess to be to being loaded Webpage information in specify web page element shielded.
13. device as claimed in claim 12, which is characterized in that the resource authentication module, including:
Sending submodule, for passing through the IE kernels webpage subprocess and/or Webkit kernel webpage subprocess by the net Access to web page request is sent to browser host process;
Agent sub-module is inserted for the web access requests to be sent to the independent of calling by the browser host process Part process;
Plug-in unit verifies submodule, and advertising resource verification is carried out to the web access requests for the plug-in unit process.
14. device as claimed in claim 13, which is characterized in that the web access requests further include:Source address information and Request header type information;
The plug-in unit verifies submodule, for the plug-in unit process respectively in web access requests URL, source address information and Request header type information carries out global and/or designated domain name inspection, determines that advertising resource verifies whether to pass through.
15. device as claimed in claim 14, which is characterized in that the plug-in unit verifies submodule, including:
Resource acquisition unit obtains the URL, source address letter from the web access requests successively for the plug-in unit process Breath and request header type information;
Determination unit obtains the filter of the website for determining the website belonging to the URL;
Filter element, for the filter using the website respectively to the URL, source address information and request header type information It is filtered processing;And determine that advertising resource verifies whether to pass through according to filter result.
16. the device as described in claims 14 or 15, which is characterized in that further include:
Filter generation module obtains the interception of each website for the plug-in unit process successively from the interception rule base of network side Rule file;The interception rule file for parsing each website respectively, generates the filter of each website.
17. device as claimed in claim 12, which is characterized in that the content verification module, including:
Simultaneously acquisition submodule is called, ad content blocker is called by control interface for the IE kernels webpage subprocess, It obtains advertisement and hides rule list;
Submodule is examined, examines whether the web page element specified in the webpage information accords with for the IE kernels webpage subprocess Close the advertisement hidden conditional in the hiding rule list of the advertisement;Rule is hidden when the specified web page element meets the advertisement When advertisement hidden conditional in table, determine that the ad content verification does not pass through.
18. device as claimed in claim 17, which is characterized in that the calling and acquisition submodule, including:
Call unit calls ad content blocker for the IE kernels webpage subprocess using control interface;
Domain name matching unit obtains the domain name of the web page address information URL for ad content blocker, and uses the domain Rule list is hidden in name matching advertisement;
Acquiring unit, it is anti-by the control interface acquisition ad content blocker for the IE kernels webpage subprocess Rule list is hidden in the advertisement of feedback.
19. the device as described in claim 12 or 17 or 18, which is characterized in that the ad content blocker includes:Cascade Style sheet CSS selector.
20. device as claimed in claim 12, which is characterized in that the plug-in unit process includes:Including Ad blocking rule solution The plug-in unit process of engine is analysed, the Ad blocking rule parsing engine includes:Adblock or Adblock Plus.
21. device as claimed in claim 13, which is characterized in that the browser host process includes:WebKit kernels master into Journey, the device further include:
Hook module, when for starting IE kernel webpage subprocess in the double-core browser, in IE kernels webpage Process hook is set in process;
The request monitoring module, for being monitored to the IE kernels webpage subprocess using the process hook, with inspection Survey the web access requests of the IE kernels webpage subprocess.
22. device as claimed in claim 21, which is characterized in that
The web access requests are sent to Webkit by the sending submodule for the process hook by hook interface Kernel host process.
CN201410832195.6A 2014-12-27 2014-12-27 The method and apparatus that Ad blocking is carried out in double-core browser Active CN104572914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410832195.6A CN104572914B (en) 2014-12-27 2014-12-27 The method and apparatus that Ad blocking is carried out in double-core browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410832195.6A CN104572914B (en) 2014-12-27 2014-12-27 The method and apparatus that Ad blocking is carried out in double-core browser

Publications (2)

Publication Number Publication Date
CN104572914A CN104572914A (en) 2015-04-29
CN104572914B true CN104572914B (en) 2018-09-04

Family

ID=53088976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410832195.6A Active CN104572914B (en) 2014-12-27 2014-12-27 The method and apparatus that Ad blocking is carried out in double-core browser

Country Status (1)

Country Link
CN (1) CN104572914B (en)

Families Citing this family (5)

* 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
CN107634976B (en) * 2016-07-18 2020-10-16 阿里巴巴集团控股有限公司 Information pushing method, information obtaining method, advertisement pushing method, advertisement obtaining method and device
CN108322436B (en) * 2017-12-28 2022-05-31 瑞庭网络技术(上海)有限公司 Network request verification method and device, computer equipment and readable storage medium
CN108733764B (en) * 2018-04-16 2021-09-10 阿里巴巴(中国)有限公司 Advertisement filtering rule generation method based on machine learning and advertisement filtering system
CN113709154B (en) * 2021-08-25 2023-08-15 平安国际智慧城市科技股份有限公司 Browser security processing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930211A (en) * 2012-11-07 2013-02-13 北京奇虎科技有限公司 Method for intercepting malicious URLs in multi-kernel browser and multi-kernel browser
CN103605688A (en) * 2013-11-01 2014-02-26 北京奇虎科技有限公司 Intercept method and intercept device for homepage advertisements and browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9672196B2 (en) * 2012-05-15 2017-06-06 Liveperson, Inc. Methods and systems for presenting specialized content using campaign metrics

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930211A (en) * 2012-11-07 2013-02-13 北京奇虎科技有限公司 Method for intercepting malicious URLs in multi-kernel browser and multi-kernel browser
CN103605688A (en) * 2013-11-01 2014-02-26 北京奇虎科技有限公司 Intercept method and intercept device for homepage advertisements and browser

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Adblock Plus过滤规则语法;pastway;《http://blog.csdn.net/pastway/article/details/5315042》;20100221;第1-6页 *

Also Published As

Publication number Publication date
CN104572914A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104572923B (en) The method and browser device of Ad blocking are carried out in double-core browser
CN104572914B (en) The method and apparatus that Ad blocking is carried out in double-core browser
CN104360882B (en) Display methods and device are carried out to picture in webpage in a kind of browser
WO2015143956A1 (en) Method and apparatus for blocking advertisement in web page
US20130276136A1 (en) Online Privacy Management
CN104036019B (en) The open method and device of web page interlinkage
CN103117893B (en) A kind of monitoring method of network access behavior, device and a kind of client device
CN108696481A (en) leak detection method and device
US10491629B2 (en) Detecting sensitive data sent from client device to third-party
CN105975844B (en) A kind of login method and device
CN103761241B (en) A kind of method for uploading and browser of image data
US20150302466A1 (en) Data determination method and device for a thermodynamic chart
CN105577799B (en) A kind of fault detection method and device of data-base cluster
CN106033450B (en) Advertisement blocking method and device and browser
US8966359B2 (en) Web application content mapping
CN110263070B (en) Event reporting method and device
CN106899549A (en) A kind of network security detection method and device
CN103810193A (en) Webpage element shielding method and device
CN103927151B (en) The method and apparatus that local operation is realized on web page
CN106302712B (en) Handle the method and device of web data
AU2014233889A1 (en) Online privacy management
CN103581321B (en) A kind of creation method of refer chains, device and safety detection method and client
CN108595957A (en) Main browser page altering detecting method, device and storage medium
CN111859204A (en) Information publishing method, device, equipment and storage medium
CN105893462A (en) User network behavior analysis method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right