Video ads hold-up interception method, device and browserTechnical field
The present invention relates to browser technology, more particularly, relate to a kind of video ads hold-up interception method, device and browser.
Background technology
Along with embedded advertisement in each video website increases severely, to 75s from 30s to 50s, the advertisement of long period, to being ready to see that the customer impact of advertisement is little, for urgent viewing user experience very bad.Therefore; from browser developers to browser, various add-in developer all attempts realizing the unnecessary video ads of interception to improve Consumer's Experience, such as umbrella (Bloxy), browser video of roaming acceleration, other browser advertisement shielding plug-in unit etc.
Umbrella aly small and exquisite removes ad ware, can filtering video head advertisement comprehensively, play window advertisement and page banner.Umbrella video ads interception scheme is based on proxy server, and as shown in Figure 1, all HTTP request that browser 10 sends all can forward via the proxy server 20 of umbrella, ask video content through proxy server 20 to content server 30.Be provided with regular filters 21 in proxy server 20, if find video ads request URL in the process forwarding HTTP request, filtered out.Owing to focusing on shielding request via proxy server 20, therefore the shielding request of the order of magnitude requires very high to the handling property of proxy server 20, and network environment and server performance can have a direct impact shield effectiveness, if the shielding request processing time is slightly long, then sooner and advertisement can not be shielded more timely, affect user's viewing and experience.Because when proxy server 20 visit capacity is large, affect the processing time, the effect of shielding advertisement in time cannot be played.
The new edition that browser of roaming is issued " sees " version at once, can support the free F.F. watching network video advertisement, and user by clicking the fast forward button in video display frame, can fast skip the bumper advertisements in video content.What browser F.F. scheme of roaming adopted is the principle that process is accelerated, and mainly by the clock api interface of HOOKwindows bottom, makes the time value that returns faster, so just energy F.F. skip advertisements section.The shortcoming of the program is, if video website carries out time synchronized checking with server during video playback, then and extremely can so that this browser can not be resisted by displaying video in discovery time.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of and can realize video ads interception fast, improves user and watch the video ads hold-up interception method of video tastes, device and browser.
The technical solution adopted for the present invention to solve the technical problems is: propose a kind of video ads hold-up interception method, comprise the steps:
S1, the video load request initiated at local intercept browser;
Described in S2, the renewable advertisement filter rule judgment of preserving based on this locality, whether the video load request content of asking is advertisement;
S3 if advertisement, then filters described video load request, if not advertisement, then returns described video load request to browser to obtain the video content of institute's request of loading from content server.
In an embodiment, described step S1 comprises further: that changes described video load request points to advertising filter.
In an embodiment, filter described video load request in described step S3 and comprise further:
After removing the advertisement link in described video load request, described video load request is returned to browser.
In an embodiment, filter described video load request in described step S3 and comprise further:
Return empty ad content to described browser.
In an embodiment, described method also comprised before step S2:
Up-to-date advertisement filter rule configuration file is downloaded from filtering rule server when browser is opened;
Use the advertisement filter rule that advertisement filter rule configuration file update this locality of described download is preserved.
The present invention also proposes a kind of video ads blocking apparatus for solving its technical problem, comprising:
Blocking module, for the video load request initiated at local intercept browser;
Analysis module, whether the content of asking for video load request described in the renewable advertisement filter rule judgment of preserving based on this locality is advertisement;
Advertisement filter module, during for judging that at analysis module the content that described video load request is asked is advertisement, filter described video load request, and when analysis module judges that the content that described video load request is asked is not advertisement, return described video load request to browser to obtain the video content of institute's request of loading from content server.
In an embodiment, described in described advertisement filter modular filtration, video load request comprises further: after removing the advertisement link in described video load request, described video load request is returned to browser.
In an embodiment, described in described advertisement filter modular filtration, video load request comprises further: return empty ad content to described browser.
In an embodiment, described video ads blocking apparatus also comprises:
Advertisement filter rule module, for storing advertisement filter rule in this locality;
Update module, for downloading up-to-date advertisement filter rule configuration file from filtering rule server, uses the advertisement filter rule in the advertisement filter rule configuration file update advertisement filter rule module of described download.
The present invention also proposes a kind of browser for solving its technical problem, comprising the HTTP request engine for initiating video load request, also comprising video ads blocking apparatus as above.
Video ads hold-up interception method of the present invention, device and browser are operated in local realization Ad blocking, without the need to agency, this locality arrange can synchronized update advertisement filter rule, the video load request that browser is initiated is ported to this locality and automatically carries out judging and filtering, realize shielding advertisement more quickly, use the experience that user watches video instead.One aspect of the present invention can carry out video ads interception fast while not affecting browse request performance, on the other hand, also after revising, can carry out flexible challenging changes with the filter rule list upgrading backstage when video website have changed ad-request rule.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the schematic diagram of existing umbrella video ads interception scheme;
Fig. 2 is the schematic diagram of the video ads interception scheme of one embodiment of the invention;
Fig. 3 is the flow chart of the video ads hold-up interception method of one embodiment of the invention;
Fig. 4 is the flow chart of the video ads hold-up interception method of another embodiment of the present invention;
Fig. 5 is the logic diagram of the video ads blocking apparatus of one embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The present invention proposes a kind of video ads interception scheme, inside browser kernel, tackle video load HTTP request, according to the advertisement filter rule of the regular update that this locality provides, remove video ads request, thus can realize video ads interception fast, use the experience that user watches video instead.Fig. 2 shows the schematic diagram of the video ads interception scheme of one embodiment of the invention.As shown in Figure 2, the present invention arranges video ads blocking apparatus 120 in browser 100, all videos of being initiated by the HTTP request engine 110 of browser 100 load HTTP request interception, and fall advertisement HTTP request based on its local advertisement filter rule-based filtering preserved, the loading of shielding browser 100 pairs of advertisements, makes browser 100 only load non-advertisement video content from content service 30.Video ads interception scheme of the present invention also provides filtering rule server 40, is used to provide advertisement filter rule specially.Advertisement filter rule configuration file in filtering rule server 40 can be formed by regularly adopting manual intervention or intelligence to collect classified finishing, and can change along with the advertisement video URL rule change of video provider.Such as, filtering rule server 40 can utilize existing various advertisement rule base, such as Adblock-EasylistChina, Easylist etc. of increasing income.Video ads blocking apparatus 120 such as regularly can download from filtering rule server 40 the advertisement filter rule that current up-to-date advertisement filter rule configuration file upgrades local preservation.
Based on above introduced video ads interception scheme, the present invention proposes a kind of video ads hold-up interception method.Fig. 3 shows the flow chart of the video ads hold-up interception method 100 of one embodiment of the invention.As shown in Figure 3, this video ads hold-up interception method 100 comprises the steps:
In step S101, in the video load request that local intercept browser is initiated.According in concrete example of the present invention, method 100 in step S101 browser local intercept HTTP request engine initiate video load request, change the sensing of this video load request, be directed to the video ads blocking apparatus being arranged on browser this locality by this video load request.
In step S102, whether the content of asking based on video load request described in the renewable advertisement filter rule judgment that this locality is preserved is advertisement.If advertisement, then perform step S103, if not advertisement, then perform step S104.
In step S103, when the content that described video load request is asked is advertisement, then filter described video load request.Such as, after the advertisement link comprised in this video load request can being removed in step S103, this video load request is returned to browser; Or, directly advertisement load request can be removed in step S103, return empty ad content to browser.
In step S104, when the content that described video load request is asked is not advertisement, then return this video load request to browser, to obtain the video content of institute's request of loading from content server.
The present invention performs Ad blocking and filtration by above video ads hold-up interception method 100 in this locality, can avoid process that large visit capacity causes not in time, realize fast video Ad blocking.
Fig. 4 shows the flow chart of the video ads hold-up interception method 200 of another embodiment of the present invention.As shown in Figure 4, this video ads hold-up interception method 200 comprises the steps:
In step S201, when browser is opened, download up-to-date advertisement filter rule configuration file from filtering rule server.As previously mentioned, filtering rule server is used to provide advertisement filter rule specially, advertisement filter rule configuration file wherein can be formed by regularly adopting manual intervention or intelligence to collect classified finishing, and can change along with the advertisement video URL rule change of video provider.
In step S202, use the advertisement filter rule that the advertisement filter rule configuration file update this locality downloaded to from filtering rule server is preserved.
In step S203, in the video load request that local intercept browser is initiated.According in concrete example of the present invention, the sensing of the video load request that the HTTP request engine that method 200 can change browser in step S203 is initiated, is directed to the video ads blocking apparatus being arranged on browser this locality by this video load request.
In step S204, whether the content of asking based on video load request described in the advertisement filter rule judgment that this locality is preserved is advertisement.If advertisement, then perform step S205, if not advertisement, then perform step S206.
In step S205, when the content that described video load request is asked is advertisement, then filter described video load request.As previously mentioned, in step S205, filtering video load request can realize by such as removing advertisement link in this video load request or returning empty ad content to HTTP request engine.
In step S206, when the content that described video load request is asked is not advertisement, then return this video load request to browser, to obtain the video content of institute's request of loading from content server.
The video ads hold-up interception method 200 that above composition graphs 4 describes can obtain up-to-date advertisement filter rule configuration file when each browser is opened from filtering rule server and upgrade local advertisement filter rule of preserving, can guarantee that local advertisement filter rule of preserving is up-to-date all the time, to improve accuracy and the validity of Ad blocking like this.
Based on above introduced video ads interception scheme, the present invention also proposes a kind of video ads blocking apparatus.Fig. 5 shows the logic diagram of the video ads blocking apparatus 120 of one embodiment of the invention.As shown in Figure 5, video ads blocking apparatus 120 mainly comprises blocking module 121, analysis module 122 and advertisement filter module 123.The video load request of blocking module 121 for initiating at local intercept browser.Such as, the sensing of the video load request that the HTTP request engine that blocking module 121 can change browser is initiated, is directed to the video ads blocking apparatus 120 being arranged on browser this locality by this video load request.Whether the content that analysis module 122 is asked for video load request described in the advertisement filter rule judgment of preserving based on this locality is advertisement.When analysis module 122 judges that the content that described video load request is asked is advertisement, advertisement filter module 123 is for filtering described video load request.Such as, after advertisement filter module 123 can remove the advertisement link in described video load request, this video load request is returned to browser, again such as, advertisement filter module 123 can directly remove advertisement load request, returns empty ad content to browser.When analysis module 122 judges that the content that described video load request is asked is not advertisement, advertisement filter module 123 does not do any process to this video load request, return this video load request to browser, to obtain the video content of institute's request of loading from content server.
In preferred embodiment, video ads blocking apparatus 120 also comprises advertisement filter rule module 124 and update module 125.Advertisement filter rule module 124 is for storing advertisement filter rule in this locality.Update module 125 for downloading current up-to-date advertisement filter rule configuration file from filtering rule server, and uses the advertisement filter rule configuration file of described download to upgrade the advertisement filter rule stored in advertisement filter rule module 124.As previously mentioned, filtering rule server is used to provide advertisement filter rule specially, advertisement filter rule configuration file wherein can be formed by regularly adopting manual intervention or intelligence to collect classified finishing, and can change along with the advertisement video URL rule change of video provider.
The present invention performs Ad blocking and filtration by above video ads blocking apparatus 120 in browser this locality, can realize fast video Ad blocking, improve the experience that user watches video.During concrete enforcement, video ads blocking apparatus 120 can be built in browser, forms a kind of browser 100 can tackling unnecessary video ads fast, as shown in Figure 2.In addition, in different embodiments, video ads blocking apparatus 120 independently can also exist with the form of such as browser plug-in.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.