WO2016141689A1 - 信息过滤方法及装置 - Google Patents

信息过滤方法及装置 Download PDF

Info

Publication number
WO2016141689A1
WO2016141689A1 PCT/CN2015/088564 CN2015088564W WO2016141689A1 WO 2016141689 A1 WO2016141689 A1 WO 2016141689A1 CN 2015088564 W CN2015088564 W CN 2015088564W WO 2016141689 A1 WO2016141689 A1 WO 2016141689A1
Authority
WO
WIPO (PCT)
Prior art keywords
code
information filtering
webpage
operator
server
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.)
Ceased
Application number
PCT/CN2015/088564
Other languages
English (en)
French (fr)
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 JP2017504234A priority Critical patent/JP6239188B2/ja
Priority to MX2015015454A priority patent/MX361504B/es
Priority to RU2015144503A priority patent/RU2621603C2/ru
Priority to BR112015028151A priority patent/BR112015028151A2/pt
Priority to KR1020157030882A priority patent/KR101744696B1/ko
Publication of WO2016141689A1 publication Critical patent/WO2016141689A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0245Filtering by information in the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/53Network services using third party service providers

Definitions

  • the present disclosure relates to the field of Internet technologies, and in particular, to an information filtering method and apparatus.
  • the HTTP HyperText Transfer Protocol
  • the operator server When the user browses the webpage by using the browser, the HTTP (HyperText Transfer Protocol) request is sent to the operator server through the network provided by the communication carrier, and the carrier server forwards the HTTP request to the corresponding web server. .
  • HTTP HyperText Transfer Protocol
  • the web server After receiving the HTTP request, the web server returns a corresponding HTML (HyperText Markup language) code to the webpage browsing client through the operator server, and the browser parses and displays the HTML code, thereby implementing the webpage display. .
  • HTML HyperText Markup language
  • the operator server sends the HTML code returned by the web server to the browser, the advertisement code may be inserted into the HTML code, so that the browser displays the original webpage and also displays the advertisement inserted by the operator, affecting the user. Normal browsing.
  • the embodiment of the present disclosure provides an information filtering method and device, and the technical solution is as follows:
  • an information filtering method comprising:
  • the network identifier is an identifier of a communication carrier providing the network
  • the operator insertion code in the webpage code is filtered according to the information filtering rule, and the webpage code is sent by the webpage server to the client through the operator server.
  • the method further includes:
  • the behavior of inserting the operator insertion code by the operator server is detected by accessing the preset webpage page;
  • the information filtering rule is generated according to the network identifier and the operator insertion code.
  • detecting, by using a preset webpage page, whether the operator server inserts an operator insertion code including:
  • generating information filtering rules according to the network identifier and the operator insertion code including:
  • An information filtering rule is generated according to the correspondence between the network identifier and the operator insertion code.
  • the method further includes:
  • the information filtering rule is reported to the server, and the server is configured to summarize the information filtering rules sent by each client, and generate update information of the information filtering rules for each communication carrier;
  • an information filtering apparatus comprising:
  • the obtaining module is configured to obtain a network identifier of the currently visited network, where the network identifier is an identifier of a communication carrier that provides the network;
  • the first detecting module is configured to detect whether an information filtering rule corresponding to the network identifier is stored
  • the filtering module is configured to: when the information filtering rule is stored, filter the operator insertion code in the webpage code according to the information filtering rule, where the webpage code is sent by the webpage server to the client through the operator server.
  • the device further includes:
  • the second detecting module is configured to: when the information filtering rule is not stored, detect whether the operator server has inserted the operator insertion code by accessing the preset webpage page;
  • the generating module is configured to generate an information filtering rule according to the network identifier and the operator insertion code when the operator server has the behavior of inserting the operator insertion code.
  • the second detecting module includes:
  • a receiving submodule configured to receive a first webpage code sent by an operator server
  • the detecting submodule is configured to detect whether the first webpage code is the same as the second webpage code, where the second webpage code is an original webpage code corresponding to the preset webpage page;
  • the first determining submodule is configured to determine that the operator server has an action of inserting an operator insertion code when the first webpage code is different from the second webpage code.
  • generating a module including:
  • Obtaining a submodule configured to obtain a difference code between the first webpage code and the second webpage code
  • a second determining submodule configured to determine the difference code as an operator insertion code
  • Generating a submodule configured to generate an information filtering rule according to a correspondence between a network identifier and an operator insertion code then.
  • the device further includes:
  • the reporting module is configured to report information filtering rules to the server, and the server is configured to summarize information filtering rules sent by each client, and generate update information of information filtering rules for each communication carrier.
  • the update module is configured to receive update information of the information filtering rule corresponding to the current access network sent by the server, and update the information filtering rule according to the update information.
  • an information filtering apparatus comprising:
  • a memory for storing executable instructions of the processor
  • processor is configured to:
  • the network identifier is an identifier of a communication carrier providing the network
  • the operator insertion code in the webpage code is filtered according to the information filtering rule, and the webpage code is sent by the webpage server to the client through the operator server.
  • the operator insert code in the webpage code is filtered by using the information filtering rule corresponding to the current network; the problem of displaying the advertisement inserted by the operator in the webpage is affected, and the normal browsing of the user is affected; The inserted ads are filtered to ensure that the content of the webpage is displayed.
  • FIG. 1 is a schematic diagram of an environment of an implementation environment involved in various embodiments of the present disclosure
  • FIG. 2 is a flowchart of a method of an information filtering method according to an exemplary embodiment
  • FIG. 3A is a flowchart of a method of an information filtering method according to another exemplary embodiment
  • 3B is a flowchart of a method for detecting an operator insertion code process involved in an information filtering method according to another exemplary embodiment
  • FIG. 3C is a flowchart of a method for generating an information filtering rule process according to an information filtering method according to another exemplary embodiment
  • FIG. 4 is a block diagram showing the structure of an information filtering apparatus according to an exemplary embodiment
  • FIG. 5 is a block diagram showing the structure of an information filtering apparatus according to another exemplary embodiment
  • FIG. 6 is a block diagram of an information filtering apparatus, according to an exemplary embodiment.
  • FIG. 1 is a schematic diagram of an environment of an implementation environment involved in various embodiments of the present disclosure, including an electronic device 110, an operator server 120, and a web server 130 and a server 140.
  • the electronic device 110 can be implemented by an electronic device on which a browser client is installed.
  • the electronic device can be a smartphone, a tablet, an e-book reader, and a laptop portable computer (camera, video camera), and the like.
  • the electronic device 110 and the operator server 120 are connected by a wired or wireless network.
  • the carrier server 120 can be a server, or a server cluster consisting of several servers, or a cloud computing service center.
  • the operator server 120 is configured to forward the HTTP request sent by the electronic device 110 to the web server 130 and transmit the data returned by the web server 130 to the electronic device 110.
  • the carrier server 120 and the web server 130 are connected by a wired or wireless network.
  • the web server 130 can be a server, or a server cluster consisting of several servers, or a cloud computing service center.
  • the web server 130 is configured to return corresponding data according to the received HTTP request.
  • the server 140 and the carrier server 120 are connected by a wired or wireless network.
  • Server 140 can be a server, or a cluster of servers consisting of several servers, or a cloud computing service center.
  • the server 140 is configured to summarize the information filtering rules sent by the respective electronic devices 110, and generate update information for the information filtering rules of the respective communication carriers.
  • FIG. 2 is a flowchart of a method for filtering an information according to an exemplary embodiment.
  • the information filtering method is used in the electronic device 110 shown in FIG. 1 , and the information filtering method may include the following steps. .
  • a network identifier of the currently visited network is obtained, where the network identifier is an identifier of a communication carrier that provides the network.
  • step 204 it is detected whether an information filtering rule corresponding to the network identifier is stored.
  • step 206 when the information filtering rule is stored, the operator insertion code in the webpage code is filtered according to the information filtering rule, and the webpage code is sent by the webpage server to the client through the operator server.
  • the information filtering method uses the information corresponding to the current network. Filtering rules, filtering the operator insertion code in the webpage code; solving the problem that the advertisement inserted by the operator is displayed on the webpage, affecting the normal browsing of the user; and filtering the advertisement inserted by the operator in the webpage is ensured The content of the web page is displayed.
  • the client detects whether the corresponding information filtering rule is stored according to the obtained network identifier.
  • the advertisement inserted by the operator is filtered according to the information filtering rule; when the corresponding information is not stored.
  • the client detects whether there is an operator inserting an advertisement, and when it detects that an operator inserts an advertisement, generates a corresponding information filtering rule and filters it.
  • FIG. 3A is a flowchart of a method for filtering an information according to another exemplary embodiment.
  • the information filtering method is used in the electronic device 110 shown in FIG. 1 , and the information filtering method may include the following. step.
  • a network identifier of the currently visited network is obtained, where the network identifier is an identifier of a communication carrier that provides the network.
  • the client When the user accesses the network by using the electronic device installed with the browser client, the client automatically obtains the network identifier of the network, where the network identifier is used to indicate the communication carrier that provides the network.
  • the network identifier is an ISP (Internet Service Provider) identifier, and the client can know the communication carrier corresponding to the currently connected network through the ISP identifier.
  • ISP Internet Service Provider
  • the client when detecting that the network connection status changes, the client may obtain the network identifier of the current network, or obtain the network identifier of the current network every predetermined time interval. This disclosure does not provide the opportunity for the client to obtain the network identifier. Limited.
  • step 302 it is detected whether an information filtering rule corresponding to the network identifier is stored.
  • the information filtering rule for filtering the operator insertion code is pre-stored in the client, where the information filtering rule is used to indicate the correspondence between the network identifier and the operator insertion code, and the correspondence may be as shown in Table 1.
  • Network identification Carrier insert code Communication carrier A Code A, code B, code C, code D Communication carrier B Code E Communication carrier C Code F, code G Communication carrier D Code H
  • the carrier insertion codes corresponding to different network identifiers may be the same, may be different, or may be partially the same. This embodiment only uses different network identifiers corresponding to different operator insertion codes as an example, and does not constitute the present disclosure. limited.
  • different communication carriers insert different advertisements in the webpage, that is, the information filtering rules for different operators are different, so the client needs to determine whether the corresponding information filtering rule is stored according to the obtained network identifier.
  • the advertisement inserted by the operator may be filtered according to the information filtering rule, and step 303 is performed; when the corresponding information filtering rule is not stored, step 304 is performed.
  • step 303 when the information filtering rule is stored, the operator insertion code in the webpage code is filtered according to the information filtering rule, and the webpage code is sent by the webpage server to the client through the operator server.
  • the client generates a corresponding HTTP request according to the URL that needs to be accessed, and sends the HTTP request to the operator server, and the carrier server forwards the HTTP request to the corresponding web server.
  • the web server After receiving the HTTP request, the web server returns a corresponding webpage code to the client through the operator server, and the webpage code is generally an HTML code.
  • the client parses and displays the received HTML code to implement the display of the web page.
  • the operator server inserts an advertisement code into the HTML code, and after receiving the HTML code, the client parses the advertisement code and displays it on the webpage. Therefore, in order to filter the advertisement inserted by the operator server, the client needs to filter the advertisement code in the HTML code according to the stored information filtering rule.
  • the client obtains the network identifier of the current network as “communication carrier A” and stores corresponding information filtering rules.
  • the client detects whether the code exists in the webpage code returned by the operator server. A and code B, when it is detected that there is code A or code B, it is determined that there is an advertisement code inserted by the operator and filtered. Since the ad code has been filtered, the client does not need to parse the ad code, so there will be no ads inserted by the carrier on the page.
  • step 304 when the information filtering rule is not stored, it is detected whether the operator server has inserted the operator insertion code by accessing the preset web page.
  • step 304 may include the following steps:
  • step 304A a preset web page is accessed.
  • the original webpage code corresponding to the preset webpage page is pre-stored in the client.
  • the client can compare whether the original webpage code and the received webpage code are used to determine whether the operator inserts the operator. Insert the code.
  • the client In order to save the computing resources when the client compares the webpage code, the client generally accesses a blank page.
  • step 304B the first webpage code sent by the operator server is received.
  • the operator server forwards the HTTP request sent by the client to the corresponding web server, and the web server returns the corresponding original webpage code according to the HTTP request.
  • the carrier server does not add the carrier insertion code to the original webpage code
  • the first webpage code sent to the client is the original webpage code
  • the operator server adds the operator insertion code to the original webpage code
  • the client The first webpage code sent by the end is the original webpage code inserted after the operator inserts the code.
  • step 304C it is detected whether the first webpage code is the same as the second webpage code, and the second webpage code is the original webpage code corresponding to the preset webpage page.
  • the client compares the received first webpage code with the original webpage code corresponding to the preset webpage page.
  • the first webpage code is the same as the original webpage code, it is determined that the operator server does not have a row inserted into the operator insertion code.
  • the operator server has the behavior of inserting the operator insertion code.
  • step 304D when the first webpage code is different from the second webpage code, it is determined that the operator server has the act of inserting the operator insertion code.
  • the client can determine that the carrier server has inserted the operator insertion code.
  • step 305 when the operator server has an action of inserting the operator insertion code, the information filtering rule is generated according to the network identifier and the operator insertion code.
  • step 305 may include the following steps.
  • step 305A a difference code between the first webpage code and the second webpage code is obtained.
  • the default webpage page accessed by the client is a blank page.
  • the client can determine the code in the link node or the script node as a difference. Code.
  • step 305B the difference code is determined to be the operator insertion code.
  • step 305C an information filtering rule is generated according to the correspondence between the network identifier and the operator insertion code.
  • the client Based on the obtained network identifier and the operator insertion code, the client generates an information filtering rule as shown in Table 1, and saves the generated information filtering rule. At this point, the client stores information filtering rules for the current network.
  • step 306 the information filtering rule is reported to the server, and the server is configured to summarize the information filtering rules sent by the respective clients, and generate update information of the information filtering rules for each communication carrier.
  • the information filtering rules generated by the client can only filter advertisements inserted by some operators.
  • the client reports the stored information filtering rules to the server every predetermined time interval, and the predetermined time intervals may be the same or different. For example, the client can report the information filtering rule every 24 hours, or report the information filtering rule once every month.
  • the server summarizes the information filtering rules reported by each client, and generates update information for the information filtering rules of each communication carrier.
  • the carrier insertion code corresponding to the communication carrier A is “code A” and “code B” respectively; in the information filtering rule reported by the client B, the communication carrier A corresponds to The carrier insert code is “code B”, “code C” and “code D”, and the server determines the communication carrier A.
  • the corresponding carrier insertion code includes: “Code A”, “Code B”, “Code C”, and “Code D”, and generates update information for the communication filter rule of the communication carrier A.
  • the update information for the client A is "code C” and "code D”
  • the update information for the client B is "code A”.
  • step 307 the update information of the information filtering rule corresponding to the current access network sent by the server is received, and the information filtering rule is updated according to the update information.
  • the server sends corresponding information filtering rule update information to each client.
  • each client updates the stored information filtering rules according to the update information, thereby achieving a better filtering effect.
  • the information filtering method provided by the exemplary embodiment filters the operator insertion code in the webpage code by using the information filtering rule corresponding to the current network, and solves the problem that the operator inserts the advertisement in the webpage. , affecting the normal browsing of the user; achieving the filtering of the advertisement inserted by the operator in the webpage to ensure the display effect of the webpage content.
  • the information filtering method provided by the exemplary embodiment detects whether the operator server has inserted the operator insertion code by accessing the preset webpage page when the information filtering rule corresponding to the network identifier is not stored, and when the insertion is detected, the insertion is detected.
  • the information filtering rule is generated according to the operator insertion code and the network identifier, and the operator insert code is filtered, so that the client can filter the advertisement inserted by the operator server in real time, and the generated Filtering rules are saved to improve the efficiency of ad filtering.
  • the information filtering method provided by the exemplary embodiment is further summarized by the server, and the information filtering rules sent by the respective clients are summarized, and the update information of the information filtering rules for each communication carrier is generated, so that the information filtering rules stored by the client are supplemented. And perfect, further improving the efficiency of advertising filtering.
  • FIG. 4 is a block diagram showing the structure of an information filtering apparatus according to an exemplary embodiment.
  • the information filtering apparatus may be implemented as part or all of the electronic device 110 shown in FIG. 1 by software, hardware, or a combination of both.
  • the information filtering device can include:
  • the obtaining module 402 is configured to obtain a network identifier of the currently visited network, where the network identifier is an identifier of a communication carrier that provides the network;
  • the first detecting module 404 is configured to detect whether an information filtering rule corresponding to the network identifier is stored
  • the filtering module 406 is configured to filter, when the information filtering rule is stored, the operator insertion code in the webpage code according to the information filtering rule, where the webpage code is sent by the webpage server to the client through the operator server.
  • the information filtering apparatus filters the operator insertion code in the webpage code by using the information filtering rule corresponding to the current network, and solves the problem of displaying the advertisement inserted by the operator in the webpage. , affecting the normal browsing of the user; achieving the filtering of the advertisement inserted by the operator in the webpage to ensure the display effect of the webpage content.
  • FIG. 5 is a block diagram showing the structure of an information filtering apparatus according to another exemplary embodiment, which may be implemented as part or all of the electronic device 110 shown in FIG. 1 by software, hardware, or a combination of both.
  • the information filtering device can include:
  • the obtaining module 502 is configured to obtain a network identifier of the currently visited network, where the network identifier is an identifier of a communication carrier that provides the network;
  • the first detecting module 504 is configured to detect whether an information filtering rule corresponding to the network identifier is stored
  • the filtering module 506 is configured to filter, when the information filtering rule is stored, the operator insertion code in the webpage code according to the information filtering rule, where the webpage code is sent by the webpage server to the client through the operator server.
  • the device further includes:
  • the second detecting module 507 is configured to detect, by accessing the preset webpage page, whether the operator server has the behavior of inserting the operator insertion code when the information filtering rule is not stored;
  • the generating module 508 is configured to generate an information filtering rule according to the network identifier and the operator insertion code when the operator server has an action of inserting the operator insertion code.
  • the second detecting module 507 includes:
  • the access sub-module 507A is configured to access a preset webpage page
  • the receiving submodule 507B is configured to receive the first webpage code sent by the operator server;
  • the detecting sub-module 507C is configured to detect whether the first webpage code is the same as the second webpage code, where the second webpage code is the original webpage code corresponding to the preset webpage page;
  • the first determining sub-module 507D is configured to determine that the operator server has an action of inserting an operator insertion code when the first webpage code is different from the second webpage code.
  • the generating module 508 includes:
  • the obtaining submodule 508A is configured to obtain a difference code between the first webpage code and the second webpage code
  • a second determining submodule 508B configured to determine the difference code as an operator insertion code
  • the generating submodule 508C is configured to generate an information filtering rule according to the correspondence between the network identifier and the operator insertion code.
  • the device further includes:
  • the reporting module 509 is configured to report the information filtering rule to the server, and the server is configured to summarize the information filtering rules sent by the respective clients, and generate update information of the information filtering rules for each communication carrier.
  • the update module 510 is configured to receive update information of the information filtering rule corresponding to the current access network sent by the server, and update the information filtering rule according to the update information.
  • the information filtering apparatus filters the operator insertion code in the webpage code by using the information filtering rule corresponding to the current network, and solves the problem of displaying the advertisement inserted by the operator in the webpage. , affecting the normal browsing of the user; achieving the filtering of the advertisement inserted by the operator in the webpage to ensure the display effect of the webpage content.
  • the information filtering apparatus does not store the information filtering rule corresponding to the network identifier. Detecting whether the operator server inserts the operator insertion code by accessing the preset webpage page, and when detecting the insertion of the operator insertion code, generating an information filtering rule according to the operator insertion code and the network identifier, and The operator inserts the code for filtering, so that the client can filter the advertisement inserted by the operator server in real time, and save the generated filtering rule, thereby improving the efficiency of the advertisement filtering.
  • the information filtering apparatus provided by the exemplary embodiment further summarizes the information filtering rules sent by the respective clients by the server, and generates update information of the information filtering rules for the respective communication carriers, so that the information filtering rules stored by the client are supplemented. And perfect, further improving the efficiency of advertising filtering.
  • FIG. 6 is a block diagram of an information filtering device 600, according to an exemplary embodiment.
  • device 600 can be electronic device 110 or the like as shown in FIG.
  • device 600 can include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, And a communication component 616.
  • processing component 602 memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, And a communication component 616.
  • Processing component 602 typically controls the overall operation of device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 602 can include one or more processors 620 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 602 can include one or more modules to facilitate interaction between component 602 and other components.
  • processing component 602 can include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
  • Memory 604 is configured to store various types of data to support operation at device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 606 provides power to various components of device 600.
  • Power component 606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
  • the multimedia component 608 includes a screen between the device 600 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 608 includes a front camera and/or a rear camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 610 is configured to output and/or input an audio signal.
  • audio component 610 includes a microphone Wind (MIC), when the device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal.
  • the received audio signal may be further stored in memory 604 or transmitted via communication component 616.
  • audio component 610 also includes a speaker for outputting an audio signal.
  • the I/O interface 612 provides an interface between the processing component 602 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 614 includes one or more sensors for providing device 600 with a status assessment of various aspects.
  • sensor assembly 614 can detect an open/closed state of device 600, a relative positioning of components, such as the display and keypad of device 600, and sensor component 614 can also detect a change in position of one component of device 600 or device 600. The presence or absence of contact by the user with the device 600, the orientation or acceleration/deceleration of the device 600 and the temperature change of the device 600.
  • Sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 614 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 616 is configured to facilitate wired or wireless communication between device 600 and other devices.
  • the device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 616 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 616 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 604 comprising instructions executable by processor 620 of apparatus 600 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of apparatus 600, enables apparatus 600 to perform an information filtering method applied to electronic device 110 shown in FIG.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本公开是关于一种信息过滤方法及装置,属于互联网技术领域。所述方法包括:获取当前访问网络的网络标识,该网络标识是提供网络的通信运营商的标识;检测是否储存有与该网络标识对应的信息过滤规则;当存储有信息过滤规则时,根据信息过滤规则对网页代码中的运营商插入代码进行过滤。本公开达到了对运营商在网页中插入的广告进行过滤,保证网页内容显示效果。

