CN104731868B - Intercept the method and device of advertisement - Google Patents

Intercept the method and device of advertisement Download PDF

Info

Publication number
CN104731868B
CN104731868B CN201510091684.5A CN201510091684A CN104731868B CN 104731868 B CN104731868 B CN 104731868B CN 201510091684 A CN201510091684 A CN 201510091684A CN 104731868 B CN104731868 B CN 104731868B
Authority
CN
China
Prior art keywords
web page
network
advertising information
network operator
page code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510091684.5A
Other languages
Chinese (zh)
Other versions
CN104731868A (en
Inventor
范金松
张少伟
曹双喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510091684.5A priority Critical patent/CN104731868B/en
Publication of CN104731868A publication Critical patent/CN104731868A/en
Application granted granted Critical
Publication of CN104731868B publication Critical patent/CN104731868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure discloses a kind of method and devices for intercepting advertisement, belong to field of terminal technology.Method includes: to send web access requests to specified uniform resource position mark URL address when the network for detecting terminal access switches;The web page code of the corresponding webpage in the address URL is received, and detects whether that there are the advertising informations that network operator is implanted into web page code;If detecting the advertising information of network operator's implantation in web page code, Ad blocking is carried out according to the advertising information of network operator's implantation.The disclosure is by sending webpage acquisition request to the specified address URL when detecting that the network of terminal access switches;Determined whether according to the web page code in the webpage got by network operator's product placement information;When detect be implanted advertising information after carry out Ad blocking.The interception for realizing the advertising information to network operator's implantation, improves the intercepting efficiency to advertising information, and improve the reading efficiency of customer access network.

Description

Intercept the method and device of advertisement
Technical field
This disclosure relates to field of terminal technology, in particular to a kind of method and device for intercepting advertisement.
Background technique
With the development of internet, more and more users access network using various terminals in work and life.
In customer access network, the network operation chamber of commerce for providing network insertion service, which exists, to kidnap user network and then adds The case where adding advertisement generation.Wherein, the process of user network is kidnapped are as follows: the web page access that the network operation chamber of commerce sends according to terminal Request is added into the corresponding code of advertising information in the web page code that web page server returns.These advertising informations can be more Web page code after changing is display together after being parsed by terminal with information original in webpage.
Summary of the invention
In order to solve the problems, such as that the relevant technologies, the embodiment of the present disclosure provide a kind of method and device for intercepting advertisement.Institute It is as follows to state technical solution:
According to the first aspect of the embodiments of the present disclosure, a kind of method intercepting advertisement is provided, comprising:
When the network for detecting terminal access switches, net is sent to specified uniform resource position mark URL address Access to web page request;
The web page code of the corresponding webpage in the address URL is received, and detects whether that there are nets in the web page code The advertising information of network operator implantation;
If the advertising information of network operator's implantation is detected in the web page code, according to the network operation The advertising information of quotient's implantation carries out Ad blocking.
It is optionally, described to detect whether that there are the advertising informations that network operator is implanted into the web page code, comprising:
Obtain the default code of the specified corresponding webpage in the address URL;
The default code is compared with the web page code;
If detecting that the default code and the web page code be not identical, it is determined that detected in the web page code The advertising information of network operator's implantation;
Increased label substance is determined as the advertising information of network operator's implantation in the web page code that will test.
Optionally, the advertising information according to network operator implantation carries out Ad blocking, comprising:
Agreement is generated according to default rule, generates the corresponding filtering rule of advertising information of network operator's implantation Then;
The filtering module filtering rule being added into browser.
Optionally, after the advertising information according to network operator implantation carries out Ad blocking, the method Further include:
Obtain the network identity that the terminal is currently accessed;
The corresponding relationship of the network identity and the filtering rule is sent to cloud server.
Optionally, the method also includes:
When detecting that the terminal calls specified call back function, determine that the network of the terminal access switches.
According to the second aspect of an embodiment of the present disclosure, a kind of device intercepting advertisement is provided, comprising:
First sending module, for being determined to specified unified resource when the network for detecting terminal access switches The position symbol address URL sends web access requests;
Receiving module, for receiving the web page code of the corresponding webpage in the address URL;
Detection module, for detecting whether that there are the advertising informations that network operator is implanted into the web page code;
Blocking module, when for detecting the advertising information of network operator's implantation in the web page code, according to institute The advertising information for stating network operator's implantation carries out Ad blocking.
Optionally, the detection module, comprising:
Acquiring unit, for obtaining the default code of the specified corresponding webpage in the address URL;
Comparing unit, for the default code to be compared with the web page code;
First determination unit, described in determining when detecting that the default code and the web page code be not identical The advertising information of network operator's implantation is detected in web page code;
Second determination unit, increased label substance is determined as network operation in the web page code for will test The advertising information of quotient's implantation.
Optionally, the blocking module, comprising:
Generation unit generates the advertising information of network operator's implantation for generating agreement according to default rule Corresponding filtering rule;
Adding unit, the filtering module for being added into the filtering rule in browser.
Optionally, described device further include:
Obtain module, the network identity being currently accessed for obtaining the terminal;
Second sending module, for the corresponding relationship of the network identity and the filtering rule to be sent to cloud service Device.
Optionally, described device further include:
Determining module, for when detecting that the terminal calls specified call back function, determining the terminal access Network switches.
According to the third aspect of an embodiment of the present disclosure, a kind of device intercepting advertisement is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When the network for detecting terminal access switches, net is sent to specified uniform resource position mark URL address Access to web page request;
The web page code of the corresponding webpage in the address URL is received, and detects whether that there are nets in the web page code The advertising information of network operator implantation;
If the advertising information of network operator's implantation is detected in the web page code, according to the network operation The advertising information of quotient's implantation carries out Ad blocking.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By sending webpage acquisition request to the specified address URL when detecting that the network of terminal access switches; Determined whether according to the web page code in the webpage got by network operator's product placement information;It is implanted when detecting Ad blocking is carried out after advertising information.The interception for realizing the advertising information to network operator's implantation, improves and believes advertisement The intercepting efficiency of breath, and improve the reading efficiency of customer access network.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of method for intercepting advertisement shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of method for intercepting advertisement shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of method for intercepting advertisement shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of device for intercepting advertisement shown according to an exemplary embodiment;
Fig. 5 is the block diagram of detection module in a kind of device for intercepting advertisement shown according to an exemplary embodiment;
Fig. 6 is the block diagram of blocking module in a kind of device for intercepting advertisement shown according to an exemplary embodiment;
Fig. 7 be it is shown according to an exemplary embodiment it is a kind of intercept advertisement device block diagram (mobile terminal it is general Structure).
Specific embodiment
To keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party Formula is described in further detail.
An exemplary embodiment of the present disclosure provides a kind of method for intercepting advertisement, this method embodiment is applied to terminal In, referring to Fig. 1, method flow includes:
In a step 101, when the network for detecting terminal access switches, to specified uniform resource locator The address URL sends web access requests;
In a step 102, the web page code of the corresponding webpage in the address URL is received, and detects whether to deposit in web page code In the advertising information of network operator's implantation;
In step 103, if the advertising information of network operator's implantation is detected in web page code, according to network The advertising information of operator's implantation carries out Ad blocking.
The disclosure is by sending webpage to the specified address URL and obtaining when detecting that the network of terminal access switches Take request;Determined whether according to the web page code in the webpage got by network operator's product placement information;When detecting Ad blocking is carried out after being implanted advertising information.The interception for realizing the advertising information to network operator's implantation, improves To the intercepting efficiency of advertising information, and improve the reading efficiency of customer access network.
Disclosure another exemplary embodiment provides a kind of method for intercepting advertisement, and this method embodiment is applied to terminal In, referring to fig. 2, method flow includes:
In step 201, when detecting that terminal calls specified call back function, determine that the network of terminal access is cut It changes.
When system operates normally, corresponding operation can be carried out according to the various situations detected.In the embodiment of the present disclosure In, network that system detection to terminal accesses by WIFI (WIreless-Fidelity, Wireless Fidelity) be changed to 2G or 3G or When person's 4G network, then specified call back function can be called, it can be with are as follows: onConnectionChange function.Detecting that this refers to When fixed call back function is called, it is determined that detect that the network of terminal access is switched, execute the disclosure at this time and implement The process of interception advertisement in example.
Optionally, network switching can also be to be WIFI network by 2G, 3G, 4G network switching, and the mode of network switching exists This is not limited.
In step 202, when the network for detecting terminal access switches, to specified uniform resource locator The address URL sends web access requests.
One URL (Uniform Resoure Locator, uniform resource locator) address is set in the terminal in advance, The webpage that the address URL is directed toward is that a content is empty webpage, i.e., the web page code in the webpage only includes generating a net Page in most basic structure code, may include<body>deng the composition most basic label substance of webpage.
In addition, the corresponding default code of the webpage is preserved in the terminal, for obtaining with by sending web access requests The web page code for the webpage got is compared.
Optionally, the webpage which is directed toward may be that content is not empty webpage, save in corresponding terminal The corresponding default code of webpage is identical as the web page code holding of webpage that the address URL is directed toward.Wherein use blank webpage This mode, on the one hand can be in each network switching of terminal to for detecting whether network occurs network operator's abduction When, reduce the flow for carrying out web page access;On the other hand, the operand when carrying out web page code comparison can also be reduced.
In step 203, the web page code of the corresponding webpage in the address URL is received.
In step 204, detect whether that there are the advertising informations that network operator is implanted into web page code.
Wherein, the process detected in web page code can be realized by following steps:
In step 2041, the default code of the specified corresponding webpage in the address URL is obtained.
Wherein, default code is original code in the specified corresponding webpage in the address URL pre-saved.
In step 2042, default code is compared with web page code.
Wherein, the mode of comparison can be to be compared the code in two pages line by line.
In step 2043, if detecting that default code is not identical as web page code, it is determined that detected in web page code The advertising information being implanted into network operator.
In step 2044, increased label substance is determined as network operator's implantation in the web page code that will test Advertising information.
Such as: additional increased script label, < script charset=" are detected in the web page code UTF-8"defer=""src="http://www.example.com/ads/ad.js"></script>;It is interior in the label Hold the advertising information of as network operator's implantation.Content in the label can belong in web analysis according to " src " in label Property in content obtain advertising pictures, and be loaded onto the Webpage and shown.
In step 205, if the advertising information of network operator's implantation is detected in web page code, according to network The advertising information of operator's implantation carries out Ad blocking.
Once confirmation is current to occur network operator's abduction, then the operation of Ad blocking is carried out.Wherein, the behaviour of Ad blocking The process of work can be realized by following steps:
In step 2051, agreement is generated according to default rule, the advertising information for generating network operator's implantation is corresponding Filtering rule.
Filtering module can be generally equipped in the browser of terminal, which may belong to the mould carried in browser Block can also increase filtering module by additional plug-in unit in a browser.The filtering module can be according to preset filtering rule Advertising information in the webpage of display is filtered.
Wherein, filtering rule can generate agreement according to default rule and predetermined advertising information is generated It obtains.It therefore, in the embodiments of the present disclosure, can basis after the advertising information for having got current network operator implantation The advertising information of the implantation generates corresponding filtering rule.
In step 2052, the filtering module that filtering rule is added into browser.
The filtering rule of generation is added after filtering module, it can, will be current in the web page access after terminal The advertisement that network operator is implanted into web page code is filtered.
Optionally, if having no filtering module in browser when to Ad blocking in terminal, also come without additional plug-in unit Realize filtering function, then can be in the web page access after terminal, inquiry is with the presence or absence of pre- in the web page code got The first advertising information of determining implantation, deletes the advertising information of implantation if inquiring, then solved in web page code The process analysing web page code and showing.
The disclosure is by sending webpage to the specified address URL and obtaining when detecting that the network of terminal access switches Take request;Determined whether according to the web page code in the webpage got by network operator's product placement information;When detecting Ad blocking is carried out after being implanted advertising information.The interception for realizing the advertising information to network operator's implantation, improves To the intercepting efficiency of advertising information, and improve the reading efficiency of customer access network.
Disclosure another exemplary embodiment provides a kind of method for intercepting advertisement, and this method embodiment is applied to terminal In, referring to Fig. 3, method flow includes:
In step 301, the network identity that terminal is currently accessed is obtained.
In the embodiments of the present disclosure, the filtering rule that terminal can will test generation is synchronized to cloud server, on the one hand It can be backed up server beyond the clouds;On the other hand, which can be shared into other use by cloud server The terminal at family collects the filtering rule that each terminal reports by cloud server, can be when terminal system upgrades, or carries out When the edition upgrading of browser, or filtering rule is synchronized in the terminal of each user by the mode directly pushed.
Wherein, when accessing WIFI network, network identity can be SSID (Service Set Identifier, service Set identifier);When accessing 2G, 3G or 4G network, network identity can be the mark of operator.
In step 302, the corresponding relationship of network identity and filtering rule is sent to cloud server.
Cloud server can distinguish each filtering rule according to network identity, and can be according to network identity to each terminal The various filtering rules reported carry out statistic of classification.Further according to the network that each terminal is commonly used, the mistake for adapting to each terminal is chosen Filter regular collection is pushed.
It is synchronous that the embodiment of the present disclosure passes through the corresponding filtering rule of advertising information that the network operator that will test is implanted into To cloud server, on the one hand filtering rule can be backed up;On the other hand it is also possible that cloud server is being received Classified and screened after collecting the filtering rule that each terminal reports, final realize will be suitable for the mistake of the network access of each terminal Regular and synchronized is filtered to each terminal, to improve Ad blocking effect.
Corresponding to the method for the interception advertisement that the above exemplary embodiments provide, disclosure another exemplary embodiment is provided A kind of device intercepting advertisement, referring to fig. 4, which includes:
First sending module 401 is configured as when the network for detecting terminal access switches, to specified unification Resource Locator URL address sends web access requests;
Receiving module 402 is configured as receiving the web page code of the corresponding webpage in the address URL;
Detection module 403 is configured as detecting whether that there are the advertising informations that network operator is implanted into web page code;
Blocking module 404, when being configured as detecting the advertising information of network operator's implantation in web page code, according to The advertising information of network operator's implantation carries out Ad blocking.
Wherein, as shown in figure 5, detection module 403, comprising:
Acquiring unit 4031 is configured as obtaining the default code of the specified corresponding webpage in the address URL;
Comparing unit 4032 is configured as default code being compared with web page code;
First determination unit 4033 is configured as determining webpage when detecting that default code and web page code be not identical The advertising information of network operator's implantation is detected in code;
Second determination unit 4034 is configured as increased label substance in the web page code that will test and is determined as network The advertising information of operator's implantation.
Wherein, as shown in fig. 6, blocking module 404, comprising:
Generation unit 4041 is configured as generating agreement according to default rule, generates the advertisement of network operator's implantation The corresponding filtering rule of information;
Adding unit 4042 is configured as the filtering module being added into filtering rule in browser.
Wherein, device further include:
Module 405 is obtained, is configured as obtaining the network identity that terminal is currently accessed;
Second sending module 406 is configured as the corresponding relationship of network identity and filtering rule being sent to cloud service Device.
Wherein, device further include:
Determining module 407 is configured as determining the net of terminal access when detecting that terminal calls specified call back function Network switches.
The disclosure is by sending webpage to the specified address URL and obtaining when detecting that the network of terminal access switches Take request;Determined whether according to the web page code in the webpage got by network operator's product placement information;When detecting Ad blocking is carried out after being implanted advertising information.The interception for realizing the advertising information to network operator's implantation, improves To the intercepting efficiency of advertising information, and improve the reading efficiency of customer access network.
In addition, being synchronized to cloud clothes by the corresponding filtering rule of advertising information that the network operator that will test is implanted into Business device, on the one hand can back up filtering rule;On the other hand it is also possible that cloud server is being collected into each end Classified and screened after holding the filtering rule reported, the filtering rule for the network access that final realization will be suitable for each terminal is same It walks to each terminal, to improve Ad blocking effect.
Corresponding to the method for the interception advertisement that the above exemplary embodiments provide, disclosure another exemplary embodiment is provided A kind of device 800 intercepting advertisement, referring to Fig. 7.For example, device 800 can be mobile phone, computer, digital broadcasting end End, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 7, device 800 may include following one or more components: processing component 802, memory 804, electric power Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between device 800 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 808 includes One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when equipment 800 is in operation mode It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, the relative positioning of component, such as component For the display and keypad of device 800, sensor module 814 can be with the position of 800 1 components of detection device 800 or device Set change, the existence or non-existence that user contacts with device 800, the temperature in 800 orientation of device or acceleration/deceleration and device 800 Variation.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, communication component 816 further includes near-field communication (NFC) module, to promote short range communication.For example, Radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth can be based in NFC module (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, Non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light Data storage device etc..
The disclosure is by sending webpage to the specified address URL and obtaining when detecting that the network of terminal access switches Take request;Determined whether according to the web page code in the webpage got by network operator's product placement information;When detecting Ad blocking is carried out after being implanted advertising information.The interception for realizing the advertising information to network operator's implantation, improves To the intercepting efficiency of advertising information, and improve the reading efficiency of customer access network.
In addition, being synchronized to cloud clothes by the corresponding filtering rule of advertising information that the network operator that will test is implanted into Business device, on the one hand can back up filtering rule;On the other hand it is also possible that cloud server is being collected into each end Classified and screened after holding the filtering rule reported, the filtering rule for the network access that final realization will be suitable for each terminal is same It walks to each terminal, to improve Ad blocking effect.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (8)

1. a kind of method for intercepting advertisement, which is characterized in that be applied to terminal, which comprises
When the network for detecting terminal access switches, webpage is sent to specified uniform resource position mark URL address and is visited Ask request, the specified corresponding webpage in the address URL is that a content is empty webpage;
The web page code of the specified corresponding webpage in the address URL is received, and detects whether exist in the web page code The advertising information of network operator's implantation;
If detecting the advertising information of network operator's implantation in the web page code, planted according to the network operator The advertising information entered carries out Ad blocking;
It is wherein, described to detect whether that there are the advertising informations that network operator is implanted into the web page code, comprising:
Obtain the default code of the specified corresponding webpage in the address URL;
The default code is compared with the web page code;
If detecting that the default code and the web page code be not identical, it is determined that detect network in the web page code The advertising information of operator's implantation;
Increased label substance is determined as the advertising information of network operator's implantation in the web page code that will test.
2. the method according to claim 1, wherein the advertising information being implanted into according to the network operator Carry out Ad blocking, comprising:
Agreement is generated according to default rule, generates the corresponding filtering rule of advertising information of network operator's implantation;
The filtering module filtering rule being added into browser.
3. the method according to claim 1, wherein the advertising information being implanted into according to the network operator After carrying out Ad blocking, the method also includes:
Obtain the network identity that the terminal is currently accessed;
The corresponding relationship of the network identity and filtering rule is sent to cloud server.
4. the method according to claim 1, wherein the method also includes:
When detecting that the terminal calls specified call back function, determine that the network of the terminal access switches.
5. a kind of device for intercepting advertisement, which is characterized in that be applied to terminal, described device includes:
First sending module, for when detect terminal access network switch when, to specified uniform resource locator The address URL sends web access requests, and the specified corresponding webpage in the address URL is that a content is empty webpage;
Receiving module, for receiving the web page code of the specified corresponding webpage in the address URL;
Detection module, for detecting whether that there are the advertising informations that network operator is implanted into the web page code;
Blocking module, when for detecting the advertising information of network operator's implantation in the web page code, according to the net The advertising information of network operator implantation carries out Ad blocking;
Wherein, the detection module, comprising:
Acquiring unit, for obtaining the default code of the specified corresponding webpage in the address URL;
Comparing unit, for the default code to be compared with the web page code;
First determination unit, for determining the webpage when detecting that the default code and the web page code be not identical The advertising information of network operator's implantation is detected in code;
Second determination unit, increased label substance is determined as network operator's plant in the web page code for will test The advertising information entered.
6. device according to claim 5, which is characterized in that the blocking module, comprising:
Generation unit, for generating agreement according to default rule, the advertising information for generating network operator's implantation is corresponding Filtering rule;
Adding unit, the filtering module for being added into the filtering rule in browser.
7. device according to claim 5, which is characterized in that described device further include:
Obtain module, the network identity being currently accessed for obtaining the terminal;
Second sending module, for the corresponding relationship of the network identity and filtering rule to be sent to cloud server.
8. device according to claim 5, which is characterized in that described device further include:
Determining module, for when detecting that the terminal calls specified call back function, determining the network of the terminal access It switches.
CN201510091684.5A 2015-02-28 2015-02-28 Intercept the method and device of advertisement Active CN104731868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510091684.5A CN104731868B (en) 2015-02-28 2015-02-28 Intercept the method and device of advertisement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510091684.5A CN104731868B (en) 2015-02-28 2015-02-28 Intercept the method and device of advertisement

Publications (2)

Publication Number Publication Date
CN104731868A CN104731868A (en) 2015-06-24
CN104731868B true CN104731868B (en) 2019-02-12

Family

ID=53455755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510091684.5A Active CN104731868B (en) 2015-02-28 2015-02-28 Intercept the method and device of advertisement

Country Status (1)

Country Link
CN (1) CN104731868B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780153B (en) * 2015-03-11 2018-06-19 小米科技有限责任公司 Information filtering method and device
CN108023867B (en) * 2016-10-28 2022-06-14 中国移动通信集团广东有限公司 Method for filtering mobile terminal webpage advertisement, gateway server and filtering server
CN108228680A (en) * 2016-12-22 2018-06-29 广州市动景计算机科技有限公司 The page is anti-to kidnap method, apparatus and client terminal
CN108574667B (en) * 2017-03-09 2021-01-15 华为技术有限公司 Service flow control method and device
CN107562864A (en) * 2017-08-30 2018-01-09 努比亚技术有限公司 A kind of advertisement screen method, mobile terminal and computer-readable recording medium
CN111242398B (en) * 2018-11-29 2024-06-07 北京搜狗科技发展有限公司 Data processing method and device for data processing
CN109618230B (en) * 2018-12-21 2022-03-11 深圳Tcl数字技术有限公司 Advertisement filtering method, intelligent terminal and computer readable storage medium
CN110365665A (en) * 2019-07-01 2019-10-22 珠海天燕科技有限公司 A kind of hold-up interception method of advertising resource, device and its equipment
CN112395521B (en) * 2019-08-19 2023-05-16 腾讯科技(武汉)有限公司 Page processing method, page processing device, electronic equipment and computer readable storage medium
CN112084503B (en) * 2020-09-18 2024-07-23 珠海豹趣科技有限公司 Interception rule base generation method and device and electronic equipment
CN112702212B (en) * 2021-01-13 2023-07-28 深圳市云天智能通讯有限公司 Multi-network mixed use communication system and terminal equipment
CN113269587A (en) * 2021-05-24 2021-08-17 上海妙契科技有限公司 Method, device, storage medium and server for monitoring illegal advertisements

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7386512B1 (en) * 2000-05-11 2008-06-10 Thomson Licensing Method and system for controlling and auditing content/service systems
US20070180147A1 (en) * 2006-02-01 2007-08-02 Connect It, Llc System for insertion of advertising content in user-requested internet web pages
US20120066070A1 (en) * 2009-06-01 2012-03-15 Yigang Cai Management of advertisements inserted in text/multimedia messages
CN102768664A (en) * 2011-05-06 2012-11-07 李超 Distributed webpage advertisement blocking method and system
US20130103502A1 (en) * 2011-09-06 2013-04-25 Telefonaktiebolaget Lm Ericsson (Publ) Method and Apparatus for Ad Insertion in Cellular Networks
CN103279710B (en) * 2013-04-12 2016-04-13 深圳市易聆科信息技术有限公司 Method and system for detecting malicious codes of Internet information system
CN103886088B (en) * 2014-03-28 2017-05-17 北京金山网络科技有限公司 Method and device for intercepting advertisements in webpage
CN103945266B (en) * 2014-04-17 2018-05-15 深圳创维数字技术有限公司 A kind of method, apparatus and system for handling advertisement
CN104021172B (en) * 2014-05-30 2017-07-28 北京搜狗科技发展有限公司 Advertisement filter method and advertisement filter device

Also Published As

Publication number Publication date
CN104731868A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN104731868B (en) Intercept the method and device of advertisement
CN104615655B (en) Information recommendation method and device
US20180121040A1 (en) Method and device for managing notification messages
CN108401487B (en) The frequency domain information indicating means of the public control resource collection of remaining critical system information
CN106919629B (en) Method and device for realizing information screening in group chat
CN104933170A (en) Information exhibition method and device
US10324910B2 (en) Contact record processing method and apparatus
US9924334B1 (en) Message pushing method, terminal equipment and computer-readable storage medium
CN111031002B (en) Broadcast discovery method, broadcast discovery device, and storage medium
CN109814942A (en) A kind of parameter processing method and device
CN106506817A (en) Flow monitoring method, device and terminal unit
JP2017529640A (en) Short message processing method, apparatus, program, and recording medium
CN104683496B (en) address filtering method and device
CN106453774B (en) Contact information methods of exhibiting and device
CN106027361B (en) Information display method and device
KR101744696B1 (en) Method, device, program and recording medium for filtering information
CN106331076A (en) Advertisement push method and apparatus
CN110968492B (en) Information processing method and device and storage medium
CN105101410B (en) A kind of method and device in determining mobile terminal geographical location
CN105491542B (en) number identification method and device
CN105912367B (en) Prevent installation kit from missing method for down loading
CN105653658A (en) Information display method and device
CN109086143B (en) Application interaction method and device
CN106385430B (en) The management method and device of communication message
CN105120440B (en) Information processing method and device

Legal Events

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