CN106649787A - Method and device for filtering advertisement in mobile terminal client - Google Patents

Method and device for filtering advertisement in mobile terminal client Download PDF

Info

Publication number
CN106649787A
CN106649787A CN201611235701.9A CN201611235701A CN106649787A CN 106649787 A CN106649787 A CN 106649787A CN 201611235701 A CN201611235701 A CN 201611235701A CN 106649787 A CN106649787 A CN 106649787A
Authority
CN
China
Prior art keywords
page
source file
web
page source
advertisement
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.)
Pending
Application number
CN201611235701.9A
Other languages
Chinese (zh)
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
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 filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611235701.9A priority Critical patent/CN106649787A/en
Publication of CN106649787A publication Critical patent/CN106649787A/en
Pending legal-status Critical Current

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/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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
    • 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/957Browsing optimisation, e.g. caching or content distillation

Abstract

The invention provides a method and a device for filtering an advertisement in a mobile terminal client. The method comprises the following steps: acquiring a plurality of search result items which are obtained by searching on the basis of a query word which is input by a user through a client; when a webpage request operation which is triggered by the user aiming at any search result item is detected, acquiring a page source file which corresponds to the search result item from a server; analyzing the page source file according to a pre-stored webpage advertisement filtering rule, and filtering advertisement information in the page source file; loading the filtered page source file to perform page display in the client. Through the method for filtering the advertisement in the mobile terminal client provided by the embodiment of the invention, the interference of redundant information can be reduced, and the webpage browsing cost of the user can be reduced, so that the user experience is improved.

Description