Description

信息过滤方法及装置
本申请基于申请号为201510105528.X、申请日为2015年3月11日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及互联网技术领域,特别涉及一种信息过滤方法及装置。
背景技术
用户使用浏览器浏览网页时,会通过通信运营商提供的网络,将HTTP(HyperText Transfer Protocol,超文本传输协议)请求发送至运营商服务器,运营商服务器再将该HTTP请求转发至相应的网页服务器。
网页服务器接收到该HTTP请求后,通过运营商服务器向网页浏览客户端返回相应的HTML(HyperText Markup language,超文本标记语言)代码,浏览器对该HTML代码进行解析并显示,从而实现网页的显示。但是运营商服务器将网页服务器返回的HTML代码发送到浏览器时,可能会在该HTML代码中插入广告代码,使得浏览器在显示原网页的同时,还会显示运营商插入的广告,影响用户的正常浏览。
发明内容
本公开实施例提供了一种信息过滤方法及装置,该技术方案如下:
根据本公开实施例的第一方面,提供一种信息过滤方法,该方法包括:
获取当前访问网络的网络标识,网络标识是提供网络的通信运营商的标识;
检测是否储存有与网络标识对应的信息过滤规则;
当存储有该信息过滤规则时,根据信息过滤规则对网页代码中的运营商插入代码进行过滤,网页代码是网页服务器通过运营商服务器向客户端发送的。
可选地,该方法,还包括:
当未存储有信息过滤规则时,通过访问预设网页页面来检测运营商服务器是否存在插入运营商插入代码的行为;
当运营商服务器存在插入运营商插入代码的行为时,根据网络标识和运营商插入代码生成信息过滤规则。
可选地,通过访问预设网页页面来检测运营商服务器是否存在插入运营商插入代码的行为,包括:
访问预设网页页面;
接收运营商服务器发送的第一网页代码;
检测第一网页代码与第二网页代码是否相同,第二网页代码是预设网页页面所对应的原始网页代码;
当第一网页代码与第二网页代码不同时,确定运营商服务器存在插入运营商插入代码的行为。
可选地,根据网络标识和运营商插入代码生成信息过滤规则,包括:
获取第一网页代码与第二网页代码之间的区别代码;
将区别代码确定为运营商插入代码;
根据网络标识和运营商插入代码的对应关系,生成信息过滤规则。
可选地,该方法,还包括:
向服务器上报信息过滤规则,服务器用于对各个客户端发送的信息过滤规则进行汇总,并生成针对各个通信运营商的信息过滤规则的更新信息;
接收服务器发送的对应于当前访问网络的信息过滤规则的更新信息,并根据更新信息更新该信息过滤规则。
根据本公开实施例的第二方面,提供一种信息过滤装置,该装置包括:
获取模块,被配置为获取当前访问网络的网络标识,网络标识是提供网络的通信运营商的标识;
第一检测模块,被配置为检测是否储存有与网络标识对应的信息过滤规则;
过滤模块,被配置为当存储有信息过滤规则时,根据信息过滤规则对网页代码中的运营商插入代码进行过滤,网页代码是网页服务器通过运营商服务器向客户端发送的。
可选地,该装置,还包括:
第二检测模块,被配置为当未存储有信息过滤规则时,通过访问预设网页页面来检测运营商服务器是否存在插入运营商插入代码的行为;
生成模块,被配置为当运营商服务器存在插入运营商插入代码的行为时,根据网络标识和运营商插入代码生成信息过滤规则。
可选地,第二检测模块,包括:
访问子模块,被配置为访问预设网页页面;
接收子模块,被配置为接收运营商服务器发送的第一网页代码;
检测子模块,被配置为检测第一网页代码与第二网页代码是否相同,第二网页代码是预设网页页面所对应的原始网页代码;
第一确定子模块,被配置为当第一网页代码与第二网页代码不同时,确定运营商服务器存在插入运营商插入代码的行为。
可选地,生成模块,包括:
获取子模块,被配置为获取第一网页代码与第二网页代码之间的区别代码;
第二确定子模块,被配置为将区别代码确定为运营商插入代码;
生成子模块,被配置为根据网络标识和运营商插入代码的对应关系,生成信息过滤规 则。
可选地,该装置,还包括:
上报模块,被配置为向服务器上报信息过滤规则,服务器用于对各个客户端发送的信息过滤规则进行汇总,并生成针对各个通信运营商的信息过滤规则的更新信息;
更新模块,被配置为接收服务器发送的对应于当前访问网络的信息过滤规则的更新信息,并根据更新信息更新该信息过滤规则。
根据本公开实施例的第三方面,提供一种信息过滤装置,该装置包括:
处理器;
用于存储处理器的可执行指令的存储器;
其中,处理器被配置为:
获取当前访问网络的网络标识,网络标识是提供网络的通信运营商的标识;
检测是否储存有与网络标识对应的信息过滤规则;
当存储有信息过滤规则时,根据信息过滤规则对网页代码中的运营商插入代码进行过滤,网页代码是网页服务器通过运营商服务器向客户端发送的。
本公开实施例提供的技术方案可以包括以下有益效果:
通过利用与当前网络对应的信息过滤规则,对网页代码中的运营商插入代码进行过滤;解决了在网页中显示运营商插入的广告,影响用户的正常浏览的问题;达到了对运营商在网页中插入的广告进行过滤,保证网页内容显示效果。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是本公开各个实施例所涉及的实施环境的环境示意图;
图2是根据一示例性实施例示出的信息过滤方法的方法流程图;
图3A是根据另一示例性实施例示出的信息过滤方法的方法流程图;
图3B根据另一示例性实施例示出的信息过滤方法所涉及的检测运营商插入代码过程的方法流程图;
图3C根据另一示例性实施例示出的信息过滤方法所涉及的生成信息过滤规则过程的方法流程图;
图4是根据一示例性实施例示出的信息过滤装置的结构方框图;
图5是根据另一示例性实施例示出的信息过滤装置的结构方框图;
图6是根据一示例性实施例示出的信息过滤装置的框图。
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和 文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
图1是本公开各个实施例所涉及的实施环境的环境示意图,该实施环境包括电子设备110、运营商服务器120和网页服务器130和服务器140。
电子设备110可以由安装有浏览器客户端的电子设备来实现。该电子设备可以是智能手机、平板电脑、电子书阅读器和膝上型便携计算机(相机、摄像机)等等。
电子设备110与运营商服务器120之间通过有线或无线网络相连。
运营商服务器120可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。该运营商服务器120用于将电子设备110发送的HTTP请求转发至网页服务器130,并将网页服务器130返回的数据发送至电子设备110。
运营商服务器120与网页服务器130之间通过有线或无线网络相连。
网页服务器130可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。该网页服务器130用于根据接收到的HTTP请求返回相应的数据。
服务器140与运营商服务器120之间通过有线或无线网络相连。
服务器140可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。该服务器140用于对各个电子设备110发送的信息过滤规则进行汇总,并生成针对各个通信运营商的信息过滤规则的更新信息。
为了简化描述,下文中仅以地址过滤方法由客户端执行来举例说明,但对此不构成限定。
图2是根据一示例性实施例示出的信息过滤方法的方法流程图,本实施例以该信息过滤方法用于图1所示的电子设备110中来进行说明,该信息过滤方法可以包括如下步骤。
在步骤202中,获取当前访问网络的网络标识,该网络标识是提供网络的通信运营商的标识。
在步骤204中,检测是否储存有与该网络标识对应的信息过滤规则。
在步骤206中,当存储有该信息过滤规则时,根据该信息过滤规则对网页代码中的运营商插入代码进行过滤,网页代码是网页服务器通过运营商服务器向客户端发送的。
综上所述,本示例性实施例提供的信息过滤方法,通过利用与当前网络对应的信息过 滤规则,对网页代码中的运营商插入代码进行过滤;解决了在网页中显示运营商插入的广告,影响用户的正常浏览的问题;达到了对运营商在网页中插入的广告进行过滤,保证网页内容显示效果。
客户端根据获取到的网络标识,检测是否存储有对应的信息过滤规则,当存储有对应的信息过滤规则时,根据该信息过滤规则对运营商插入的广告进行过滤;当未存储有对应的信息过滤规则时,客户端即检测是否存在运营商插入广告,并在检测到存在运营商插入广告时,生成相应的信息过滤规则,并进行过滤。下面将采用一个实施例进行说明。
图3A是根据另一示例性实施例示出的信息过滤方法的方法流程图,本实施例以该信息过滤方法用于图1所示的电子设备110中来进行说明,该信息过滤方法可以包括如下步骤。
在步骤301中,获取当前访问网络的网络标识,该网络标识是提供网络的通信运营商的标识。
用户使用安装有浏览器客户端的电子设备接入网络时,客户端会自动获取该网络的网络标识,其中,该网络标识用于指示提供该网络的通信运营商。通常情况下,该网络标识为ISP(Internet Service Provider,互联网服务提供商)标识,客户端通过该ISP标识,即可知悉当前连接的网络对应的通信运营商。
需要说明的是,客户端可以在检测到网络连接状态发生变化时,获取当前网络的网络标识,也可以每隔预定时间间隔获取当前网络的网络标识,本公开并不对客户端获取网络标识的时机进行限定。
在步骤302中,检测是否储存有与该网络标识对应的信息过滤规则。
客户端中预先存储有用于过滤运营商插入代码的信息过滤规则,其中,该信息过滤规则用于指示网络标识与运营商插入代码的对应关系,该对应关系可以如表一所示。
表一
网络标识 运营商插入代码
通信运营商A 代码A、代码B、代码C、代码D
通信运营商B 代码E
通信运营商C 代码F、代码G
通信运营商D 代码H
需要说明的是,不同网络标识对应的运营商插入代码可以相同,可以不同,也可以部分相同,本实施例仅以不同网络标识对应不同的运营商插入代码为例进行说明,并不对本公开构成限定。
通常情况下,不同的通信运营商在网页中插入的广告不同,即针对不同运营商的信息过滤规则也不同,所以客户端需要根据获取到的网络标识确定是否储存有对应的信息过滤规则。当检测到存储有对应的信息过滤规则时,即可根据该信息过滤规则对运营商插入的广告进行过滤,执行步骤303;当未存储有对应的信息过滤规则时,执行步骤304。
在步骤303中,当存储有该信息过滤规则时,根据该信息过滤规则对网页代码中的运营商插入代码进行过滤,网页代码是网页服务器通过运营商服务器向客户端发送的。
如图1所示,客户端根据需要访问的网址生成相应的HTTP请求,将该HTTP请求发送至运营商服务器,由运营商服务器将该HTTP请求转发至相应的网页服务器。网页服务器接收到该HTTP请求后,会通过运营商服务器向客户端返回相应的网页代码,该网页代码一般为HTML代码。客户端对接收到的HTML代码进行解析并显示,从而实现网页的显示。但是通常情况下,运营商服务器会在HTML代码中插入一段广告代码,客户端在接收到该HTML代码后,会对该广告代码进行解析,并在网页上进行显示。所以,为了过滤运营商服务器插入的广告,客户端需要根据存储的信息过滤规则,对HTML代码中的广告代码进行过滤。
比如,客户端获取到当前网络的网络标识为“通信运营商A”,且存储有对应的信息过滤规则,根据该信息过滤规则,客户端在运营商服务器返回的网页代码中,检测是否存在代码A和代码B,当检测到存在代码A或代码B时,即确定存在运营商插入的广告代码,并进行过滤。由于广告代码已被过滤,客户端不需要对广告代码进行解析,所以网页上也不会出现运营商插入的广告。
在步骤304中,当未存储有该信息过滤规则时,通过访问预设网页页面来检测运营商服务器是否存在插入运营商插入代码的行为。
当未存储有对应的信息过滤规则时,客户端需要进一步检测运营商服务器是否存在插入运营商插入代码的行为。作为一种可能的实现方式,如图3B所示,步骤304可以包括如下步骤:
在步骤304A中,访问预设网页页面。
客户端中预先存储有预设网页页面对应的原始网页代码,当客户端访问该预设网页页面时,即可通过比较该原始网页代码和接收到的网页代码,判断运营商是否插入了运营商插入代码。为了节约客户端进行网页代码比较时的计算资源,客户端一般会访问一个空白页面。
在步骤304B中,接收运营商服务器发送的第一网页代码。
运营商服务器将接收到客户端发送的HTTP请求转发至对应的网页服务器,网页服务器根据该HTTP请求返回相应的原始网页代码。当运营商服务器未在原始网页代码中添加运营商插入代码时,向客户端发送的第一网页代码即原始网页代码;当运营商服务器在原始网页代码中添加了运营商插入代码时,向客户端发送的第一网页代码即插入运营商插入代码后的原始网页代码。
在步骤304C中,检测第一网页代码与第二网页代码是否相同,第二网页代码是预设网页页面所对应的原始网页代码。
客户端将接收到的第一网页代码与预设网页页面对应的原始网页代码进行比较,当第一网页代码与原始网页代码相同时,即确定运营商服务器不存在插入运营商插入代码的行 为;当第一网页代码与原始网页代码不同时,即确定运营商服务器存在插入运营商插入代码的行为。
在步骤304D中,当第一网页代码与第二网页代码不同时,确定运营商服务器存在插入运营商插入代码的行为。
比如,当客户端访问的预设网页页面为一个空白网页页面时,该空白网页页面对应的原始网页代码,即第二网页代码中不包含任何链接节点或脚本节点,当接收到的第一网页代码中包含链接节点或脚本节点时,客户端即可确定运营商服务器存在插入运营商插入代码的行为。
在步骤305中,当运营商服务器存在插入运营商插入代码的行为时,根据网络标识和运营商插入代码生成信息过滤规则。
当客户端确定运营商服务器存在插入运营商插入代码的行为时,即对该运营商插入代码进行过滤,并生成相应的信息过滤规则。当客户端继续通过该网络访问网页时,由于客户端已经存储有生成的信息过滤规则,所以可以直接根据信息过滤规则对运营商插入代码进行过滤。作为一种可能的实现方式,如图3C所示,步骤305可以包括如下步骤。
在步骤305A中,获取第一网页代码与第二网页代码之间的区别代码。
比如,客户端访问的预设网页页面为空白页面,当运营商服务器发送的第一网页代码中包含链接节点或脚本节点时,客户端即可将该链接节点或脚本节点中的代码确定为区别代码。
在步骤305B中,将区别代码确定为运营商插入代码。
在步骤305C中,根据网络标识和运营商插入代码的对应关系,生成信息过滤规则。
客户端根据获取到的网络标识以及运营商插入代码,生成如表一所示的信息过滤规则,并对生成的信息过滤规则进行保存。此时,客户端储存有针对当前网络的信息过滤规则。
在步骤306中,向服务器上报信息过滤规则,服务器用于对各个客户端发送的信息过滤规则进行汇总,并生成针对各个通信运营商的信息过滤规则的更新信息。
由于运营商服务器会在不同的网页代码中插入不同的运营商插入代码,所以客户端生成的信息过滤规则只能对部分运营商插入的广告进行过滤。为了提高客户端过滤的效率,客户端会每隔预定时间间隔向服务器上报存储的信息过滤规则,该预定时间间隔可以相同也可以不同。比如,客户端可以每隔24小时上报一次信息过滤规则,也可以在每月1号上报一次信息过滤规则。
服务器对各个客户端上报的信息过滤规则进行汇总,并生成针对各个通信运营商的信息过滤规则的更新信息。
比如,客户端A上报的信息过滤规则中,通讯运营商A对应的运营商插入代码分别为“代码A”和“代码B”;客户端B上报的信息过滤规则中,通讯运营商A对应的运营商插入代码分别为“代码B”、“代码C”和“代码D”,服务器即确定通讯运营商A 对应的运营商插入代码包括:“代码A”、“代码B”、“代码C”和“代码D”,并生成针对通信运营商A的信息过滤规则的更新信息。其中,针对客户端A的更新信息为“代码C”和“代码D”,而针对客户端B的更新信息为“代码A”。
在步骤307中,接收服务器发送的对应于当前访问网络的信息过滤规则的更新信息,并根据更新信息更新该信息过滤规则。
服务器向各个客户端发送相应的信息过滤规则更新信息,对应的,各个客户端根据该更新信息对存储的信息过滤规则进行更新,从而达到更好的过滤效果。
综上所述,本示例性实施例提供的信息过滤方法,通过利用与当前网络对应的信息过滤规则,对网页代码中的运营商插入代码进行过滤;解决了在网页中显示运营商插入的广告,影响用户的正常浏览的问题;达到了对运营商在网页中插入的广告进行过滤,保证网页内容显示效果。
本示例性实施例提供的信息过滤方法,在未存储有网络标识对应的信息过滤规则时,通过访问预设网页页面来检测运营商服务器是否存在插入运营商插入代码的行为,当检测到存在插入运营商插入代码的行为时,根据运营商插入代码和网络标识生成信息过滤规则,并对该运营商插入代码进行过滤,使得客户端能够实时对运营商服务器插入的广告进行过滤,且对生成的过滤规则进行保存,提高了广告过滤的效率。
本示例性实施例提供的信息过滤方法,还通过服务器对各个客户端发送的信息过滤规则进行汇总,生成针对各个通信运营商的信息过滤规则的更新信息,使得客户端存储的信息过滤规则得到补充和完善,进一步提高了广告过滤的效率。
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。
图4是根据一示例性实施例示出的信息过滤装置的结构方框图,该信息过滤装置可以通过软件、硬件或者两者的结合实现成为图1所示的电子设备110的部分或者全部。该信息过滤装置可以包括:
获取模块402,被配置为获取当前访问网络的网络标识,网络标识是提供网络的通信运营商的标识;
第一检测模块404,被配置为检测是否储存有与网络标识对应的信息过滤规则;
过滤模块406,被配置为当存储有信息过滤规则时,根据信息过滤规则对网页代码中的运营商插入代码进行过滤,网页代码是网页服务器通过运营商服务器向客户端发送的。
综上所述,本示例性实施例提供的信息过滤装置,通过利用与当前网络对应的信息过滤规则,对网页代码中的运营商插入代码进行过滤;解决了在网页中显示运营商插入的广告,影响用户的正常浏览的问题;达到了对运营商在网页中插入的广告进行过滤,保证网页内容显示效果。
图5是根据另一示例性实施例示出的信息过滤装置的结构方框图,该信息过滤装置可以通过软件、硬件或者两者的结合实现成为图1所示的电子设备110的部分或者全部。该信息过滤装置可以包括:
获取模块502,被配置为获取当前访问网络的网络标识,网络标识是提供网络的通信运营商的标识;
第一检测模块504,被配置为检测是否储存有与网络标识对应的信息过滤规则;
过滤模块506,被配置为当存储有信息过滤规则时,根据信息过滤规则对网页代码中的运营商插入代码进行过滤,网页代码是网页服务器通过运营商服务器向客户端发送的。
可选地,该装置,还包括:
第二检测模块507,被配置为当未存储有信息过滤规则时,通过访问预设网页页面来检测运营商服务器是否存在插入运营商插入代码的行为;
生成模块508,被配置为当运营商服务器存在插入运营商插入代码的行为时,根据网络标识和运营商插入代码生成信息过滤规则。
可选地,第二检测模块507,包括:
访问子模块507A,被配置为访问预设网页页面;
接收子模块507B,被配置为接收运营商服务器发送的第一网页代码;
检测子模块507C,被配置为检测第一网页代码与第二网页代码是否相同,第二网页代码是预设网页页面所对应的原始网页代码;
第一确定子模块507D,被配置为当第一网页代码与第二网页代码不同时,确定运营商服务器存在插入运营商插入代码的行为。
可选地,生成模块508,包括:
获取子模块508A,被配置为获取第一网页代码与第二网页代码之间的区别代码;
第二确定子模块508B,被配置为将区别代码确定为运营商插入代码;
生成子模块508C,被配置为根据网络标识和运营商插入代码的对应关系,生成信息过滤规则。
可选地,该装置,还包括:
上报模块509,被配置为向服务器上报信息过滤规则,服务器用于对各个客户端发送的信息过滤规则进行汇总,并生成针对各个通信运营商的信息过滤规则的更新信息;
更新模块510,被配置为接收服务器发送的对应于当前访问网络的信息过滤规则的更新信息,并根据更新信息更新该信息过滤规则。
综上所述,本示例性实施例提供的信息过滤装置,通过利用与当前网络对应的信息过滤规则,对网页代码中的运营商插入代码进行过滤;解决了在网页中显示运营商插入的广告,影响用户的正常浏览的问题;达到了对运营商在网页中插入的广告进行过滤,保证网页内容显示效果。
本示例性实施例提供的信息过滤装置,在未存储有网络标识对应的信息过滤规则时, 通过访问预设网页页面来检测运营商服务器是否存在插入运营商插入代码的行为,当检测到存在插入运营商插入代码的行为时,根据运营商插入代码和网络标识生成信息过滤规则,并对该运营商插入代码进行过滤,使得客户端能够实时对运营商服务器插入的广告进行过滤,且对生成的过滤规则进行保存,提高了广告过滤的效率。
本示例性实施例提供的信息过滤装置,还通过服务器对各个客户端发送的信息过滤规则进行汇总,生成针对各个通信运营商的信息过滤规则的更新信息,使得客户端存储的信息过滤规则得到补充和完善,进一步提高了广告过滤的效率。
图6是根据一示例性实施例示出的信息过滤装置600的框图。例如,装置600可以是如图1所示的电子设备110等。
参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。
处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。
存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件606为装置600的各种组件提供电力。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。
多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克 风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。
I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到装置600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置600的处理器执行时,使得装置600能够执行应用于图1所示的电子设备110中的信息过滤方法。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或 惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (11)

  1. 一种信息过滤方法,其特征在于,所述方法包括:
    获取当前访问网络的网络标识,所述网络标识是提供所述网络的通信运营商的标识;
    检测是否储存有与所述网络标识对应的信息过滤规则;
    当存储有所述信息过滤规则时,根据所述信息过滤规则对网页代码中的运营商插入代码进行过滤,所述网页代码是网页服务器通过所述运营商服务器向客户端发送的。
  2. 根据权利要求1所述的方法,其特征在于,所述方法,还包括:
    当未存储有所述信息过滤规则时,通过访问预设网页页面来检测所述运营商服务器是否存在插入所述运营商插入代码的行为;
    当所述运营商服务器存在插入所述运营商插入代码的行为时,根据所述网络标识和所述运营商插入代码生成所述信息过滤规则。
  3. 根据权利要求2所述的方法,其特征在于,所述通过访问预设网页页面来检测所述运营商服务器是否存在插入所述运营商插入代码的行为,包括:
    访问所述预设网页页面;
    接收所述运营商服务器发送的第一网页代码;
    检测所述第一网页代码与第二网页代码是否相同,所述第二网页代码是所述预设网页页面所对应的原始网页代码;
    当所述第一网页代码与第二网页代码不同时,确定所述运营商服务器存在插入所述运营商插入代码的行为。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述网络标识和所述运营商插入代码生成所述信息过滤规则,包括:
    获取所述第一网页代码与所述第二网页代码之间的区别代码;
    将所述区别代码确定为所述运营商插入代码;
    根据所述网络标识和所述运营商插入代码的对应关系,生成所述信息过滤规则。
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述方法,还包括:
    向服务器上报所述信息过滤规则,所述服务器用于对各个客户端发送的所述信息过滤规则进行汇总,并生成针对各个通信运营商的信息过滤规则的更新信息;
    接收所述服务器发送的对应于当前访问网络的信息过滤规则的更新信息,并根据所述更新信息更新所述信息过滤规则。
  6. 一种信息过滤装置,其特征在于,所述装置包括:
    获取模块,被配置为获取当前访问网络的网络标识,所述网络标识是提供所述网络的通信运营商的标识;
    第一检测模块,被配置为检测是否储存有与所述网络标识对应的信息过滤规则;
    过滤模块,被配置为当存储有所述信息过滤规则时,根据所述信息过滤规则对网页代码中的运营商插入代码进行过滤,所述网页代码是网页服务器通过所述运营商服务器向客户端发送的。
  7. 根据权利要求6所述的装置,其特征在于,所述装置,还包括:
    第二检测模块,被配置为当未存储有所述信息过滤规则时,通过访问预设网页页面来检测所述运营商服务器是否存在插入所述运营商插入代码的行为;
    生成模块,被配置为当所述运营商服务器存在插入所述运营商插入代码的行为时,根据所述网络标识和所述运营商插入代码生成所述信息过滤规则。
  8. 根据权利要求7所述的方法,其特征在于,所述第二检测模块,包括:
    访问子模块,被配置为访问所述预设网页页面;
    接收子模块,被配置为接收所述运营商服务器发送的第一网页代码;
    检测子模块,被配置为检测所述第一网页代码与第二网页代码是否相同,所述第二网页代码是所述预设网页页面所对应的原始网页代码;
    第一确定子模块,被配置为当所述第一网页代码与第二网页代码不同时,确定所述运营商服务器存在插入所述运营商插入代码的行为。
  9. 根据权利要求8所述的装置,其特征在于,所述生成模块,包括:
    获取子模块,被配置为获取所述第一网页代码与所述第二网页代码之间的区别代码;
    第二确定子模块,被配置为将所述区别代码确定为所述运营商插入代码;
    生成子模块,被配置为根据所述网络标识和所述运营商插入代码的对应关系,生成所述信息过滤规则。
  10. 根据权利要求6至9任一所述的装置,其特征在于,所述装置,还包括:
    上报模块,被配置为向服务器上报所述信息过滤规则,所述服务器用于对各个客户端发送的所述信息过滤规则进行汇总,并生成针对各个通信运营商的信息过滤规则的更新信息;
    更新模块,被配置为接收所述服务器发送的对应于当前访问网络的信息过滤规则的更新信息,并根据所述更新信息更新所述信息过滤规则。
  11. 一种信息过滤装置,其特征在于,包括:
    处理器;
    用于存储所述处理器的可执行指令的存储器;
    其中,所述处理器被配置为:
    获取当前访问网络的网络标识,所述网络标识是提供所述网络的通信运营商的标识;
    检测是否储存有与所述网络标识对应的信息过滤规则;
    当存储有所述信息过滤规则时,根据所述信息过滤规则对网页代码中的运营商插入代码进行过滤,所述网页代码是网页服务器通过所述运营商服务器向客户端发送的。
