CN105096147A - Advertisement processing method and device - Google Patents
Advertisement processing method and device Download PDFInfo
- Publication number
- CN105096147A CN105096147A CN201410181239.3A CN201410181239A CN105096147A CN 105096147 A CN105096147 A CN 105096147A CN 201410181239 A CN201410181239 A CN 201410181239A CN 105096147 A CN105096147 A CN 105096147A
- Authority
- CN
- China
- Prior art keywords
- advertisement
- field
- web page
- domain name
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides an advertisement processing method and device. The method comprises the steps that advertisement processing rules corresponding to a domain name in a webpage address are searched in a client-side storage unit based on the domain name in the webpage address of a webpage to be browsed after a webpage browsing request is received, and client-side local storage fields are updated by utilizing the advertisement processing rules. When existence of fields related to advertisements in the client-side local storage fields is judged through JS, the advertisements corresponding to the existing fields related to the advertisements are not displayed. A problem of webpage advertisement pop-up based on a JS and local storage mode can be effectively solved so that better browsing experience is provided for users.
Description
Technical field
The present invention relates to mobile communication technology field, more specifically, relate to a kind of advertisement processing method and system.
Background technology
Advertisement is a kind of important channel of website business revenue, but advertisement is for user, is much insignificant, and some degree is said, advertisement destroys the experience that user browses webpage.Compare computer terminal, the screen updates of mobile terminal is little, and web advertisement is more much bigger than computer end on the impact of user's browsing pages, and the user therefore based on mobile terminal can more disagreeable web advertisement.
For filtering web page advertisement, the processing mode that industry adopts be hiding/forbid that loading particular webpage element realizes.But this kind of filter type cannot filter based on JS and local storing mode web advertisement, because these web advertisements whether there is corresponding advertisement field by detecting this locality, determining what ejection was not still ejected: user is when browsing webpage, Website server can check whether current accessed terminal local exists corresponding advertisement field, exists and does not then play advertisement; Do not exist, when the user operation page (comprise and click the page, clickable hyperlinks, button click, the dragging page etc.), meeting pop-up advertisement, then corresponding advertisement field is saved in terminal local, and in certain threshold value, user accesses this website again then can not play advertisement again.This kind of advertisement realizes being adopt webpage JS to combine local storage to realize, if adopt the mode process of forced filtration code, web displaying can be caused to go wrong, such as web page contents display is incomplete.
Current industry still lacks a kind of processing mode for this ad elements.
Summary of the invention
In view of the above problems, the object of the invention is to provide a kind of advertisement processing method and device, improves the experience that user browses web sites.
According to an aspect of the present invention, a kind of advertisement processing method is provided, comprises:
After receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client, wherein advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process; After searching the advertisement processing rule corresponding with described web page address, this locality of this advertisement process Policy Updates client is utilized to store field; When being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, do not show the advertisement corresponding to the field relevant with advertisement existed.
On the other hand, the present invention also provides a kind of advertisement treating apparatus, comprising:
Advertisement process rule search unit, for after receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client, described advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process;
Updating block, for after searching the advertisement processing rule corresponding with described web page address, utilizes this locality of described advertisement process Policy Updates client to store field;
Display unit, for when being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, does not show the advertisement corresponding to the field relevant with advertisement existed.
As can be seen from technique scheme, the present invention is after receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client, described advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process; After searching the advertisement processing rule corresponding with described web page address, this locality of described advertisement process Policy Updates client is utilized to store field; When being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, do not show the advertisement corresponding to the field relevant with advertisement existed.Efficiently solve and adopt webpage JS to eject problem, for user provides better viewing experience in conjunction with local storing mode advertisement.
Accompanying drawing explanation
By reference to the content below in conjunction with the description of the drawings and claims, and understand more comprehensively along with to of the present invention, other object of the present invention and result will be understood and easy to understand more.In the accompanying drawings:
Fig. 1 shows the first treatment scheme according to a kind of advertisement processing method of the embodiment of the present invention.
After Fig. 2 shows and searches the advertisement processing rule corresponding with described web page address, this locality of described advertisement process Policy Updates client is utilized to store field flow process.
Fig. 3 shows another treatment scheme according to a kind of advertisement processing method of the embodiment of the present invention.
Fig. 4 is the structural representation of the advertisement treating apparatus according to the embodiment of the present invention.
Fig. 5 is the structural representation of mobile terminal of the present invention.
Embodiment
Below with reference to accompanying drawing, specific embodiments of the invention are described in detail.
The problem needing user to click the advertisement that specific button or slide handover could be closed cannot be filtered for prior art, the invention provides a kind of advertisement processing method, effectively can solve and adopt webpage JS to eject problem in conjunction with local storing mode advertisement, improve the web browsing experience of user further.
Below describe advertisement processing method provided by the invention in detail.
Fig. 1 shows the first treatment scheme according to a kind of advertisement processing method of the embodiment of the present invention.
As shown in Figure 1, a kind of advertisement processing method provided by the invention comprises:
S110: after receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client.
Wherein, web page browsing request is user in network address corresponding to browser address bar input target web, or user browser bookmark or navigation target approach webpage.
Advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process.
Advertisement processing rule is kept at terminal device this locality.Can be automatically complete installation when mounting software; Also can be complete installation by OTA (OTA:Over-the-AirTechnology over the air) update mode; Also can when software initialization, networking downloads and installs.
S120: based on searching the advertisement processing rule corresponding with described web page address, utilizes this locality of this advertisement process Policy Updates client to store field.
The storage location of this locality storage field of client comprises Cookie, LocalStorage and SessionStorage.
S130: when being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, does not show the advertisement corresponding to the field relevant with advertisement existed.
In the process browsing webpage, if web advertisement code activation, JS detects browser Cookie, LocalStorage and SessionStorage catalogue, judges to there is the field relevant to advertisement, thinks and advertisement successful operation then do not show ad elements.
Can find out according to Fig. 1 scheme, the present invention is after receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client, described advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process; After searching the advertisement processing rule corresponding with described web page address, this locality of described advertisement process Policy Updates client is utilized to store field; When being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, do not show the advertisement corresponding to the field relevant with advertisement existed.The present invention efficiently solves and adopts webpage JS to eject problem in conjunction with local storing mode advertisement, improves the web browsing experience of user further.
After Fig. 2 shows and searches the advertisement processing rule corresponding with described web page address, utilize this locality of described advertisement process Policy Updates client to store field flow process, mainly comprise:
S121: before kernel starts load page primary resource, extracts advertisement processing rule.
S122: according to advertisement process generate rule cookies rule objects collection, whether judgment rule object is empty, and empty words enter step S124, and non-NULL enters step S123.
Wherein, advertisement processing rule and domain name, key word, field value and to store kind relevant.
Rule schemata: domain $ $ key=value $ n.Wherein:
Domain represents Main Domain;
The field of key=value representative simulation, key represents field keys;
Value represents field value;
N represents Storage kind, and 1 represents Cookies, and 2 represent LocalStorage, and 3 represent SessionStorage;
If there is multiple field, multiple interfield branch "; " separate, such as:
domain$$key=value$n;$key=value$n
S123: take Main Domain as key word, the filtering rule object searching for all Cookies types is concentrated from rule objects, preserve the Storage filtering rule in coupling, and form the Storage rule objects collection of Cookies type, call setCookies () method by Cookies field store Cookie.
S124: browse in the process of webpage user, judges whether webpage JS calls getItem (key) method of Localstorage or Sessionstorage, and it's not true then walks and normally do not call getItem treatment scheme; Call, enter S125.
S125: start respective rule coupling, search for Localstorage or Sessionstorage rule objects from advertisement process rule objects, and form corresponding rule objects collection.
S126: judge that whether the rule objects of Localstorage or Sessionstorage is empty, empty normal getItem treatment scheme for a walk; Non-NULL enter S127.
S127: the value of inquiry storage, judges whether its corresponding field is empty, and empty walks normal getItem treatment scheme; The treatment scheme walking to call getItem of non-NULL.
The foundation judged concentrates according to field keys key the field value searching correspondence from the rule objects of coupling.
Fig. 3 shows another treatment scheme according to a kind of advertisement processing method of the embodiment of the present invention, this flow process is the same with the first treatment scheme key step, just different at carrying advertisement relevant field, this flow process is carrying advertisement relevant field in the buffer memory of client, mainly comprises:
S210, after receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the buffer memory of client.
S220: based on searching the advertisement processing rule corresponding with described web page address, utilizes this locality of this advertisement process Policy Updates client to store field.
The storage location of this locality storage field of client comprises Cookie, LocalStorage and SessionStorage.
S230: when being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, does not show the advertisement corresponding to the field relevant with advertisement existed.
In the process browsing webpage, if web advertisement code activation, JS detects browser Cookie, LocalStorage and SessionStorage catalogue, judges to there is the field relevant to advertisement, thinks and advertisement successful operation then do not show ad elements.
Fig. 4 is the structural representation of the advertisement treating apparatus according to the embodiment of the present invention.
As shown in Figure 4, a kind of advertisement treating apparatus 40, comprising:
Advertisement process rule search unit, for after receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client, described advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process;
Updating block, for after searching the advertisement processing rule corresponding with described web page address, utilizes this locality of described advertisement process Policy Updates client to store field;
Display unit, for when being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, does not show the advertisement corresponding to the field relevant with advertisement existed.
Further, this device also comprises:
Buffer memory judging unit, for judge browser buffer memory in whether have corresponding advertisement field, be communicated with advertisement process rule search unit.
Advertisement field writing unit, for being written to browser rs cache and Cookie, LocalStorage and SessionStorage by advertisement field.
Fig. 5 is the structural representation of mobile terminal of the present invention, and described mobile terminal 50 comprises the advertisement treating apparatus shown in Fig. 4, and the 26S Proteasome Structure and Function of described advertisement treating apparatus describes see Fig. 4, repeats no more herein.
In sum, the invention provides a kind of advertisement processing method, the method is after receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client, described advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process; After searching the advertisement processing rule corresponding with described web page address, this locality of described advertisement process Policy Updates client is utilized to store field; When being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, do not show the advertisement corresponding to the field relevant with advertisement existed.The present invention efficiently solves and adopts webpage JS to eject problem in conjunction with local storing mode advertisement, improves the web browsing experience of user further.
Technical scheme of the present invention is described in an illustrative manner above with reference to accompanying drawing.But, it will be appreciated by those skilled in the art that the technical scheme that the invention described above is proposed, various improvement can also be made on the basis not departing from content of the present invention.
Claims (7)
1. a web advertisement disposal route, comprising:
After receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client, described advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process;
After searching the advertisement processing rule corresponding with described web page address, this locality of described advertisement process Policy Updates client is utilized to store field;
When being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, do not show the advertisement corresponding to the field relevant with advertisement existed.
2. web advertisement disposal route as claimed in claim 1, wherein, described advertisement processing rule and domain name, key word, field value and to store kind relevant.
3. web advertisement disposal route as claimed in claim 2, wherein, the expression formula of described advertisement processing rule is domain Key=Value n, wherein domain represents domain name, Key represents key word, and Value represents field value, and n represents storage kind.
4. web advertisement disposal route as claimed in claim 2, wherein, described storage kind comprises Cookie, LocalStorage and SessionStorage.
5. web advertisement disposal route as claimed in claim 1, wherein, when there is not the field relevant to advertisement in this locality storage field being judged client by JS, shows described advertisement.
6. a web advertisement treating apparatus, comprising:
Advertisement process rule search unit, for after receiving web page browsing request, based on the domain name in the web page address of the webpage that will browse, the advertisement processing rule that search is corresponding with the domain name in described web page address in the storage unit of client, described advertisement processing rule and domain name store explicitly, for simulating the storage field corresponding with advertisement process;
Updating block, for after searching the advertisement processing rule corresponding with described web page address, utilizes this locality of described advertisement process Policy Updates client to store field;
Display unit, for when being judged that by JS this locality of client stores the field that in field, existence is relevant to advertisement, does not show the advertisement corresponding to the field relevant with advertisement existed.
7. web advertisement treating apparatus as claimed in claim 6, wherein, described web advertisement treating apparatus is arranged in mobile terminal or terminal.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410181239.3A CN105096147B (en) | 2014-04-30 | 2014-04-30 | Advertisement processing method and device |
PCT/CN2015/075811 WO2015165324A1 (en) | 2014-04-30 | 2015-04-02 | Webpage text extraction method and device, and webpage advertisement handling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410181239.3A CN105096147B (en) | 2014-04-30 | 2014-04-30 | Advertisement processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105096147A true CN105096147A (en) | 2015-11-25 |
CN105096147B CN105096147B (en) | 2019-03-26 |
Family
ID=54576510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410181239.3A Active CN105096147B (en) | 2014-04-30 | 2014-04-30 | Advertisement processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105096147B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107766365A (en) * | 2016-08-18 | 2018-03-06 | 北京京东尚科信息技术有限公司 | webpage generating method and device |
CN108279818A (en) * | 2017-03-08 | 2018-07-13 | 广州市动景计算机科技有限公司 | Close the method, apparatus and user terminal of webpage floating window |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075892A (en) * | 2007-03-28 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method, server and customer terminal for releasing advertisement |
CN101937469A (en) * | 2010-09-15 | 2011-01-05 | 深圳市任子行网络技术股份有限公司 | Information capture method of video website |
CN102722563A (en) * | 2012-05-31 | 2012-10-10 | 优视科技有限公司 | Method and device for displaying page |
CN103530560A (en) * | 2013-09-29 | 2014-01-22 | 北京金山网络科技有限公司 | Method, device and client side for advertisement blocking |
-
2014
- 2014-04-30 CN CN201410181239.3A patent/CN105096147B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075892A (en) * | 2007-03-28 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method, server and customer terminal for releasing advertisement |
CN101937469A (en) * | 2010-09-15 | 2011-01-05 | 深圳市任子行网络技术股份有限公司 | Information capture method of video website |
CN102722563A (en) * | 2012-05-31 | 2012-10-10 | 优视科技有限公司 | Method and device for displaying page |
CN103530560A (en) * | 2013-09-29 | 2014-01-22 | 北京金山网络科技有限公司 | Method, device and client side for advertisement blocking |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107766365A (en) * | 2016-08-18 | 2018-03-06 | 北京京东尚科信息技术有限公司 | webpage generating method and device |
CN108279818A (en) * | 2017-03-08 | 2018-07-13 | 广州市动景计算机科技有限公司 | Close the method, apparatus and user terminal of webpage floating window |
Also Published As
Publication number | Publication date |
---|---|
CN105096147B (en) | 2019-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101071424B (en) | Personalized information push system and method | |
US10007933B2 (en) | Systems and methods for integrating dynamic content into electronic media | |
US20170255705A1 (en) | Method and apparatus of browsing modeling | |
US9514195B2 (en) | Triggering and ranking of native applications | |
CN102722563B (en) | Method and device for displaying page | |
WO2017041359A1 (en) | Information pushing method, apparatus and device, and non-volatile computer storage medium | |
US20130111368A1 (en) | Creating and maintaining images of browsed documents | |
CN110245069B (en) | Page version testing method and device and page display method and device | |
US9798827B2 (en) | Methods and devices for preloading webpages | |
CN102160079A (en) | Selection of associated content for content items | |
US9830304B1 (en) | Systems and methods for integrating dynamic content into electronic media | |
CN102880654B (en) | Method for dynamically updating favorites of information terminal browser | |
US10423710B2 (en) | Browser plug-in with document modification and feedback capability | |
CN104182429B (en) | Web page processing method and terminal | |
CN102938766B (en) | Maliciously website prompt method and device | |
CN106033450B (en) | Advertisement blocking method and device and browser | |
CN104025083A (en) | Method and apparatus for providing web pages | |
CN102591887B (en) | Network data pre-head method and system | |
EP2120203A1 (en) | Method, apparatus and computer program product for managing advertising | |
CN109471974A (en) | Filter method, apparatus, electronic equipment and the storage medium of third party's web advertisement | |
CN102946391B (en) | The method of prompting malice network address and a kind of browser in a kind of browser | |
CN101924791B (en) | Method, device and system for displaying multimedia information | |
CN105096147A (en) | Advertisement processing method and device | |
CN108073613A (en) | Method for sending information and device | |
CN102156697A (en) | Method and terminal equipment for realizing webpage application through widget |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200615 Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Alibaba (China) Co.,Ltd. Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio 16 floor tower square Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd. |