Advertisement filter method and device in mobile terminal client terminal
Technical field
The present invention relates to terminal device technical field, specifically, the present invention relates to wide in a kind of mobile terminal client terminal Accuse advertisement filter device in filter method and a kind of mobile terminal client terminal.
Background technology
With the fast development of the abundant and mobile Internet of intelligent terminal function, intelligent terminal already from Simple verbal system becomes the mobile device comprising power.People can pass through intelligent terminal after work Play music and video, filmed image or the news that surfs the web.Intelligent intelligent terminal already instead of various conventional electronics Equipment, and change the life style of people.
Most Webpage all includes advertising message on intelligent terminal.However, due to intelligent terminal screen Curtain is less, therefore carries out the relatively costly of web page browsing by intelligent terminal.Additionally, mode manually closes webpage The operation of the advertisement in the page is relatively cumbersome, brings using burden to user.
For example, when user input query word enters row information searches element, browser is except the source file for downloading result of page searching Outside, can also during user browses the result of page searching, in the result of page searching be embedded in third party's advertisement or Other irrelevant webpages, and browser acquisition third party's advertisement or the source file of other irrelevant webpages are triggered automatically.Now Although user does not trigger opening third party's advertisement or the operation of other irrelevant webpage and website addresses, also can automatic Display Third party's advertisement or other irrelevant webpages.
The content of the invention
To overcome above-mentioned technical problem or solving above-mentioned technical problem at least in part, spy proposes technical scheme below:
One embodiment of the present of invention proposes a kind of advertisement filter method in mobile terminal client terminal, including:
Obtain the multiple search result items obtained by the query word search that client is input into based on user;
When the web-page requests operation that user triggers for arbitrary search result items is detected, obtain and search from server The corresponding page source file of result items;
Web advertisement filtering rule according to prestoring is parsed to page source file, by the advertisement in page source file Information filtering;
Load the page source file after filtering to carry out web page display in the client.
Preferably, page source file is parsed according to the web advertisement filtering rule for prestoring, including:
Web advertisement filtering rule according to prestoring judges whether page source file belongs to preset web page address white list;
If so, the page source file to belonging to web page address white list is then forbidden to filter.
Preferably, source file is parsed according to the web advertisement filtering rule for prestoring, by page source file Advertising message is filtered, including:
When judging that page source file is not belonging to web page address white list, judged according to the web advertisement filtering rule for prestoring Whether the page elements that the arbitrary URL in page source file is pointed to include advertising message;
If so, URL of the page elements comprising advertising message for pointing to is filtered.
Alternatively, the method also includes:
When judging that page source file is not belonging to web page address white list, judged according to the web advertisement filtering rule for prestoring Whether arbitrary page elements that page source file includes belong to the page elements of predefined type;
If so, then loading page element;
After the completion of page source file after loading is filtered is detected, the corresponding loading result of page elements is deleted.
Preferably, page elements include at least one in script, CSS, multimedia messages.
Preferably, the web advertisement filtering rule for prestoring is obtained from server.
Another embodiment of the present invention proposes advertisement filter device in a kind of mobile terminal client terminal, including:
First acquisition module, for obtaining the multiple search obtained by the query word search that client is input into based on user Result items;
Second acquisition module, for when detect user for arbitrary search result items triggering web-page requests operate when, Page source file corresponding with Search Results is obtained from server;
Parsing module, for being parsed to page source file according to the web advertisement filtering rule for prestoring, by the page Advertising message in source file is filtered;
Load-on module, for loading the page source file after filtering to carry out web page display in the client.
Preferably, parsing module includes:
White list judging unit, for judging whether page source file belongs to pre- according to the web advertisement filtering rule for prestoring The web page address white list put;
Forbid filter element, for when page source file belongs to preset web page address white list, forbidding to belonging to net The page source file of page address white list is filtered.
Preferably, parsing module includes:
Element judging unit, for when judging that page source file is not belonging to web page address white list, according to the net for prestoring Whether the page elements that the arbitrary URL in page advertisement filter rule judgment page source file is pointed to include advertisement Information;
Information filtering unit, for including when the page elements that the arbitrary URL in page source file is pointed to During advertising message, URL of the page elements comprising advertising message for pointing to is filtered.
Alternatively, the device also includes:
Judge module, it is wide according to the webpage for prestoring for when judging that page source file is not belonging to web page address white list Accuse the page elements whether arbitrary page elements that filtering rule judges page source file and include belong to predefined type;
Load-on module, the arbitrary page elements for including when page source file belong to the page elements of predefined type When, loading page element;
Removing module, for after the completion of page source file after loading is filtered is detected, deleting page elements corresponding Loading result.
Preferably, page elements include at least one in script, CSS, multimedia messages.
Alternatively, the device also includes:
3rd acquisition module, for obtaining the web advertisement filtering rule for prestoring from server.
By advertisement filter method in mobile terminal client terminal provided in an embodiment of the present invention, according to the web advertisement for prestoring Filtering rule is parsed to page source file, and the advertising message in page source file is filtered, after loading is filtered Page source file can be by the even webpage corresponding with web-page requests not comprising advertising message comprising a small amount of advertising message The page is shown, and to reduce the interference of redundancy, the cost that user browses webpage is reduced, so as to improve Consumer's Experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments It is substantially and easy to understand, wherein:
Fig. 1 for one embodiment of the invention mobile terminal client terminal in advertisement filter method schematic flow sheet;
Fig. 2 for a preferred embodiment of the invention mobile terminal client terminal in advertisement filter method schematic flow sheet;
Fig. 3 be another preferred embodiment of the invention mobile terminal client terminal in advertisement filter method schematic flow sheet;
Fig. 4 for one embodiment of the invention mobile terminal client terminal in advertisement filter device structural representation.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that arranging used in the specification of the present invention Diction " including " refers to there is the feature, integer, step, operation, element and/or component, but it is not excluded that existing or adding One or more other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange Diction "and/or" includes the one or more associated wholes or any cell of listing item and all combination.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also It is understood by, those terms defined in such as general dictionary, it should be understood that with the context with prior art The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " had both included wireless communication The equipment of number receiver, it only possesses the equipment of the wireless signal receiver of non-emissive ability, and including receiving and launch hardware Equipment, its equipment with reception that two-way communication on bidirectional communication link, can be carried out and transmitting hardware.This equipment Can include:Honeycomb or other communication equipments, it has single line display or multi-line display or shows without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can With combine voice, data processing, fax and/or its communication ability;PDA (Personal Digital Assistant, it is personal Digital assistants), it can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day Go through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, its have and/or conventional laptop and/or palmtop computer including radio frequency receiver or its His equipment." terminal " used herein above, " terminal device " they can be portable, can transport, installed in the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, for example, can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or the equipment such as mobile phone, or intelligent television, Set Top Box with music/video playing function.
The source file of the Webpage browsed by mobile terminal include HTML (HyperText Markup Language, HTML) file.HTML is a kind of language for describing webpage.In requested webpage, mobile terminal can be with root Download according to URL (Uniform Resource Locator, URL) corresponding with web-page requests operation with it is upper State web-page requests to operate corresponding html file and parse html file.It should be noted that URL can include pattern (or association View) part, website domain name (or IP address) part, path sections and file names portion etc., simple URL can be by alphabetical group Into such as " www.XXX.com ", or being made up of numeral, such as 192.46.20.40.In concrete application scene, in mobile terminal Browser is by URL from server request webpage.
Further, in order to strengthen the dynamic and interactivity of Webpage, can increase in partial page source file JS (JavaScript, script) element.Furthermore it is also possible to increase in page source file for rendering Webpage pattern CSS (Cascading Style Sheets, CSS) element, multimedia messages.Wherein, multimedia messages can be wrapped Include picture, video information, audio-frequency information etc..So, if page source file includes JS elements, CSS elements or multimedia messages Deng page elements, during mobile terminal is parsed to page source file, when the page elements for being resolved to needs loading When, above-mentioned page elements can be downloaded from server.
It should be noted that the download of each page source file or page elements correspond to a URL.In a net During the displaying of the page page, mobile terminal needs to download dozens of even up to a hundred page source files and page unit from server Element.Therefore, the displaying process of a Webpage can be related to dozens of even up to a hundred URL.
Fig. 1 for one embodiment of the invention mobile terminal client terminal in advertisement filter method schematic flow sheet.
Step S110:Obtain the multiple search result items obtained by the query word search that client is input into based on user.
For example, user is mounted with " XX search " client in mobile terminal such as smart mobile phone, when user is needed to a certain When vocabulary is scanned for, the vocabulary can be input into the client and be scanned for.Now, smart mobile phone can obtain above-mentioned Vocabulary simultaneously scans for obtaining multiple search result items corresponding with the vocabulary based on above-mentioned vocabulary.
Step S120:When the web-page requests operation that user triggers for arbitrary search result items is detected, from server Obtain page source file corresponding with web-page requests.
It should be noted that user can include user to searching for the web-page requests operation of arbitrary search result items triggering Operation that rope result items are clicked on etc..
For example, when user's input inquiry word " Chinese cuisines " in mobile terminal client terminal are detected, obtain based on " in State's cuisines " multiple search result items for obtaining of search simultaneously show multiple search result items;Then, user is to multiple search result items In one click on search result items interested when producing interest, wherein, website domain name corresponding with the result items is " www.XXX.com ", mobile terminal can be generated and the web-page requests information comprising website domain name " www.XXX.com ";Then, Web-page requests information can be sent to server corresponding with website domain name " www.XXX.com ";Subsequently, the server is received To the web-page requests information from mobile terminal, and return html file corresponding with web-page requests information.
Step S130:Web advertisement filtering rule according to prestoring is parsed to page source file, by page source document Advertising message in part is filtered.
It is alternatively possible to obtain the web advertisement filtering rule for prestoring from server.It should be noted that first, service Device can be analyzed to magnanimity Webpage and be determined that the URL in which page source file is included extensively by analysis result Announcement information;Subsequently, advertising message can be classified;Then, will be with different types of advertisement by different identification informations The corresponding URL of information is marked, and URL corresponding for different types of advertising message has different processing modes;Finally, Identification information and URL process sides corresponding with identification information based on URL URLs corresponding with different types of advertising message Formula generates web advertisement filtering rule and is issued to mobile terminal.
Preferably, as shown in Fig. 2 the step of being parsed to page source file according to the web advertisement filtering rule for prestoring Including step S210 and step S220:Step S210:Whether web advertisement filtering rule according to prestoring judges page source file Belong to preset web page address white list;Step S220:If so, the page source file to belonging to web page address white list is then forbidden Filtered.
It should be noted that mobile terminal need not be filtered to the web advertisement for being illustrated in some special websites.Example Such as, the product advertising information for showing in the sidebar of the Webpage of website " Taobao " that is, need not as advertisement filter The Webpage of the website is filtered.Therefore, server, can be by " Taobao " when web advertisement filtering rule is generated Web page address add web page address white list.When server will the web page address white list comprising the web page address of " Taobao " Web advertisement filtering rule when being issued to mobile terminal, mobile terminal receives and stores the web advertisement filtering rule.So, When mobile terminal opens the Webpage of website " Taobao " and downloads the page source file of " Taobao ", according to above-mentioned webpage Advertisement filter rule may determine that the page source file of " Taobao " belongs to preset web page address white list.Further, it is right to forbid The page source file for belonging to " Taobao " of web page address white list is filtered, to avoid the web advertisement to special website Manslaughter.
However, for the general website for needing to filter web advertisement, can be filtered by following methods:
Preferably, as shown in figure 3, being parsed to source file according to the web advertisement filtering rule for prestoring, by the page The step of advertising message in source file is filtered includes step S310 and step S320:Step S310:When judging page source file When being not belonging to web page address white list, the arbitrary unified money in page source file is judged according to the web advertisement filtering rule for prestoring Whether the page elements that source finger URL is pointed to include advertising message;Step S320:If so, the page elements for pointing to are included into advertisement The URL of information is filtered.
Preferably, page elements include but is not limited at least in script, CSS, multimedia messages .
It should be noted that when the page elements for judging the sensing of the arbitrary URL in page source file are included During advertising message, during parsing page source file, above-mentioned URL can be skipped and it is not loaded.
For example, in requested webpage A, mobile terminal obtains the source file ind ex.HTML of webpage A from server, wherein, Index.HTML includes URL " http://image.baidu.com/searc h/detailCt=503316480 ", should The page elements that URL is pointed to are pictorial information B;Then, the webpage ground of webpage A is judged according to the web advertisement filtering rule for prestoring Whether location belongs to preset web page address white list;When the web page address for judging webpage A is not belonging to the white name of preset web page address Dan Shi, is filtered and is parsed index.HTML to webpage A;During parsing index.HTML, when being resolved to above-mentioned URL When, judge whether the pictorial information B that the URL is pointed to includes advertising message;When judging that pictorial information B includes advertising message, can It is not loaded with skipping above-mentioned URL, to realize not showing the pictorial information B comprising advertising message.
Alternatively, method provided in an embodiment of the present invention also includes step S150, step S160 and step S170:Step S150:When judging that page source file is not belonging to web page address white list, page is judged according to the web advertisement filtering rule for prestoring Whether arbitrary page elements that face source file includes belong to the page elements of predefined type;Step S160:If so, then loaded page Surface element;Step S170:After the completion of page source file after loading is filtered is detected, delete page elements and load knot accordingly Really.
It should be noted that the page elements comprising advertising message special for part, such as must load a spy The fixed whole Webpage of the ability normal load of the JS elements comprising advertising message, first can be by way of JS injects to upper State JS elements to be loaded, loading result corresponding with the JS elements is subsequently deleted again, to reach the whole webpage of first normal load The page deletes again the purpose of advertisement part.
When server generates web advertisement filtering rule, can be by the special page comprising advertising message in above-mentioned part Element is put into web advertisement filtering rule as the page elements of predefined type.Therefore, when server filters web advertisement When rule is issued to mobile terminal, mobile terminal reception web advertisement filtering rule simultaneously can be according to the web advertisement filtering rule Whether arbitrary page elements that judging page source file includes belong to the page elements of predefined type.
Step S140:Load the page source file after filtering to carry out web page display in the client.
By advertisement filter method in mobile terminal client terminal provided in an embodiment of the present invention, according to the web advertisement for prestoring Filtering rule is parsed to page source file, and the advertising message in page source file is filtered, after loading is filtered Page source file can be by the even webpage corresponding with web-page requests not comprising advertising message comprising a small amount of advertising message The page is shown, and to reduce the interference of redundancy, the cost that user browses webpage is reduced, so as to improve Consumer's Experience.
Fig. 4 for one embodiment of the invention mobile terminal client terminal in advertisement filter device structural representation.The dress Putting to include:First acquisition module 410, the second acquisition module 420, parsing module 430 and load-on module 440.Below for The concrete effect of modules is described further:
First acquisition module 410 obtains the multiple search knot obtained by the query word search that client is input into based on user Fruit item.
For example, user is mounted with " XX search " client in mobile terminal such as smart mobile phone, when user is needed to a certain When vocabulary is scanned for, the vocabulary can be input into the client and be scanned for.Now, smart mobile phone can obtain above-mentioned Vocabulary simultaneously scans for obtaining multiple search result items corresponding with the vocabulary based on above-mentioned vocabulary.
Second acquisition module 420 when detect user for arbitrary search result items triggering web-page requests operate when, from Server obtains page source file corresponding with web-page requests.
It should be noted that user can include user to searching for the web-page requests operation of arbitrary search result items triggering Operation that rope result items are clicked on etc..
For example, when user's input inquiry word " Chinese cuisines " in mobile terminal client terminal are detected, obtain based on " in State's cuisines " multiple search result items for obtaining of search simultaneously show multiple search result items;Then, user is to multiple search result items In one click on search result items interested when producing interest, wherein, website domain name corresponding with the result items is " www.XXX.com ", mobile terminal can be generated and the web-page requests information comprising website domain name " www.XXX.com ";Then, Web-page requests information can be sent to server corresponding with website domain name " www.XXX.com ";Subsequently, the server is received To the web-page requests information from mobile terminal, and return html file corresponding with web-page requests information.
Parsing module 430 is parsed according to the web advertisement filtering rule for prestoring to page source file, by page source Advertising message in file is filtered.
Alternatively, device provided in an embodiment of the present invention also includes the 3rd acquisition module:3rd acquisition module is from server The web advertisement filtering rule that acquisition prestores.It should be noted that first, server can be analyzed to magnanimity Webpage And determine that the URL in which page source file includes advertising message by analysis result;Subsequently, advertising message can be entered Row classification;Then, URL corresponding with different types of advertising message is marked by different identification informations, for not There are different processing modes in the corresponding URL of advertising message of same type;Finally, based on URL and different types of advertising message The identification information and URL processing modes corresponding with identification information of corresponding URL generates web advertisement filtering rule and issues To mobile terminal.
Preferably, parsing module 420 includes white list judging unit and forbids filter element:White list judging unit according to The web advertisement filtering rule for prestoring judges whether page source file belongs to preset web page address white list;Forbid filter element When page source file belongs to preset web page address white list, the page source file to belonging to web page address white list is forbidden to enter Row is filtered.
It should be noted that mobile terminal need not be filtered to the web advertisement for being illustrated in some special websites.Example Such as, the product advertising information for showing in the sidebar of the Webpage of website " Taobao " that is, need not as advertisement filter The Webpage of the website is filtered.Therefore, server, can be by " Taobao " when web advertisement filtering rule is generated Web page address add web page address white list.When server will the web page address white list comprising the web page address of " Taobao " Web advertisement filtering rule when being issued to mobile terminal, mobile terminal receives and stores the web advertisement filtering rule.So, When mobile terminal opens the Webpage of website " Taobao " and downloads the page source file of " Taobao ", according to above-mentioned webpage Advertisement filter rule may determine that the page source file of " Taobao " belongs to preset web page address white list.Further, it is right to forbid The page source file for belonging to " Taobao " of web page address white list is filtered, to avoid the web advertisement to special website Manslaughter.
However, for the general website for needing to filter web advertisement, can be filtered by following apparatus:
Preferably, parsing module 420 includes element judging unit and information filtering unit:Element judging unit ought judge page When face source file is not belonging to web page address white list, appointing in page source file, is judged according to the web advertisement filtering rule for prestoring Whether the page elements that one URL is pointed to include advertising message;Information filtering unit is when appointing in page source file When the page elements that one URL is pointed to include advertising message, by system of the page elements comprising advertising message for pointing to One URLs is filtered.
Preferably, page elements include but is not limited at least in script, CSS, multimedia messages .
It should be noted that when the page elements for judging the sensing of the arbitrary URL in page source file are included During advertising message, during parsing page source file, above-mentioned URL can be skipped and it is not loaded.
For example, in requested webpage A, mobile terminal obtains the source file ind ex.HTML of webpage A from server, wherein, Index.HTML includes URL " http://image.baidu.com/searc h/detailCt=503316480 ", should The page elements that URL is pointed to are pictorial information B;Then, the webpage ground of webpage A is judged according to the web advertisement filtering rule for prestoring Whether location belongs to preset web page address white list;When the web page address for judging webpage A is not belonging to the white name of preset web page address Dan Shi, is filtered and is parsed index.HTML to webpage A;During parsing index.HTML, when being resolved to above-mentioned URL When, judge whether the pictorial information B that the URL is pointed to includes advertising message;When judging that pictorial information B includes advertising message, can It is not loaded with skipping above-mentioned URL, to realize not showing the pictorial information B comprising advertising message.
Alternatively, device provided in an embodiment of the present invention also includes judge module, load-on module and removing module:Judge mould Block judges page source when judging that page source file is not belonging to web page address white list according to the web advertisement filtering rule for prestoring Whether arbitrary page elements that file includes belong to the page elements of predefined type;Load-on module includes when page source file Arbitrary page elements when belonging to the page elements of predefined type, loading page element;Removing module ought detect loading and filter After the completion of page source file afterwards, the corresponding loading result of page elements is deleted.
It should be noted that the page elements comprising advertising message special for part, such as must load a spy The fixed whole Webpage of the ability normal load of the JS elements comprising advertising message, first can be by way of JS injects to upper State JS elements to be loaded, loading result corresponding with the JS elements is subsequently deleted again, to reach the whole webpage of first normal load The page deletes again the purpose of advertisement part.
When server generates web advertisement filtering rule, can be by the special page comprising advertising message in above-mentioned part Element is put into web advertisement filtering rule as the page elements of predefined type.Therefore, when server filters web advertisement When rule is issued to mobile terminal, mobile terminal reception web advertisement filtering rule simultaneously can be according to the web advertisement filtering rule Whether arbitrary page elements that judging page source file includes belong to the page elements of predefined type.
Load-on module 440 loads the page source file after filtering to carry out web page display in the client.
By advertisement filter device in mobile terminal client terminal provided in an embodiment of the present invention, according to the web advertisement for prestoring Filtering rule is parsed to page source file, and the advertising message in page source file is filtered, after loading is filtered Page source file can be by the even webpage corresponding with web-page requests not comprising advertising message comprising a small amount of advertising message The page is shown, and to reduce the interference of redundancy, the cost that user browses webpage is reduced, so as to improve Consumer's Experience.
During those skilled in the art of the present technique are appreciated that the present invention includes being related to for performing operation described herein One or more of equipment.These equipment can be for needed for purpose and specially design and manufacture, or can also include general Known device in computer.These equipment have the computer program being stored in it, and these computer programs are optionally Activation is reconstructed.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or be stored in It is suitable to store and e-command and is coupled to respectively in any kind of medium of bus, the computer-readable medium is included but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light line card Piece.It is, computer-readable recording medium include being stored in the form of it can read by equipment (for example, computer) or transmission information any Jie Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or The combination of each frame and these structure charts and/or block diagram and/or the frame in flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that can by these computer program instructions be supplied to all-purpose computer, special purpose computer or other The processor of programmable data processing method realizing, so as to pass through the process of computer or other programmable data processing methods Device is come the scheme specified in the frame or multiple frames that perform structure chart disclosed by the invention and/or block diagram and/or flow graph.
Those skilled in the art of the present technique are appreciated that in various operations, method, the flow process discussed in the present invention Step, measure, scheme can be replaced, changed, combined or deleted.Further, it is each with what is discussed in the present invention Other steps, measure in kind operation, method, flow process, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, it is of the prior art with various operations, method, the flow process disclosed in the present invention in step, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (12)