PCT/CN2015/088564 2015-03-11 2015-08-31 信息过滤方法及装置 Ceased WO2016141689A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2017504234A JP6239188B2 (ja) 2015-03-11 2015-08-31 情報フィルタリング方法、装置、プログラム及び記録媒体
MX2015015454A MX361504B (es) 2015-03-11 2015-08-31 Método y dispositivo para filtrar información.
RU2015144503A RU2621603C2 (ru) 2015-03-11 2015-08-31 Способ и устройство для фильтрации информации
BR112015028151A BR112015028151A2 (pt) 2015-03-11 2015-08-31 método e dispositivo para filtrar informação
KR1020157030882A KR101744696B1 (ko) 2015-03-11 2015-08-31 정보 필터링 방법, 장치, 프로그램 및 저장매체

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510105528.XA CN104780153B (zh) 2015-03-11 2015-03-11 信息过滤方法及装置
CN201510105528.X 2015-03-11

Publications (1)

Publication Number Publication Date
WO2016141689A1 true WO2016141689A1 (zh) 2016-09-15

Family

ID=53621397

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088564 Ceased WO2016141689A1 (zh) 2015-03-11 2015-08-31 信息过滤方法及装置

Country Status (9)

Country Link
US (1) US20160269466A1 (zh)
EP (1) EP3068097B1 (zh)
JP (1) JP6239188B2 (zh)
KR (1) KR101744696B1 (zh)
CN (1) CN104780153B (zh)
BR (1) BR112015028151A2 (zh)
MX (1) MX361504B (zh)
RU (1) RU2621603C2 (zh)
WO (1) WO2016141689A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780153B (zh) * 2015-03-11 2018-06-19 小米科技有限责任公司 信息过滤方法及装置
CN106095869B (zh) * 2016-06-03 2020-11-06 腾讯科技(深圳)有限公司 广告信息处理方法、用户设备、后台服务器及系统
CN107871017B (zh) * 2017-11-27 2023-05-09 腾讯数码(天津)有限公司 一种信息过滤功能的检测方法及装置
CN111405033B (zh) * 2020-03-13 2023-02-10 深圳前海环融联易信息科技服务有限公司 数据采集方法、装置、计算机设备及存储介质
CN116094794A (zh) * 2023-01-03 2023-05-09 江苏省未来网络创新研究院 一种基于大数据和人工智能的通信信息过滤方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150513A (zh) * 2013-03-20 2013-06-12 北京奇虎科技有限公司 拦截应用程序中的植入信息的方法及装置
US8745753B1 (en) * 2011-06-20 2014-06-03 Adomic, Inc. Systems and methods for blocking of web-based advertisements
CN103886088A (zh) * 2014-03-28 2014-06-25 北京金山网络科技有限公司 一种拦截网页中的广告的方法及装置
CN104731868A (zh) * 2015-02-28 2015-06-24 小米科技有限责任公司 拦截广告的方法及装置
CN104780153A (zh) * 2015-03-11 2015-07-15 小米科技有限责任公司 信息过滤方法及装置

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487538B1 (en) * 1998-11-16 2002-11-26 Sun Microsystems, Inc. Method and apparatus for local advertising
US6339761B1 (en) * 1999-05-13 2002-01-15 Hugh V. Cottingham Internet service provider advertising system
CA2320413C (en) * 2000-03-15 2013-12-10 Danny St-Denis Method and apparatus for network gaming
US20060160537A1 (en) * 2005-01-14 2006-07-20 Research In Motion Limited Network selection when multiple networks are available in a coverage area
US20070180147A1 (en) * 2006-02-01 2007-08-02 Connect It, Llc System for insertion of advertising content in user-requested internet web pages
US9251520B2 (en) * 2006-02-22 2016-02-02 Google Inc. Distributing mobile advertisements
KR20120113654A (ko) * 2009-06-01 2012-10-15 알까뗄 루슨트 텍스트/멀티미디어 메시지에 삽입된 광고의 관리
EP2550607B1 (en) * 2010-03-23 2020-02-12 Reversinglabs Corporation Cloud-based web content filtering
US9210030B1 (en) * 2010-11-01 2015-12-08 Aol Advertising Inc. Methods and systems for data validation in a client-server environment
CN102567366A (zh) * 2010-12-27 2012-07-11 盛乐信息技术(上海)有限公司 实现对网页重新排版的方法
CN102768664A (zh) * 2011-05-06 2012-11-07 李超 分布式网页广告拦截的方法及系统
CN104021172B (zh) * 2014-05-30 2017-07-28 北京搜狗科技发展有限公司 广告过滤方法及广告过滤装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8745753B1 (en) * 2011-06-20 2014-06-03 Adomic, Inc. Systems and methods for blocking of web-based advertisements
CN103150513A (zh) * 2013-03-20 2013-06-12 北京奇虎科技有限公司 拦截应用程序中的植入信息的方法及装置
CN103886088A (zh) * 2014-03-28 2014-06-25 北京金山网络科技有限公司 一种拦截网页中的广告的方法及装置
CN104731868A (zh) * 2015-02-28 2015-06-24 小米科技有限责任公司 拦截广告的方法及装置
CN104780153A (zh) * 2015-03-11 2015-07-15 小米科技有限责任公司 信息过滤方法及装置