1. a kind of advertisement filter method in mobile terminal client terminal, it is characterised in that include:
Obtain the multiple search result items obtained by the query word search that client is input into based on user;
When detect the user for arbitrary search result items triggering web-page requests operate when, from server obtain with it is described The corresponding page source file of search result items;
The page source file is parsed according to the web advertisement filtering rule for prestoring, by the advertisement in page source file Information filtering;
Load the page source file after filtering to carry out web page display in the client.
2. method according to claim 1, it is characterised in that according to the web advertisement filtering rule for prestoring to the page Source file is parsed, including:
Web advertisement filtering rule according to prestoring judges whether the page source file belongs to preset web page address white list;
If so, the page source file to belonging to the web page address white list is then forbidden to filter.
3. method according to claim 1 and 2, it is characterised in that according to the web advertisement filtering rule for prestoring to described Source file is parsed, and the advertising message in page source file is filtered, including:
When judging that the page source file is not belonging to the web page address white list, according to the web advertisement filtering rule for prestoring Judge whether the page elements that the arbitrary URL in the page source file is pointed to include advertising message;
If so, URL of the page elements comprising advertising message for pointing to is filtered.
4. the method according to any one of claim 1-3, it is characterised in that methods described also includes:
When judging that the page source file is not belonging to the web page address white list, according to the web advertisement filtering rule for prestoring Whether arbitrary page elements that judging the page source file includes belong to the page elements of predefined type;
If so, the page elements are then loaded;
After the completion of page source file after loading is filtered is detected, the corresponding loading result of the page elements is deleted.
5. the method according to any one of claim 1-4, it is characterised in that the page elements include script, At least one in CSS, multimedia messages.
6. the method according to any one of claim 1-5, it is characterised in that from server obtain described in the webpage that prestores Advertisement filter rule.
7. advertisement filter device in a kind of mobile terminal client terminal, it is characterised in that include:
First acquisition module, for obtaining the multiple Search Results obtained by the query word search that client is input into based on user ;
Second acquisition module, for when detect the user for arbitrary search result items triggering web-page requests operate when, Page source file corresponding with the Search Results is obtained from server;
Parsing module, for being parsed to the page source file according to the web advertisement filtering rule for prestoring, by the page Advertising message in source file is filtered;
Load-on module, for loading the page source file after filtering to carry out web page display in the client.
8. device according to claim 7, it is characterised in that the parsing module includes:
White list judging unit, for judging whether the page source file belongs to pre- according to the web advertisement filtering rule for prestoring The web page address white list put;
Forbid filter element, for when the page source file belongs to preset web page address white list, forbidding to belonging to The page source file for stating web page address white list is filtered.
9. the device according to claim 7 or 8, it is characterised in that the parsing module includes:
Element judging unit, for when judging that the page source file is not belonging to the web page address white list, according to prestoring Web advertisement filtering rule judge whether is page elements that arbitrary URL in the page source file points to Comprising advertising message;
Information filtering unit, for including when the page elements that the arbitrary URL in the page source file is pointed to During advertising message, URL of the page elements comprising advertising message for pointing to is filtered.
10. the device according to any one of claim 7-9, it is characterised in that described device also includes:
Judge module, for when judging that the page source file is not belonging to the web page address white list, according to the net for prestoring Whether arbitrary page elements that page source file described in page advertisement filter rule judgment includes belong to the page unit of predefined type Element;
Load-on module, the arbitrary page elements for including when the page source file belong to the page elements of predefined type When, load the page elements;
Removing module, for after the completion of page source file after loading is filtered is detected, deleting the page elements corresponding Loading result.
11. devices according to any one of claim 7-10, it is characterised in that the page elements include script language At least one in speech, CSS, multimedia messages.
12. devices according to any one of claim 7-11, it is characterised in that described device also includes:
3rd acquisition module, for from the web advertisement filtering rule prestored described in server acquisition.
CN201611235701.9A 2016-12-28 2016-12-28 Method and device for filtering advertisement in mobile terminal client Pending CN106649787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611235701.9A CN106649787A (en) 2016-12-28 2016-12-28 Method and device for filtering advertisement in mobile terminal client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611235701.9A CN106649787A (en) 2016-12-28 2016-12-28 Method and device for filtering advertisement in mobile terminal client

Publications (1)

Publication Number Publication Date
CN106649787A true CN106649787A (en) 2017-05-10

Family

ID=58831821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611235701.9A Pending CN106649787A (en) 2016-12-28 2016-12-28 Method and device for filtering advertisement in mobile terminal client

Country Status (1)

Country Link
CN (1) CN106649787A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107871017A (en) * 2017-11-27 2018-04-03 腾讯数码(天津)有限公司 A kind of detection method and device of information filtering function
CN108092965A (en) * 2017-12-11 2018-05-29 安徽省泾县汪六吉宣纸有限公司 A kind of Ad blocking method of mobile terminal web browsing
CN109471974A (en) * 2018-11-02 2019-03-15 北京字节跳动网络技术有限公司 Filter method, apparatus, electronic equipment and the storage medium of third party's web advertisement
CN110110232A (en) * 2019-04-30 2019-08-09 努比亚技术有限公司 Page promotion link filter method, computer readable storage medium and mobile terminal
CN110413866A (en) * 2018-04-27 2019-11-05 北京搜狗科技发展有限公司 Data processing method and device, the device for data processing
CN111400579A (en) * 2020-03-02 2020-07-10 深圳市芯众云科技有限公司 Intelligent hardware search engine system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001059612A2 (en) * 2000-02-14 2001-08-16 Adscience Limited Improvements relating to data filtering
CN103593354A (en) * 2012-08-15 2014-02-19 腾讯科技(深圳)有限公司 Method, device, server and system for filtering network page advertisements
CN104468551A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Method and device for saving traffic based on advertisement blocking
CN104572798A (en) * 2014-07-25 2015-04-29 上海二三四五网络科技有限公司 Method, equipment and system for processing webpage
CN105512126A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Methods and devices for filtering and hiding webpage advertisement, and methods and devices for issuing filtering and hiding rules of webpage advertisement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001059612A2 (en) * 2000-02-14 2001-08-16 Adscience Limited Improvements relating to data filtering
CN103593354A (en) * 2012-08-15 2014-02-19 腾讯科技(深圳)有限公司 Method, device, server and system for filtering network page advertisements
CN104572798A (en) * 2014-07-25 2015-04-29 上海二三四五网络科技有限公司 Method, equipment and system for processing webpage
CN105512126A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Methods and devices for filtering and hiding webpage advertisement, and methods and devices for issuing filtering and hiding rules of webpage advertisement
CN104468551A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Method and device for saving traffic based on advertisement blocking

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHOKCOCO: ""清除页面广告?身为前端,自己做一款简易的chrome扩展吧"", 《博客园》 *
也二季度JJC: ""360浏览器怎么设置拦截所有广告"", 《百度经验》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107871017A (en) * 2017-11-27 2018-04-03 腾讯数码(天津)有限公司 A kind of detection method and device of information filtering function
CN107871017B (en) * 2017-11-27 2023-05-09 腾讯数码(天津)有限公司 Method and device for detecting information filtering function
CN108092965A (en) * 2017-12-11 2018-05-29 安徽省泾县汪六吉宣纸有限公司 A kind of Ad blocking method of mobile terminal web browsing
CN110413866A (en) * 2018-04-27 2019-11-05 北京搜狗科技发展有限公司 Data processing method and device, the device for data processing
CN110413866B (en) * 2018-04-27 2024-02-02 北京搜狗科技发展有限公司 Data processing method and device for data processing
CN109471974A (en) * 2018-11-02 2019-03-15 北京字节跳动网络技术有限公司 Filter method, apparatus, electronic equipment and the storage medium of third party's web advertisement
CN110110232A (en) * 2019-04-30 2019-08-09 努比亚技术有限公司 Page promotion link filter method, computer readable storage medium and mobile terminal
CN111400579A (en) * 2020-03-02 2020-07-10 深圳市芯众云科技有限公司 Intelligent hardware search engine system