Also Published As

Publication number Publication date
CN104780153B (zh) 2018-06-19
JP2017512351A (ja) 2017-05-18
EP3068097B1 (en) 2020-04-15
EP3068097A1 (en) 2016-09-14
CN104780153A (zh) 2015-07-15
KR20160120198A (ko) 2016-10-17
MX361504B (es) 2018-12-06
BR112015028151A2 (pt) 2017-07-25
RU2015144503A (ru) 2017-04-27
KR101744696B1 (ko) 2017-06-20
US20160269466A1 (en) 2016-09-15
JP6239188B2 (ja) 2017-11-29
MX2015015454A (es) 2017-04-11
RU2621603C2 (ru) 2017-06-06

Similar Documents

Publication Publication Date Title
CN108595665A (zh) 网页内容的显示方法及装置
WO2016011749A1 (zh) 轻应用离线更新方法、装置及终端
WO2016011717A1 (zh) 用于轻应用的消息推送方法、装置、终端及服务器
CN106341481A (zh) 信息推送的处理方法、装置和设备
EP3068097B1 (en) Method and device for filtering information
CN104199915B (zh) 网页变化检测方法及装置
CN107402767B (zh) 显示推送消息的方法和装置
JP6302098B2 (ja) アドレスフィルタリング方法、装置、プログラム及び記録媒体
CN104050236B (zh) 网站内容更新提示方法、服务器和客户端
CN106210258B (zh) 网页访问方法及装置
CN108153832A (zh) 推送信息显示方法及装置
CN106528888A (zh) 浏览器标签页的处理方法及装置
CN105808731A (zh) 数据存储方法及装置
CN106060138A (zh) 更新数据的方法及装置
CN112102009B (zh) 广告展示方法、装置、设备及存储介质
CN106209889B (zh) 检测网页中劫持信息的方法及装置
CN105630948B (zh) 网络页面显示方法和装置
CN111079040B (zh) 资源嗅探方法、装置、终端、服务器及存储介质
CN106055720A (zh) 网页显示方法及装置
CN107423324A (zh) 网页的访问方法、装置及设备
CN107391685A (zh) 页面显示方法及装置
CN106371707A (zh) 标签处理方法、装置及终端
CN106302000A (zh) 网页的访问提醒方法、装置及终端
CN107885746B (zh) 页面分享的方法和装置
CN108616665B (zh) 号码标记的方法、装置及存储介质

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2015144503

Country of ref document: RU

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2017504234

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20157030882

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2015/015454

Country of ref document: MX

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15884369

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112015028151

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112015028151

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20151109

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15884369

Country of ref document: EP

Kind code of ref document: A1