Similar Documents

Publication Publication Date Title
CN106649787A (en) Method and device for filtering advertisement in mobile terminal client
CN103577597B (en) Keyword search system based on current browse webpage
RU2522103C2 (en) Update notification method and browser
CN103577596B (en) Keyword search methodology and device based on current browse webpage
CN103577595B (en) Keyword method for pushing and device based on current browse webpage
CN107256232B (en) Information recommendation method and device
US9223895B2 (en) System and method for contextual commands in a search results page
US20130212639A1 (en) Method, System And Apparatus For Improving Security Level Of A Terminal When Surfing Internet
CN102098234A (en) Method and device for providing target content based on hyperlink in instant communication message
CN106790589A (en) Advertisement filter method and device in mobile terminal client terminal
CN105320661A (en) Resource downloading method and device
CN104144357B (en) Video broadcasting method and system
CN103488786A (en) Method and client terminal for providing information search
JP2011175611A (en) Mobile terminal device
CN102541853A (en) Method and device which are capable of obtaining application information by utilizing browser address bar
US10169477B2 (en) Method and system for rendering a web page free of inappropriate URLs
WO2011140784A1 (en) Method for screening mobile terminal from accessing wireless network information, mobile terminal and system thereof
US20090089245A1 (en) System and method for contextual commands in a search results page
CN100419758C (en) An embedded browsing device and method
US9398105B2 (en) Method for providing a third party service associated with a network-accessible site using a single scripting approach
CN104573120A (en) Recommendation information obtaining method and device for terminal
JP2006139470A (en) Information provision device, information provision method and program therefor
CN105893584A (en) Method, client and system for displaying website label of favorites
JP4503464B2 (en) Content relay server, content distribution system, and content relay method
CN103718179A (en) Information processing apparatus, information processing method, information processing program, and storage medium having information processing program stored therein

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510