WO2016127625A1 - 地址过滤方法及装置 - Google Patents

地址过滤方法及装置 Download PDF

Info

Publication number
WO2016127625A1
WO2016127625A1 PCT/CN2015/088632 CN2015088632W WO2016127625A1 WO 2016127625 A1 WO2016127625 A1 WO 2016127625A1 CN 2015088632 W CN2015088632 W CN 2015088632W WO 2016127625 A1 WO2016127625 A1 WO 2016127625A1
Authority
WO
WIPO (PCT)
Prior art keywords
url address
address
cache list
webpage
url
Prior art date
Application number
PCT/CN2015/088632
Other languages
English (en)
French (fr)
Inventor
范金松
於一飞
左景龙
Original Assignee
小米科技有限责任公司
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 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to JP2016574327A priority Critical patent/JP6302098B2/ja
Priority to MX2015015404A priority patent/MX357349B/es
Priority to RU2015147593A priority patent/RU2630746C2/ru
Priority to BR112015028941A priority patent/BR112015028941A2/pt
Priority to KR1020157031176A priority patent/KR101777035B1/ko
Publication of WO2016127625A1 publication Critical patent/WO2016127625A1/zh

Links

Images

Classifications

    • 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/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/58Caching of addresses or names
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals

Definitions

  • the present disclosure relates to the field of Internet technologies, and in particular, to an address filtering method and apparatus.
  • the inventory displayed on the web page not only affects the user's browsing experience, but also wastes user traffic.
  • the related technology filters the advertisement resources, firstly constructs a filter matching table by using a preset matching algorithm, and then, according to at least one regular expression in the filtering matching table, a URL (Uniform Resource Locator) address corresponding to the webpage material resource. Matching is performed. When the matching is successful, the URL address is determined to be an advertisement address to be filtered and filtered. Since the URLs corresponding to the same advertisements in the same webpage are usually the same, when two identical URLs are received, the same matching operation is required to perform the same matching operation twice, which not only affects the filtering efficiency, but also wastes calculations. Resources.
  • An embodiment of the present disclosure provides an address filtering method and apparatus.
  • the technical solution is as follows:
  • an address filtering method comprising:
  • the webpage material resource comprises at least one of a picture resource, an audio resource, a video resource, and a text resource;
  • the URL address is not stored in the address cache list, it is matched according to a preset matching algorithm whether the URL address is a URL address to be filtered.
  • an address filtering apparatus comprising:
  • the first obtaining module is configured to obtain a URL address corresponding to the webpage material resource, where the webpage material resource comprises at least one of a picture resource, an audio resource, a video resource, and a text resource;
  • the search module is configured to search whether the URL address is stored in the address cache list, and the address cache list is used to store the URL address that has been matched by the preset matching algorithm;
  • the matching module is configured to match, when the URL address is not stored in the address cache list, whether the URL address is a URL address to be filtered according to a preset matching algorithm.
  • an address filtering apparatus comprising:
  • a memory for storing executable instructions of the processor
  • processor is configured to:
  • the webpage material resource comprises at least one of a picture resource, an audio resource, a video resource, and a text resource;
  • the URL address is not stored in the address cache list, it is matched according to a preset matching algorithm whether the URL address is a URL address to be filtered.
  • the URL matching needs to use the preset matching algorithm to perform the same matching operation twice, which not only affects the filtering efficiency, but also wastes the problem of computing resources; it only needs to use the preset matching algorithm pair and is not stored in the address cache list.
  • the URL addresses are matched to improve the efficiency of filtering and save computing resources.
  • FIG. 1 is a schematic diagram of an environment of an implementation environment involved in various embodiments of the present disclosure
  • 2A is a flowchart of a method of an address filtering method according to an exemplary embodiment
  • 2B is a flowchart of a method of an address filtering method according to an exemplary embodiment
  • 2C is a flowchart of a method of an address filtering method according to an exemplary embodiment
  • 2D is a flowchart of a method of an address filtering method according to an exemplary embodiment
  • FIG. 3A is a flowchart of a method of an address filtering method according to another exemplary embodiment
  • FIG. 3B is a flowchart of a method for obtaining a URL address process involved in an address filtering method according to another exemplary embodiment
  • FIG. 4 is a flowchart of a method of an address filtering method according to still another exemplary embodiment
  • FIG. 5 is a flowchart of a method of an address filtering method according to still another exemplary embodiment
  • FIG. 6 is a block diagram showing the structure of an address filtering apparatus according to an exemplary embodiment
  • FIG. 7 is a block diagram showing the structure of an address filtering apparatus according to another exemplary embodiment.
  • FIG. 8 is a block diagram of an address 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, a web resource server 120, and a server 130.
  • the electronic device 110 can be implemented by an electronic device on which a web browsing 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 web resource server 120 are connected by a wired or wireless network.
  • the web resource server 120 can be a server, or a server cluster consisting of several servers, or a cloud computing service center.
  • the webpage resource server 120 is configured to return a corresponding webpage code according to the webpage access request sent by the electronic device 120, and return a corresponding webpage material according to the webpage material resource acquisition request sent by the electronic device 120.
  • the server 130 and the electronic device 120 are connected by a wired or wireless network.
  • Server 130 can be a server, or a cluster of servers consisting of several servers, or a cloud computing service center.
  • the server 130 is configured to receive and send a list of address caches sent by the plurality of electronic devices 120.
  • FIG. 2A is a flowchart of a method for an address filtering method according to an exemplary embodiment.
  • the address filtering method is used for installing an electronic device with a web browsing client.
  • the address filtering method may include the following steps.
  • the URL address corresponding to the webpage material resource is acquired, and the webpage material resource includes at least one of a picture resource, an audio resource, a video resource, and a text resource;
  • step 202 the address cache list is searched for whether the URL address is stored, and the address cache list is used to store a URL address that has been matched by a preset matching algorithm.
  • the address cache list includes at least one of a first cache list and a second cache list, where the first cache list is used to store a URL address that needs to be filtered that is matched by a preset matching algorithm, and the second cache list is used to store a preset.
  • the matching algorithm matches the URL address that does not need to be filtered.
  • step 203 when the URL address is not stored in the address cache list, matching according to a preset matching algorithm Whether the URL address is a URL address that needs to be filtered.
  • the address filtering method searches for the obtained URL address by searching the address cache list.
  • the URL matching address is matched according to a preset matching algorithm. Whether it is a URL address that needs to be filtered; if two identical URL addresses are received, the same matching operation is required to perform the same matching operation twice, which not only affects the filtering efficiency, but also wastes the problem of computing resources;
  • the preset matching algorithm only needs to match the URL addresses not stored in the address cache list, thereby improving the filtering efficiency and saving the computing resources.
  • the client may store each URL address in the address cache list by using a hash table, thereby improving the efficiency of finding the URL address in the address cache list.
  • the address filtering method may further include the following steps:
  • each URL address in the address cache list is stored in a hash table.
  • the client may perform a lookup priority order on each URL address according to the number of times the URL addresses in the address cache list are searched, so that the client can access the frequently visited webpage faster. Find in the address cache list to improve the efficiency of filtering URL addresses.
  • the address filtering method may further include the following steps:
  • step 205 the number of times that each URL address in the address cache list is searched is obtained; the search priority order is performed on each URL address in the address cache list according to the number of times, and the search priority is used to identify the search order of each URL address in the search. order.
  • the client may also send the generated address cache list to the server, and the server generates update information for different clients according to the address cache list sent by different clients, so that different clients can This update information improves the efficiency of filtering by improving the URL address stored in the address cache list.
  • the address filtering method may further include the following steps:
  • the address cache list is sent to the server, and the server is configured to analyze the client's access habit according to the address cache list, and generate update information according to the client's access habits and the address cache list sent by other clients;
  • step 207 the update information is received, and the address cache list is updated based on the update information.
  • the client preferentially searches whether the URL address corresponding to the obtained web material resource is stored in the first cache list, and when the URL address is not stored in the first cache list, The URL is matched by a preset matching algorithm; and in order to improve the filtering efficiency, each URL address in the first cache list is stored in a hash table.
  • FIG. 3A is a flowchart of a method for the address filtering method according to another exemplary embodiment.
  • the address filtering method is used for the electronic device 110 shown in FIG. 1 , and the address filtering method may include the following steps. .
  • the URL address corresponding to the webpage material resource is obtained, and the webpage material resource includes a picture resource, At least one of an audio resource, a video resource, and a text resource.
  • a web page contains a large number of web assets, which can be text, video, images, audio, and more on a web page. However, these web assets contain some of the inventory. Displaying these inventory on the webpage will affect the user’s browsing experience, so the client needs to filter the inventory in the webpage assets.
  • the client can obtain the URL address in the webpage material resource, and determine whether the webpage material resource is an advertisement resource according to the URL address.
  • the step may include the following steps:
  • a webpage access request is sent to the webpage resource server, where the webpage access request carries the webpage of the webpage, and the webpage resource server is configured to search the webpage code corresponding to the webpage according to the webpage.
  • the user When the user browses the webpage through the client, the user needs to input a corresponding web address in the address bar, and the client generates a webpage access request carrying the webpage according to the webpage, and sends the webpage access request to the corresponding webpage resource server.
  • the webpage resource server After receiving the webpage access request, the webpage resource server sends the webpage code of the webpage of the webpage to the client, where the webpage code may be a code written by HTML (HyperText Markup language).
  • HTML HyperText Markup language
  • step 301B the webpage code sent by the webpage resource server is received, and the webpage code includes a URL address corresponding to at least one webpage material resource.
  • the webpage code contains a large number of URL addresses corresponding to the webpage material resources.
  • step 301C the URL address of the webpage material resource included in the webpage code is obtained.
  • the client obtains the URL address of the webpage material resource in the webpage code one by one, and judges whether the corresponding webpage material resource is an advertisement resource through the address.
  • step 302 the URL address is hashed to obtain the URL address after the hashing operation.
  • the table structure of the first cache list can be as shown in Table 1:
  • the key code value is obtained after the URL address is hashed.
  • the client After obtaining the URL address in the webpage resource, the client obtains the key code value corresponding to the URL address by performing a hashing operation. It should be noted that, in this embodiment, only the corresponding key code value obtained after the hashing operation of the URL address is used as an example, and the present disclosure is not limited.
  • step 303 it is found in the first cache list whether the URL address is stored according to the URL address of the hashing operation.
  • step 304 When the URL address is found in the first cache list according to the URL address of the hashing operation, step 304 is performed; when the URL address according to the hashing operation is not found in the first cache list, the URL is not found in the first cache list. When the address is reached, step 305 is performed.
  • step 304 when the URL address is stored in the first cache list, the URL address is directly filtered according to the record of the first cache list.
  • the client may determine that the URL address is a URL address that needs to be filtered by the preset matching algorithm, that is, the webpage resource corresponding to the URL address is an advertisement resource, and the client is Filter the URL address.
  • the client performs a hash operation on the obtained URL address, obtains a key value of “Hash B”, and searches according to the key value in the first cache list shown in Table 1, and finds the first The key value exists in the cache list, that is, the URL address is stored in the first cache list. At this time, the client does not need to match the URL address according to the preset matching algorithm, but directly filters the URL address. .
  • step 305 when the URL address is not stored in the first cache list, whether the URL address is a URL address to be filtered is matched according to a preset matching algorithm.
  • the client cannot determine whether the URL address is a URL address to be filtered, so the URL address needs to be matched according to a preset matching algorithm.
  • the client constructs a filter matching table according to a preset matching algorithm, where the filtering matching table stores at least one regular expression, and the client matches the obtained URL address with the regular expression in the filtering matching table, when the URL When the address matches the regular expression in the filter matching table, the URL is determined to be the URL address to be filtered, and step 306 is performed.
  • the filter matching table can be as shown in Table 2.
  • the obtained URL is "http://example.com/adv/123"
  • it matches the regular expression in the filter matching table and finds that the URL address matches the regular expression numbered 2, that is, Make sure the URL address is the URL address that needs to be filtered.
  • step 306 when the URL address is detected as a URL address to be filtered according to a preset matching algorithm, the URL address is filtered.
  • the client determines that the webpage asset is an advertisement resource, and filters the URL request.
  • step 307 the URL address is added to the first cache list.
  • the client Since the URL address is a URL address that needs to be filtered by the preset matching algorithm, the client adds the URL address to the first cache list. It should be noted that, since each URL address in the first cache list is stored in a hash table, the client needs to perform a hash operation on the URL address and then store the URL in the first cache list.
  • the client When the client obtains the URL address again, since the URL address is already stored in the first cache list, the client directly filters the URL address, and no longer needs to be matched by a preset matching algorithm, thereby saving calculations. Resources.
  • the address filtering method searches for the obtained URL address by searching the address cache list.
  • the URL matching address is matched according to a preset matching algorithm. Whether it is a URL address that needs to be filtered; if two identical URL addresses are received, the same matching operation is required to perform the same matching operation twice, which not only affects the filtering efficiency, but also wastes the problem of computing resources;
  • the preset matching algorithm only needs to match the URL addresses not stored in the address cache list, thereby improving the filtering efficiency and saving the computing resources.
  • the address filtering method provided by the embodiment further stores the URL address to be filtered that is matched by the preset matching algorithm in the first cache list, and searches whether the URL corresponding to the web material resource is stored in the first cache list.
  • An address when the URL address is stored in the first cache list, directly filtering the URL address, and when the URL address is not stored in the first cache list, matching is performed by using a preset matching algorithm, thereby reducing the algorithm.
  • the process of matching URL addresses saves computing resources and improves filtering efficiency.
  • the address filtering method provided in this embodiment improves the filtering efficiency by using the hash table storage for each URL address in the address cache list, thereby improving the search efficiency of the client in the address cache list.
  • the client preferentially searches whether the URL address corresponding to the obtained web material is stored in the second cache list, and when the URL address is not stored in the second cache list, The URL is matched by a preset matching algorithm; and in order to improve the filtering efficiency, the client may also search for each URL address in the second cache list according to the number of times the URL addresses in the second cache list are searched out.
  • Priority ordering The following description will be made using an exemplary embodiment.
  • FIG. 4 is a flowchart of a method for an address filtering method according to still another exemplary embodiment.
  • the address filtering method is used for the electronic device 110 shown in FIG. 1 , and the address filtering method may include the following steps.
  • step 401 the number of times each URL address in the second cache list is found is obtained.
  • the second cache list is used to store the URL address that is not filtered by the preset matching algorithm, and the number of times the client addresses the URL address corresponding to the URL address in the second cache list is found once. plus one. Obviously, the more times the URL address is found, the more times the user obtains the URL address corresponding to the webpage resource. Therefore, the client may determine the number of times the user obtains the corresponding webpage material resource according to the number of times the URL address is found in the obtained second cache list.
  • step 402 the search priority order is performed on each URL address in the second cache list according to the number of times.
  • the lookup priority is used to identify the order in which each URL address is searched.
  • the client performs a lookup priority ordering on the URL addresses stored in the second cache list according to the number of times the obtained URL addresses are searched.
  • the second cache list may be as shown in Table 3.
  • the client searches for the URL address in the second cache list
  • the client searches in order from the largest to the smallest according to the search priority.
  • different URL addresses may also correspond to the same search priority. This example is only described by taking different URL addresses corresponding to different search priorities as an example, and does not limit the present disclosure.
  • the webpage resource included therein has a higher priority for the URL address, and when the user accesses the frequently visited webpage, the search efficiency in the second cache list is also higher. Thereby improving the efficiency of web resource acquisition.
  • the URL address corresponding to the webpage material resource is acquired, and the webpage material resource includes at least one of a picture resource, an audio resource, a video resource, and a text resource.
  • the client obtains a URL address corresponding to the webpage material resource, and determines whether the webpage material resource is an advertisement resource according to the URL address.
  • step 404 it is looked up in the second cache list to see if the URL address is stored.
  • the client obtains the search priority of each URL in the second cache list, and compares the URL address with each URL address in the second cache list according to the order of the search priority, thereby determining the second cache list. Whether the URL address is stored.
  • step 405 When the URL address is stored in the second cache list, step 405 is performed; when the URL address is not stored in the second cache list, step 406 is performed.
  • step 405 when the URL address is stored in the second cache list, the web material resource acquisition request is sent to the web resource server according to the URL address.
  • the URL address is determined to be a URL address that does not need to be filtered, and the client generates a webpage material resource acquisition request according to the URL address, and sends the webpage resource resource to the webpage resource server. Get the request.
  • step 406 when the URL address is not stored in the second cache list, whether the URL address is a URL address to be filtered is matched according to a preset matching algorithm.
  • the client cannot determine whether the URL address is a URL address to be filtered, so the URL address needs to be further matched according to a preset matching algorithm.
  • the step of matching the URL address according to the preset matching algorithm is similar to the foregoing step 305, and details are not described herein again.
  • step 407 when it is detected according to the preset matching algorithm that the URL address is a URL address that does not need to be filtered, the webpage resource resource acquisition request is sent to the webpage resource server according to the URL address.
  • the client determines that the webpage material resource is not an advertisement resource, and sends a webpage material resource acquisition request to the webpage resource server.
  • the webpage resource server returns a corresponding webpage material resource according to the webpage material resource acquisition request.
  • step 408 the URL address is added to the second cache list.
  • the client Since the URL address is a URL address that is not filtered by the preset matching algorithm, the client adds the URL address to the second cache list. It should be noted that after the URL address is added to the second cache list, the client needs to detect whether the lookup priority needs to be changed, and adjusts when the lookup priority changes, thereby ensuring the second cache list. Find the timeliness of priority.
  • the client When the client obtains the URL address again, since the URL address is already stored in the second cache list, the client no longer needs to use the preset matching algorithm to match the URL address, thereby saving computing resources.
  • the address filtering method searches for the obtained URL address by searching the address cache list.
  • the URL matching address is matched according to a preset matching algorithm. Whether it is a URL address that needs to be filtered; if two identical URL addresses are received, the same matching operation is required to perform the same matching operation twice, which not only affects the filtering efficiency, but also wastes the problem of computing resources;
  • the preset matching algorithm only needs to match the URL addresses not stored in the address cache list, thereby improving the filtering efficiency and saving the computing resources.
  • the address filtering method provided by the embodiment further stores the URL address that is not filtered by the preset matching algorithm in the second cache list, and searches for the corresponding cache material in the second cache list.
  • a URL address when the URL address is stored in the second cache list, sending a webpage material resource acquisition request to the webpage resource server, and when the URL address is not stored in the second cachelist, matching is performed by using a preset matching algorithm. The process of matching the URL address by the algorithm is reduced, thereby saving computing resources and improving filtering efficiency.
  • the address filtering method provided in this embodiment further performs search priority ranking on each URL address according to the number of times the URL addresses in the address cache list are searched, thereby improving the search efficiency of the client in the address cache list, thereby improving Filtration efficiency.
  • the client may also store the matched URL address to be filtered into the first cache list, and store the matched URL address that does not need to be filtered into the second cache list.
  • the first cache is sequentially The search is performed in the list and the second cache list.
  • the matching is performed by using a preset matching algorithm; and in order to improve the filtering efficiency, the client caches the address list.
  • Sending to the server the server generates update information according to the client's access habits and other address cache lists sent by the client, and sends the update information to the client, and the address cache list is further supplemented, thereby further improving the filtering efficiency. .
  • the following description will be made using an exemplary embodiment.
  • FIG. 5 is a flowchart of a method for an address filtering method according to still another exemplary embodiment. This embodiment uses the address.
  • the filtering method is used for the electronic device 110 shown in FIG. 1, and the address filtering method may include the following steps.
  • step 501 the first cache list and the second cache list are sent to the server, and the server is configured to analyze the client's access habit according to the first cache list and the second cache list, and according to the client's access habits and other clients.
  • a cache list and a second cache list generate update information.
  • the client may send the first cache list and the second cache list to the server every predetermined time interval, and the predetermined time intervals may be the same or different. For example, the client may send the first cache list and the second cache list to the server every 24 hours, or may send the first cache list and the second cache list to the server on the 1st of each month. It should be noted that, when the client adds a new URL address to the first cache list or the second cache list, the client may send the first cache list and the second cache list to the server, which is not limited by the disclosure. .
  • the server After receiving the first cache list and the second cache list, the server analyzes the client's access habit according to the URL address stored in the first cache list and the second cache list. For example, the client may frequently access the stored URL address according to the stored URL address. Website.
  • the server may according to the access habits of the client and the first cache list sent by the other client and the URL address stored in the second cache list. Generate update information.
  • the server analyzes the first cache list A sent by the client A, and the website frequently accessed by the client A is the website A, and the “URL A” and the “URL B” in the first cache list A belong to the website A;
  • the server The first cache list B sent by the client B is analyzed, and the website frequently accessed by the client B is the website A, and the “URL B” and the “URL C” in the first cache list A belong to the website A;
  • the server is about to “URL” C" is determined as the update information corresponding to the client A, and "URL A" is determined as the update information corresponding to the client B.
  • the server sends the generated update information to the corresponding client.
  • step 502 update information is received, and the first cache list and the second cache list are updated according to the update information.
  • the client adds the URL address included in the update information to the corresponding address cache table.
  • the URL address corresponding to the webpage material resource is acquired, and the webpage material resource includes at least one of a picture resource, an audio resource, a video resource, and a text resource.
  • the client obtains the URL address corresponding to the webpage material resource, and determines whether the webpage material resource is an advertisement resource according to the URL address.
  • step 504 it is detected whether the URL address is stored in the first cache list.
  • the client detects whether the URL address is stored in the first cache list. When it is detected that the URL address is stored in the first cache list, the URL address is determined to be a URL address to be filtered, and is filtered; when the first cache list is used When the URL address is not stored, step 505 is performed.
  • step 505 when the URL address is not stored in the first cache list, it is detected whether the URL address is stored in the second cache list.
  • the client detects whether the URL address is stored in the second cache list. When it is detected that the URL address is stored in the second cache list, the URL address is determined to be a URL address that does not need to be filtered; when the second cache list is not stored When the URL address is stored, step 506 is performed.
  • step 506 when the URL address is not stored in the second cache list, whether the URL address is a URL address to be filtered is matched according to a preset matching algorithm.
  • the step of matching the URL address to the URL address to be filtered according to the preset matching algorithm is similar to the step 305 described above, and details are not described herein again.
  • step 507 when the URL address is matched to the URL address to be filtered according to the preset matching algorithm, the URL address is filtered; and the URL address is added to the first cache list.
  • the client When detecting, by the preset matching algorithm, that the URL address is a URL address that needs to be filtered, the client determines that the webpage asset is an advertisement resource, filters the URL address, and adds the URL address to the first cache list.
  • step 508 when the URL address is matched to the URL address that does not need to be filtered according to the preset matching algorithm, the webpage resource resource obtaining request is sent to the webpage resource server according to the URL address; and the URL address is added to the second cache list.
  • the client determines that the webpage material resource is not an advertisement resource request, sends a webpage material resource acquisition request to the webpage resource server, and adds the URL address. Go to the second cache list.
  • the address filtering method searches for the obtained URL address by searching the address cache list.
  • the URL matching address is matched according to a preset matching algorithm. Whether it is a URL address that needs to be filtered; if two identical URL addresses are received, the same matching operation is required to perform the same matching operation twice, which not only affects the filtering efficiency, but also wastes the problem of computing resources;
  • the preset matching algorithm only needs to match the URL addresses not stored in the address cache list, thereby improving the filtering efficiency and saving the computing resources.
  • the address filtering method provided by the embodiment further sends the address cache list to the server, and the server generates update information according to the address cache list and the address cache list sent by other clients, and sends the update information to the client, the client.
  • the terminal updates the address cache list according to the update information, so that the address cache list of the client with the same access habit is supplemented and improved, and the filtering efficiency is improved.
  • FIG. 6 is a block diagram showing the structure of an address filtering apparatus according to an exemplary embodiment.
  • the address 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 address filtering device can include:
  • the first obtaining module 601 is configured to obtain a URL address corresponding to the webpage material resource, where the webpage material resource comprises at least one of a picture resource, an audio resource, a video resource, and a text resource;
  • the searching module 602 is configured to: in the address cache list, to search whether a URL address is stored, where the address cache list is used to store a URL address that has been matched by a preset matching algorithm;
  • the matching module 603 is configured to match, when the URL address is not stored in the address cache list, whether the URL address is a URL address to be filtered according to a preset matching algorithm.
  • the address filtering apparatus searches for the URL address in the address cache list by searching whether the obtained URL address is not found, and then matching the URL address according to a preset matching algorithm. Whether it is a URL address that needs to be filtered; if two identical URL addresses are received, the same matching operation is required to perform the same matching operation twice, which not only affects the filtering efficiency, but also wastes the problem of computing resources; The preset matching algorithm only needs to match the URL addresses not stored in the address cache list, thereby improving the filtering efficiency and saving the computing resources.
  • FIG. 7 is a block diagram showing the structure of an address filtering apparatus according to another exemplary embodiment.
  • the address 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 address filtering device can include:
  • the first obtaining module 701 is configured to acquire a URL address corresponding to the webpage material resource, where the webpage material resource comprises at least one of a picture resource, an audio resource, a video resource, and a text resource;
  • the searching module 702 is configured to search, in the address cache list, whether a URL address is stored, where the address cache list is used to store a URL address that has been matched by a preset matching algorithm;
  • the matching module 703 is configured to match, when the URL address is not stored in the address cache list, whether the URL address is a URL address to be filtered according to a preset matching algorithm.
  • the first obtaining module 701 includes:
  • the request sending sub-module 701A is configured to send a webpage access request to the webpage resource server, where the webpage access request carries the webpage of the webpage, and the webpage resource server is configured to search the webpage code corresponding to the webpage according to the webpage;
  • the code receiving sub-module 701B receives the webpage code sent by the webpage resource server, and the webpage code includes a URL address corresponding to the at least one webpage material resource;
  • the obtaining submodule 701C is configured to obtain a URL address of a webpage material resource included in the webpage code.
  • each URL address in the address cache list is stored in a hash table
  • the finding module 702 includes:
  • the operation sub-module 702A is configured to perform a hash operation on the URL address to obtain a URL address after the hash operation;
  • the lookup submodule 702B is configured to look up in the address cache list whether a URL address is stored according to the URL address of the hashing operation.
  • the device further includes:
  • the second obtaining module 704 is configured to obtain the number of times each URL address in the address cache list is searched out;
  • the sorting module 705 is configured to perform a lookup priority row for each URL address in the address cache list according to the number of times The priority is used to identify the order in which each URL address is searched.
  • the address cache list includes a first cache list, where the first cache list is used to store a URL address that needs to be filtered by the preset matching algorithm.
  • the device also includes:
  • the first filtering module 706 is configured to filter the URL address when the URL address is a URL address that needs to be filtered according to the preset matching algorithm.
  • the first adding module 707 is configured to add the URL address to the first cache list.
  • the address cache list includes a second cache list, where the second cache list is used to store a URL address that is not filtered by the preset matching algorithm.
  • the device also includes:
  • the first sending module 708 is configured to: when detecting, according to the preset matching algorithm, that the URL address is a URL address that does not need to be filtered, sending a webpage resource resource obtaining request to the webpage resource server according to the URL address;
  • the second adding module 709 is configured to add the URL address to the second cache list.
  • the address cache list includes a first cache list and a second cache list, where the first cache list is used to store a URL address that needs to be filtered that is matched by the preset matching algorithm, and the second cache list is used to store a preset matching algorithm match. a URL address that does not need to be filtered,
  • the finding module 702 includes:
  • the first detecting submodule 702C is configured to detect whether a URL address is stored in the first cache list
  • the second detecting sub-module 702D is configured to detect whether the URL address is stored in the second cache list when the URL address is not stored in the first cache list;
  • the second detecting sub-module 702D is further configured to, when the URL address is not stored in the second cache list, perform a step of matching whether the URL address is a URL address to be filtered according to a preset matching algorithm;
  • the device also includes:
  • the second filtering module 710 is configured to: when the URL address is selected as the URL address to be filtered according to the preset matching algorithm, filter the URL address; add the URL address to the first cache list;
  • the second sending module 711 is configured to: when the URL address is a URL address that does not need to be filtered according to the preset matching algorithm, send a webpage material resource obtaining request to the webpage resource server according to the URL address; and add the URL address to the second cache. List.
  • the device further includes:
  • the list sending module 712 is configured to send an address cache list to the server, and the server is configured to analyze the client's access habit according to the address cache list, and generate update information according to the client's access habits and the address cache list sent by other clients;
  • the receiving module 713 is configured to receive the update information and update the address cache list according to the update information.
  • the device further includes:
  • the third filtering module 714 is configured to cache the column according to the address when the URL address is stored in the address cache list
  • the record of the table directly filters the URL address, or sends a web material resource acquisition request to the web resource server according to the URL address.
  • the address filtering apparatus searches for the URL address in the address cache list by searching whether the obtained URL address is not found, and then matching the URL address according to a preset matching algorithm. Whether it is a URL address that needs to be filtered; if two identical URL addresses are received, the same matching operation is required to perform the same matching operation twice, which not only affects the filtering efficiency, but also wastes the problem of computing resources; The preset matching algorithm only needs to match the URL addresses not stored in the address cache list, thereby improving the filtering efficiency and saving the computing resources.
  • the address filtering apparatus further stores the URL address to be filtered that is matched by the preset matching algorithm in the first cache list, and searches whether the URL corresponding to the webpage resource is stored in the first cache list.
  • An address when the URL address is stored in the first cache list, directly filtering the URL address, and when the URL address is not stored in the first cache list, matching is performed by using a preset matching algorithm, thereby reducing the algorithm.
  • the process of matching URL addresses saves computing resources and improves filtering efficiency.
  • the address filtering apparatus provided in this embodiment further improves the search efficiency of the client in the address cache list by using the hash table storage for each URL address in the address cache list, thereby improving the filtering efficiency.
  • the address filtering device provided by the embodiment further stores the URL address that is not filtered by the preset matching algorithm in the second cache list, and searches for the corresponding cache material in the second cache list.
  • a URL address when the URL address is stored in the second cache list, sending a webpage material resource acquisition request to the webpage resource server, and when the URL address is not stored in the second cachelist, matching is performed by using a preset matching algorithm. The process of matching the URL address by the algorithm is reduced, thereby saving computing resources and improving filtering efficiency.
  • the address filtering apparatus provided in this embodiment further performs search priority ranking on each URL address according to the number of times the URL addresses in the address cache list are searched, thereby improving the search efficiency of the client in the address cache list, thereby improving Filtration efficiency.
  • the address filtering apparatus provided in this embodiment further generates update information according to the address cache list and the address cache list sent by other clients by sending the address cache list to the server, and sends the update information to the client, the client.
  • the terminal updates the address cache list according to the update information, so that the address cache list of the client with the same access habit is supplemented and improved, and the filtering efficiency is improved.
  • FIG. 8 is a block diagram of an address filtering device 800, according to an exemplary embodiment.
  • device 800 can be electronic device 110 as shown in FIG.
  • device 800 can include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, And a communication component 816.
  • Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 802 can include one or more processors 820 to execute the fingers Order to complete all or part of the steps of the above method.
  • processing component 802 can include one or more modules to facilitate interaction between component 802 and other components.
  • processing component 802 can include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 804 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.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Electrically 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 806 provides power to various components of device 800.
  • Power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 800.
  • the multimedia component 808 includes a screen between the device 800 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 808 includes a front camera and/or a rear camera. When the device 800 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 810 is configured to output and/or input an audio signal.
  • the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816.
  • the audio component 810 also includes a speaker for outputting an audio signal.
  • the I/O interface 812 provides an interface between the processing component 802 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 814 includes one or more sensors for providing device 800 with a status assessment of various aspects.
  • sensor assembly 814 can detect an open/closed state of device 800, relative positioning of components, such as the display and keypad of device 800, and sensor component 814 can also detect a change in position of one component of device 800 or device 800. The presence or absence of user contact with device 800, device 800 orientation or acceleration/deceleration, and temperature variation of device 800.
  • Sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 816 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 816 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 800 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 804 comprising instructions executable by processor 820 of apparatus 800 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 800, enables apparatus 800 to perform an address filtering method applied to electronic device 110 as shown in FIG.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开是关于一种地址过滤方法及装置,属于互联网技术领域。所述方法包括:获取网页素材资源所对应的URL地址,该网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;在地址缓存列表中查找是否存储有该URL地址,地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;当地址缓存列表中未存储有该URL地址时,根据预设匹配算法匹配URL地址是否为需要过滤的URL地址。本公开达到了只需要使用预设匹配算法对未存储在地址缓存列表中的URL地址进行匹配,从而提高了过滤的效率,节省计算资源的效果。

Description

地址过滤方法及装置
本申请基于申请号为201510079200.5、申请日为2015年2月13日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及互联网技术领域,特别涉及一种地址过滤方法及装置。
背景技术
网页上显示的广告资源,不但影响用户的浏览体验,而且浪费用户的流量。
相关技术对广告资源进行过滤,首先通过预设匹配算法构建过滤匹配表,再根据过滤匹配表中的至少一个正则表达式对网页素材资源所对应的URL(Uniform Resource Locator,统一资源定位符)地址进行匹配,当匹配成功时,即确定该URL地址为需要过滤的广告地址并进行过滤。由于同一网页中的相同广告资源对应的URL地址通常相同,当接收到两个相同的URL地址时,需要使用预设匹配算法进行两次相同的匹配操作,不仅影响过滤的效率,而且会浪费计算资源。
发明内容
本公开实施例提供了一种地址过滤方法及装置,该技术方案如下:
根据本公开实施例的第一方面,提供一种地址过滤方法,该方法包括:
获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
在地址缓存列表中查找是否存储有URL地址,地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
当地址缓存列表中未存储有该URL地址时,根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址。
根据本公开实施例的第二方面,提供一种地址过滤装置,该装置包括:
第一获取模块,被配置为获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
查找模块,被配置为在地址缓存列表中查找是否存储有URL地址,地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
匹配模块,被配置为当地址缓存列表中未存储有URL地址时,根据预设匹配算法匹配URL地址是否为需要过滤的URL地址。
根据本公开实施例的第三方面,提供一种地址过滤装置,该装置包括:
处理器;
用于存储所述处理器的可执行指令的存储器;
其中,该处理器被配置为:
获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
在地址缓存列表中查找是否存储有该URL地址,地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
当地址缓存列表中未存储有该URL地址时,根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址。
本公开实施例提供的技术方案可以包括以下有益效果:
通过在地址缓存列表中查找是否存储有获取到的URL地址,当未查找到该URL地址时,再根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址;解决当接收到两个相同的URL地址时,需要使用预设匹配算法进行两次相同的匹配操作,不仅影响过滤的效率,而且会浪费计算资源的问题;达到了只需要使用预设匹配算法对未存储在地址缓存列表中的URL地址进行匹配,从而提高了过滤的效率,节省计算资源的效果。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是本公开各个实施例所涉及的实施环境的环境示意图;
图2A是根据一示例性实施例示出的地址过滤方法的方法流程图;
图2B是根据一示例性实施例示出的地址过滤方法的方法流程图;
图2C是根据一示例性实施例示出的地址过滤方法的方法流程图;
图2D是根据一示例性实施例示出的地址过滤方法的方法流程图;
图3A是根据另一示例性实施例示出的地址过滤方法的方法流程图;
图3B是根据另一示例性实施例示出的地址过滤方法所涉及的获取URL地址过程的方法流程图;
图4是根据再一示例性实施例示出的地址过滤方法的方法流程图;
图5是根据又一示例性实施例示出的地址过滤方法的方法流程图;
图6是根据一示例性实施例示出的地址过滤装置的结构方框图;
图7是根据另一示例性实施例示出的地址过滤装置的结构方框图;
图8是根据一示例性实施例示出的地址过滤装置的框图。
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和 文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
图1是本公开各个实施例所涉及的实施环境的环境示意图,该实施环境包括电子设备110、网页资源服务器120和服务器130。
电子设备110可以由安装有网页浏览客户端的电子设备来实现。该电子设备可以是智能手机、平板电脑、电子书阅读器和膝上型便携计算机(相机、摄像机)等等。
电子设备110与网页资源服务器120之间通过有线或无线网络相连。
网页资源服务器120可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。该网页资源服务器120用于根据电子设备120发送的网页访问请求返回相应的网页代码,并根据电子设备120发送的网页素材资源获取请求,返回相应的网页素材。
服务器130与电子设备120之间通过有线或无线网络相连。
服务器130可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。该服务器130用于接收发送多个电子设备120发送的地址缓存列表。
为了简化描述,下文中仅以地址过滤方法由客户端执行来举例说明,但对此不构成限定。
图2A是根据一示例性实施例示出的地址过滤方法的方法流程图,本实施例以该地址过滤方法用于安装有网页浏览客户端的电子设备来进行说明,该地址过滤方法可以包括如下步骤。
在步骤201中,获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
在步骤202中,在地址缓存列表中查找是否存储有该URL地址,地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
该地址缓存列表包括第一缓存列表和第二缓存列表中的至少一个,其中,第一缓存列表用于存储预设匹配算法匹配出的需要过滤的URL地址,第二缓存列表用于存储预设匹配算法匹配出的不需要过滤的URL地址。
在步骤203中,当地址缓存列表中未存储有该URL地址时,根据预设匹配算法匹配 该URL地址是否为需要过滤的URL地址。
综上所述,本示例性实施例提供的地址过滤方法,通过在地址缓存列表中查找是否存储获取到的URL地址,当未查找到该URL地址时,再根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址;解决当接收到两个相同的URL地址时,需要使用预设匹配算法进行两次相同的匹配操作,不仅影响过滤的效率,而且会浪费计算资源的问题;达到了只需要使用预设匹配算法对未存储在地址缓存列表中的URL地址进行匹配,从而提高了过滤的效率,节省计算资源的效果。
作为一种可能的实施方式,客户端可以将地址缓存列表中的各个URL地址采用哈希表进行存储,从而提高在地址缓存列表中的查找URL地址的效率。如图2B所示,该地址过滤方法还可以包括如下步骤:
在步骤204中,将地址缓存列表中的各个URL地址采用哈希表存储。
作为另一种可能的实施方式,客户端可以按照地址缓存列表中各个URL地址被查找出的次数,对各个URL地址进行查找优先级排序,使得客户端访问经常访问的网页时,能够更快的在地址缓存列表中进行查找,提高过滤URL地址的效率。如图2C所示,该地址过滤方法还可以包括如下步骤:
在步骤205中,获取地址缓存列表中各个URL地址被查找出的次数;根据次数对地址缓存列表中各个URL地址进行查找优先级排序,查找优先级用于标识各个URL地址在查找时的查找先后顺序。
作为再一种可能的实施方式,客户端还可以通过将生成的地址缓存列表发送至服务器,由服务器根据不同客户端发送的地址缓存列表,生成针对不同客户端的更新信息,使得不同客户端能够根据该更新信息完善地址缓存列表中存储的URL地址,从而提高过滤的效率。如图2D所示,该地址过滤方法还可以包括如下步骤:
在步骤206中,向服务器发送地址缓存列表,服务器用于根据地址缓存列表分析客户端的访问习惯,并根据客户端的访问习惯和其它客户端发送的地址缓存列表生成更新信息;
在步骤207中,接收更新信息,并根据更新信息更新地址缓存列表。
当地址缓存列表包括第一缓存列表时,客户端优先查找该第一缓存列表中是否存储有获取到的网页素材资源对应的URL地址,当该第一缓存列表中未存储有该URL地址时,再通过预设匹配算法对该URL进行匹配;且为了提高过滤的效率,第一缓存列表中的各个URL地址采用哈希表存储。下面采用一个示例性实施例进行说明。
图3A是根据另一示例性实施例示出的地址过滤方法的方法流程图,本实施例以该地址过滤方法用于图1所示的电子设备110来进行说明,该地址过滤方法可以包括如下步骤。
在步骤301中,获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、 音频资源、视频资源和文字资源中的至少一种。
网页中包含大量的网页素材资源,这些网页素材资源可以是网页上的文字、视频、图片和音频等等。但是这些网页素材资源中包含了部分广告资源,在网页上显示这些广告资源会影响用户的浏览体验,所以客户端需要对网页素材资源中的广告资源进行过滤。
由于广告资源对应的URL地址具有一些特定的标识,所以客户端可以获取网页素材资源中的URL地址,并根据该URL地址判断该网页素材资源是否为广告资源。
作为一种可能的实现方式,如图3B所示,本步骤可以包括如下步骤:
在步骤301A中,向网页资源服务器发送网页访问请求,网页访问请求携带有网页的网址,网页资源服务器用于根据网址查找网页对应的网页代码。
用户向通过客户端浏览网页时,需要在地址栏中输入相应的网址,客户端根据该网址,生成携带有该网址的网页访问请求,并将该网页访问请求发送至相应的网页资源服务器。
网页资源服务器接收到该网页访问请求后,将该网址随影网页的网页代码发送至客户端,其中,该网页代码可以是HTML(HyperText Markup language,超级文本标记语言)编写的代码。
在步骤301B中,接收网页资源服务器发送的网页代码,网页代码包括至少一个网页素材资源所对应的URL地址。
由于一个网页中包含大量的网页素材资源,而每个网页素材资源有对应一个URL地址,所以该网页代码中包含大量的网页素材资源所对应的URL地址。
在步骤301C中,获取网页代码中包括的网页素材资源的URL地址。
客户端逐一获取网页代码中网页素材资源的URL地址,并通过该地址判断对应的网页素材资源是否为广告资源。
在步骤302中,将URL地址进行哈希化操作,得到哈希化操作后的URL地址。
由于通过预设过滤算法匹配出的需要过滤的URL地址使用哈希表进行存储,即第一缓存列表中存储的URL地址都经过哈希化操作,所以当在第一缓存列表中查找是否存储有该URL地址时,需要对该URL地址进行哈希化操作。其中,该第一缓存列表的表结构可以如表一所示:
表一
关键码值 URL地址
Hash A http://example.com/ads/110
Hash B http://example.com/ads/120
Hash C http://example.com/ads/130
其中,该关键码值是URL地址经过哈希化操作后得到的。
客户端在获取到网页素材资源中的URL地址后,通过哈希化操作得到该URL地址对应的关键码值。需要说明的是,本实施例仅以该URL地址经过哈希化操作后得到的是相应的关键码值为例进行说明,并不对本公开构成限定。
在步骤303中,根据经过哈希化操作的URL地址在第一缓存列表中查找是否存储有该URL地址。
当根据经过哈希化操作的URL地址在第一缓存列表中查找到存储有该URL地址时,执行步骤304;当根据经过哈希化操作的URL地址未在第一缓存列表中查找到该URL地址时,执行步骤305。
在步骤304中,当第一缓存列表中存储有该URL地址时,根据第一缓存列表的记录直接过滤该URL地址。
当第一缓存列表中存储有该URL地址时,客户端可以确定该URL地址是预设匹配算法匹配出的需要过滤的URL地址,即该URL地址对应的网页素材资源为广告资源,客户端即对该URL地址进行过滤。
比如,客户端对获取到的URL地址进行哈希化操作,得到关键码值为“Hash B”,并根据该关键码值在表一所示的第一缓存列表中进行查找,查找到第一缓存列表中存在该关键码值,即第一缓存列表中存储有该URL地址,此时,客户端不再需要根据预设匹配算法对该URL地址进行匹配,而是直接将该URL地址进行过滤。
在步骤305中,当第一缓存列表中未存储有该URL地址时,根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址。
当第一缓存列表中未存储有该URL地址时,客户端不能确定该URL地址是否为需要过滤的URL地址,所以需要根据预设匹配算法对该URL地址进行匹配。
客户端根据预设匹配算法构建过滤匹配表,其中,该过滤匹配表中存储有至少一个正则表达式,客户端将获取到的URL地址与过滤匹配表中的正则表达式进行匹配,当该URL地址与过滤匹配表中正则表达式匹配时,则确定该URL地址为需要过滤的URL地址,执行步骤306。其中,该过滤匹配表可以如表二所示。
表二
编号 正则表达式
1 http://example.com/ads/*
2 http://example.com/adv/*
3 http://example.com/banner*.gif
比如,获取到的URL地址为“http://example.com/adv/123”,通过与过滤匹配表中的正则表达式进行匹配,发现该URL地址与编号为2的正则表达式匹配,即确定该URL地址为需要过滤的URL地址。
在步骤306中,当根据预设匹配算法检测到该URL地址是需要过滤的URL地址时,过滤该URL地址。
当根据预设匹配算法检测到该URL地址是需要过滤的URL地址时,客户端即确定该网页素材资源为广告资源,并对该URL请求进行过滤。
在步骤307中,将该URL地址添加到第一缓存列表中。
由于该URL地址是预设匹配算法匹配出的需要过滤的URL地址,所以客户端将该URL地址添加到第一缓存列表中。需要说明的是,由于该第一缓存列表中各个URL地址采用哈希表存储,所以客户端需要先对该URL地址进行哈希化操作,再存入第一缓存列表中。
当客户端再次获取到该URL地址时,由于第一缓存列表中已经存储有该URL地址,所以客户端直接对该URL地址进行过滤,不再需要经过预设匹配算法进行匹配,从而节省了计算资源。
综上所述,本示例性实施例提供的地址过滤方法,通过在地址缓存列表中查找是否存储获取到的URL地址,当未查找到该URL地址时,再根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址;解决当接收到两个相同的URL地址时,需要使用预设匹配算法进行两次相同的匹配操作,不仅影响过滤的效率,而且会浪费计算资源的问题;达到了只需要使用预设匹配算法对未存储在地址缓存列表中的URL地址进行匹配,从而提高了过滤的效率,节省计算资源的效果。
本实施例提供的地址过滤方法,还通过将预设匹配算法匹配出的需要过滤的URL地址存储在第一缓存列表中,并在该第一缓存列表中查找是否存储有网页素材资源对应的URL地址,当该第一缓存列表中存储有该URL地址时,直接对该URL地址进行过滤,当该第一缓存列表中未存储该URL地址时,再通过预设匹配算法进行匹配,减少了算法匹配URL地址的过程,从而节省了计算资源,提高了过滤效率。
本实施例提供的地址过滤方法,还通过对地址缓存列表中的各个URL地址采用哈希表存储,提高了客户端在地址缓存列表中的查找效率,从而提高了过滤效率。
当地址缓存列表包括第二缓存列表时,客户端优先查找该第二缓存列表中是否存储有获取到的网页素材资源对应URL地址,当该第二缓存列表中未存储有该URL地址时,再通过预设匹配算法对该URL进行匹配;且为了提高过滤的效率,客户端还可以根据第二缓存列表中的各个URL地址被查找出的次数,对第二缓存列表中的各个URL地址进行查找优先级排序。下面采用一个示例性实施例进行说明。
图4是根据再一示例性实施例示出的地址过滤方法的方法流程图,本实施例以该地址过滤方法用于图1所示电子设备110来进行说明,该地址过滤方法可以包括如下步骤。
在步骤401中,获取第二缓存列表中各个URL地址被查找出的次数。
第二缓存列表用于存储预设匹配算法匹配出的不需要过滤的URL地址,且第二缓存列表中的URL地址每被查找到一次时,客户端将该URL地址对应的被查找处的次数加一。显而易见的,URL地址对应的被查找出的次数越多,表明用户获取该URL地址对应网页素材资源的次数也越多。所以,客户端可以根据获取到的第二缓存列表中各个URL地址被查找出的次数,确定用户获取对应网页素材资源的次数。
在步骤402中,根据该次数对第二缓存列表中各个URL地址进行查找优先级排序, 查找优先级用于标识各个URL地址在查找时的查找先后顺序。
客户端根据获取的各个URL地址被查找出的次数,对第二缓存列表中存储的URL地址进行查找优先级排序,其中,该第二缓存列表可以如表三所示。
表三
查找优先级 URL地址 被查找出的次数
4 URL A 100
3 URL B 80
2 URL C 60
1 URL D 20
其中,客户端在第二缓存列表中查找URL地址时,根据查找优先级,由大到小依次进行查找。需要说明的是,不同的URL地址也可以对应相同的查找优先级,本实施例仅以不同的URL地址对应不同的查找优先级为例进行说明,并不对本公开构成限定。
显而易见的,对于客户端经常访问的网页,其中包含的网页素材资源对应URL地址的查找优先级较高,当用户访问这些经常访问的网页时,在第二缓存列表中的查找效率也较高,从而提高了网页资源获取的效率。
在步骤403中,获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种。
与上述步骤301相似的,客户端获取网页素材资源对应的URL地址,并根据该URL地址判断该网页素材资源是否为广告资源。
在步骤404中,在第二缓存列表中查找是否存储有该URL地址。
客户端获取第二缓存列表中各个URL的查找优先级,按照查找优先级从大到小的顺序,将该URL地址与第二缓存列表中的各个URL地址进行对比,从而确定第二缓存列表中是否存储有该URL地址。
当第二缓存列表中存储有该URL地址时,执行步骤405;当第二缓存列表中未存储有该URL地址时,执行步骤406。
在步骤405中,当第二缓存列表中存储有该URL地址时,根据URL地址向网页资源服务器发送网页素材资源获取请求。
当第二缓存列表中存储有该URL地址时,即可确定该URL地址为不需要过滤的URL地址,客户端根据该URL地址生成网页素材资源获取请求,并向网页资源服务器发送该网页素材资源获取请求。
在步骤406中,当第二缓存列表中未存储有该URL地址时,根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址。
当第二缓存列表中未存储有该URL地址时,客户端不能确定该URL地址是否为需要过滤的URL地址,所以需要根据预设匹配算法对该URL地址进行进一步匹配。其中,根据预设匹配算法匹配该URL地址的步骤与上述步骤305相似,在此不再赘述。
在步骤407中,当根据预设匹配算法检测到该URL地址是不需要过滤的URL地址时,根据URL地址向网页资源服务器发送网页素材资源获取请求。
当根据预设匹配算法检测到该URL地址是不需要过滤的URL地址时,客户端即确定该网页素材资源不是广告资源,并向网页资源服务器发送网页素材资源获取请求。对应的,网页资源服务器根据该网页素材资源获取请求返回相应的网页素材资源。
在步骤408中,将该URL地址添加到第二缓存列表中。
由于该URL地址是预设匹配算法匹配出的不需要过滤的URL地址,所以客户端将该URL地址添加到第二缓存列表中。需要说明的是,在将该URL地址添加到第二缓存列表中后,客户端需要检测查找优先级是否需要进行变化,并在查找优先级发生变化时进行调整,从而保证了第二缓存列表中查找优先级的时效性。
当客户端再次获取到该URL地址时,由于第二缓存列表中已经存储有该URL地址,客户端不再需要使用预设匹配算法对该URL地址进行匹配,从而节省了计算资源。
综上所述,本示例性实施例提供的地址过滤方法,通过在地址缓存列表中查找是否存储获取到的URL地址,当未查找到该URL地址时,再根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址;解决当接收到两个相同的URL地址时,需要使用预设匹配算法进行两次相同的匹配操作,不仅影响过滤的效率,而且会浪费计算资源的问题;达到了只需要使用预设匹配算法对未存储在地址缓存列表中的URL地址进行匹配,从而提高了过滤的效率,节省计算资源的效果。
本实施例提供的地址过滤方法,还通过将预设匹配算法匹配出的不需要过滤的URL地址存储在第二缓存列表中,并在该第二缓存列表中查找是否存储有网页素材资源对应的URL地址,当该第二缓存列表中存储有该URL地址时,向网页资源服务器发送网页素材资源获取请求,当该第二缓存列表中未存储该URL地址时,再通过预设匹配算法进行匹配,减少了算法匹配URL地址的过程,从而节省了计算资源,提高了过滤效率。
本实施例提供的地址过滤方法,还通过按照地址缓存列表中各个URL地址被查找出的次数,对各个URL地址进行查找优先级排序,提高了客户端在地址缓存列表中的查找效率,从而提高了过滤效率。
客户端还可以将匹配出的需要过滤的URL地址存储到第一缓存列表,并将匹配出的不需要过滤的URL地址存储到第二缓存列表,当获取到URL地址时,依次在第一缓存列表和第二缓存列表中进行查找,当第一缓存列表和第二缓存列表均为存储该URL地址时,再通过预设匹配算法进行匹配;且为了提高过滤的效率,客户端将地址缓存列表发送至服务器,服务器根据该客户端的访问习惯和其它客户端发送的地址缓存列表生成更新信息,并将该更新信息发送至客户端,是的该地址缓存列表得到进一步补充,从而进一步提高过滤的效率。下面采用一个示例性实施例进行说明。
图5是根据又一示例性实施例示出的地址过滤方法的方法流程图,本实施例以该地址 过滤方法用于图1所示电子设备110来进行说明,该地址过滤方法可以包括如下步骤。
在步骤501中,向服务器发送第一缓存列表和第二缓存列表,服务器用于根据第一缓存列表和第二缓存列表分析客户端的访问习惯,并根据客户端的访问习惯和其它客户端发送的第一缓存列表和第二缓存列表生成更新信息。
客户端可以每隔预定时间间隔向服务器发送第一缓存列表和第二缓存列表,该预定时间间隔可以相同也可以不同。比如,客户端可以每隔24小时向服务器发送第一缓存列表和第二缓存列表,也可以在每月1号向服务器发送第一缓存列表和第二缓存列表。需要说明的是,客户端也可以在检测到第一缓存列表或第二缓存列表中添加了新的URL地址时,向服务器发送第一缓存列表和第二缓存列表,本公开并不对此进行限定。
服务器接收到第一缓存列表和第二缓存列表后,根据第一缓存列表和第二缓存列表中存储的URL地址分析客户端的访问习惯,比如,可以根据存储的URL地址分析得到该客户端经常访问的网站。
由于服务器同时接收其它客户端发送的第一缓存列表和第二缓存列表,所以,服务器可以根据该客户端的访问习惯和其它客户端发送的第一缓存列表和第二缓存列表中存储的URL地址,生成更新信息。
比如,服务器分析客户端A发送的第一缓存列表A,得到客户端A经常访问的网站为网站A,且第一缓存列表A中的“URL A”和“URL B”同属于网站A;服务器分析客户端B发送的第一缓存列表B,得到客户端B经常访问的网站为网站A,且第一缓存列表A中的“URL B”和“URL C”同属于网站A;服务器即将“URL C”确定为客户端A对应的更新信息,将“URL A”确定为客户端B对应的更新信息。
服务器将生成的更新信息发送至对应的客户端。
在步骤502中,接收更新信息,并根据更新信息更新第一缓存列表和第二缓存列表。
客户端将更新信息中包含的URL地址添加到对应的地址缓存表中。
在步骤503中,获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种。
与上述步骤301相似的,客户端获取网页素材资源所对应的URL地址,并根据该URL地址判断该网页素材资源是否为广告资源。
在步骤504中,检测第一缓存列表中是否存储有该URL地址。
客户端检测第一缓存列表中是否存储有该URL地址,当检测到第一缓存列表中存储有该URL地址,即确定该URL地址为需要过滤的URL地址,并进行过滤;当第一缓存列表中未存储该URL地址时,执行步骤505。
在步骤505中,当第一缓存列表中未存储该URL地址时,检测第二缓存列表中是否存储该URL地址。
客户端检测第二缓存列表中是否存储有该URL地址,当检测到第二缓存列表中存储有该URL地址,即确定该URL地址为不需要过滤的URL地址;当第二缓存列表中未存 储该URL地址时,执行步骤506。
在步骤506中,当第二缓存列表中未存储该URL地址时,根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址。
根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址的步骤与上述步骤305相似,在此不再赘述。
在步骤507中,当根据预设匹配算法匹配出该URL地址为需要过滤的URL地址时,过滤该URL地址;将该URL地址添加到第一缓存列表。
当根据预设匹配算法检测到该URL地址是需要过滤的URL地址时,客户端即确定该网页素材资源为广告资源,对该URL地址进行过滤,并将该URL地址添加到第一缓存列表。
在步骤508中,当根据预设匹配算法匹配出该URL地址为不需要过滤的URL地址时,根据该URL地址向网页资源服务器发送网页素材资源获取请求;将该URL地址添加到第二缓存列表。
当根据预设匹配算法检测到该URL地址是不需要过滤的URL地址时,客户端即确定该网页素材资源不是广告资源请求,向网页资源服务器发送网页素材资源获取请求,并将该URL地址添加到第二缓存列表。
综上所述,本示例性实施例提供的地址过滤方法,通过在地址缓存列表中查找是否存储获取到的URL地址,当未查找到该URL地址时,再根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址;解决当接收到两个相同的URL地址时,需要使用预设匹配算法进行两次相同的匹配操作,不仅影响过滤的效率,而且会浪费计算资源的问题;达到了只需要使用预设匹配算法对未存储在地址缓存列表中的URL地址进行匹配,从而提高了过滤的效率,节省计算资源的效果。
本实施例提供的地址过滤方法,还通过将地址缓存列表发送至服务器,由服务器根据该地址缓存列表和其它客户端发送的地址缓存列表生成更新信息,并将该更新信息发送至客户端,客户端根据更新信息对地址缓存列表进行更新,使得具有相同访问习惯的客户端的地址缓存列表得到补充完善,提高了过滤的效率。
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。
图6是根据一示例性实施例示出的地址过滤装置的结构方框图,该地址过滤装置可以通过软件、硬件或者两者的结合实现成为图1所示电子设备110的部分或者全部。该地址过滤装置可以包括:
第一获取模块601,被配置为获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
查找模块602,被配置为在地址缓存列表中查找是否存储有URL地址,地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
匹配模块603,被配置为当地址缓存列表中未存储有URL地址时,根据预设匹配算法匹配URL地址是否为需要过滤的URL地址。
综上所述,本示例性实施例提供的地址过滤装置,通过在地址缓存列表中查找是否存储获取到的URL地址,当未查找到该URL地址时,再根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址;解决当接收到两个相同的URL地址时,需要使用预设匹配算法进行两次相同的匹配操作,不仅影响过滤的效率,而且会浪费计算资源的问题;达到了只需要使用预设匹配算法对未存储在地址缓存列表中的URL地址进行匹配,从而提高了过滤的效率,节省计算资源的效果。
图7是根据另一示例性实施例示出的地址过滤装置的结构方框图,该地址过滤装置可以通过软件、硬件或者两者的结合实现成为图1所示电子设备110的部分或者全部。该地址过滤装置可以包括:
第一获取模块701,被配置为获取网页素材资源所对应的URL地址,网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
查找模块702,被配置为在地址缓存列表中查找是否存储有URL地址,地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
匹配模块703,被配置为当地址缓存列表中未存储有URL地址时,根据预设匹配算法匹配URL地址是否为需要过滤的URL地址。
可选的,第一获取模块701,包括:
请求发送子模块701A,被配置为向网页资源服务器发送网页访问请求,网页访问请求携带有网页的网址,网页资源服务器用于根据网址查找网页对应的网页代码;
代码接收子模块701B,接收网页资源服务器发送的网页代码,网页代码包括至少一个网页素材资源所对应的URL地址;
获取子模块701C,被配置为获取网页代码中包括的网页素材资源的URL地址。
可选的,地址缓存列表中的各个URL地址采用哈希表存储;
查找模块702,包括:
操作子模块702A,被配置为将URL地址进行哈希化操作,得到哈希化操作后的URL地址;
查找子模块702B,被配置为根据经过哈希化操作的URL地址在地址缓存列表中查找是否存储有URL地址。
可选的,该装置,还包括:
第二获取模块704,被配置为获取地址缓存列表中各个URL地址被查找出的次数;
排序模块705,被配置为根据次数对地址缓存列表中各个URL地址进行查找优先级排 序,查找优先级用于标识各个URL地址在查找时的查找先后顺序。
可选的,地址缓存列表包括第一缓存列表,第一缓存列表用于存储预设匹配算法匹配出的需要过滤的URL地址,
该装置,还包括:
第一过滤模块706,被配置为当根据预设匹配算法检测到URL地址是需要过滤的URL地址时,过滤该URL地址;
第一添加模块707,被配置为将URL地址添加到第一缓存列表中。
可选的,地址缓存列表包括第二缓存列表,第二缓存列表用于存储预设匹配算法匹配出的不需要过滤的URL地址,
该装置,还包括:
第一发送模块708,被配置为当根据预设匹配算法检测到URL地址是不需要过滤的URL地址时,根据该URL地址向网页资源服务器发送网页素材资源获取请求;
第二添加模块709,被配置为将URL地址添加到第二缓存列表中。
可选的,地址缓存列表包括第一缓存列表和第二缓存列表,第一缓存列表用于存储预设匹配算法匹配出的需要过滤的URL地址,第二缓存列表用于存储预设匹配算法匹配出的不需要过滤的URL地址,
查找模块702,包括:
第一检测子模块702C,被配置为检测第一缓存列表中是否存储URL地址;
第二检测子模块702D,被配置为当第一缓存列表中未存储URL地址时,检测第二缓存列表中是否存储URL地址;
第二检测子模块702D,还被配置为当第二缓存列表中未存储URL地址时,执行根据预设匹配算法匹配URL地址是否为需要过滤的URL地址的步骤;
该装置,还包括:
第二过滤模块710,被配置为当根据预设匹配算法匹配出URL地址为需要过滤的URL地址时,过滤该URL地址;将URL地址添加到第一缓存列表;
第二发送模块711,被配置为当根据预设匹配算法匹配出URL地址为不需要过滤的URL地址时,根据URL地址向网页资源服务器发送网页素材资源获取请求;将URL地址添加到第二缓存列表。
可选的,该装置,还包括:
列表发送模块712,被配置为向服务器发送地址缓存列表,服务器用于根据地址缓存列表分析客户端的访问习惯,并根据客户端的访问习惯和其它客户端发送的地址缓存列表生成更新信息;
接收模块713,被配置为接收更新信息,并根据更新信息更新地址缓存列表。
可选的,该装置,还包括:
第三过滤模块714,被配置为当地址缓存列表中存储有URL地址时,根据地址缓存列 表的记录直接过滤URL地址,或,根据该URL地址向网页资源服务器发送网页素材资源获取请求。
综上所述,本示例性实施例提供的地址过滤装置,通过在地址缓存列表中查找是否存储获取到的URL地址,当未查找到该URL地址时,再根据预设匹配算法匹配该URL地址是否为需要过滤的URL地址;解决当接收到两个相同的URL地址时,需要使用预设匹配算法进行两次相同的匹配操作,不仅影响过滤的效率,而且会浪费计算资源的问题;达到了只需要使用预设匹配算法对未存储在地址缓存列表中的URL地址进行匹配,从而提高了过滤的效率,节省计算资源的效果。
本实施例提供的地址过滤装置,还通过将预设匹配算法匹配出的需要过滤的URL地址存储在第一缓存列表中,并在该第一缓存列表中查找是否存储有网页素材资源对应的URL地址,当该第一缓存列表中存储有该URL地址时,直接对该URL地址进行过滤,当该第一缓存列表中未存储该URL地址时,再通过预设匹配算法进行匹配,减少了算法匹配URL地址的过程,从而节省了计算资源,提高了过滤效率。
本实施例提供的地址过滤装置,还通过对地址缓存列表中的各个URL地址采用哈希表存储,提高了客户端在地址缓存列表中的查找效率,从而提高了过滤效率。
本实施例提供的地址过滤装置,还通过将预设匹配算法匹配出的不需要过滤的URL地址存储在第二缓存列表中,并在该第二缓存列表中查找是否存储有网页素材资源对应的URL地址,当该第二缓存列表中存储有该URL地址时,向网页资源服务器发送网页素材资源获取请求,当该第二缓存列表中未存储该URL地址时,再通过预设匹配算法进行匹配,减少了算法匹配URL地址的过程,从而节省了计算资源,提高了过滤效率。
本实施例提供的地址过滤装置,还通过按照地址缓存列表中各个URL地址被查找出的次数,对各个URL地址进行查找优先级排序,提高了客户端在地址缓存列表中的查找效率,从而提高了过滤效率。
本实施例提供的地址过滤装置,还通过将地址缓存列表发送至服务器,由服务器根据该地址缓存列表和其它客户端发送的地址缓存列表生成更新信息,并将该更新信息发送至客户端,客户端根据更新信息对地址缓存列表进行更新,使得具有相同访问习惯的客户端的地址缓存列表得到补充完善,提高了过滤的效率。
图8是根据一示例性实施例示出的地址过滤装置800的框图。例如,装置800可以是如图1所示的电子设备110。
参照图8,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指 令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置800的处理器执行时,使得装置800能够执行应用于如图1所示的电子设备110中的地址过滤方法。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (19)

  1. 一种地址过滤方法,其特征在于,所述方法包括:
    获取网页素材资源所对应的统一资源定位符URL地址,所述网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
    在地址缓存列表中查找是否存储有所述URL地址,所述地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
    当所述地址缓存列表中未存储有所述URL地址时,根据所述预设匹配算法匹配所述URL地址是否为需要过滤的URL地址。
  2. 根据权利要求1所述的方法,其特征在于,所述获取网页素材资源所对应的统一资源定位符URL地址,包括:
    向网页资源服务器发送网页访问请求,所述网页访问请求携带有所述网页的网址,所述网页资源服务器用于根据所述网址查找所述网页对应的网页代码;
    接收所述网页资源服务器发送的所述网页代码,所述网页代码包括至少一个所述网页素材资源所对应的URL地址;
    获取所述网页代码中包括的所述网页素材资源的URL地址。
  3. 根据权利要求1所述的方法,其特征在于,所述地址缓存列表中的各个URL地址采用哈希表存储;
    所述在地址缓存列表中查找是否存储有所述URL地址,包括:
    将所述URL地址进行哈希化操作,得到哈希化操作后的URL地址;
    根据经过所述哈希化操作的URL地址在所述地址缓存列表中查找是否存储有所述URL地址。
  4. 根据权利要求1所述的方法,其特征在于,所述方法,还包括:
    获取所述地址缓存列表中各个URL地址被查找出的次数;
    根据所述次数对所述地址缓存列表中各个URL地址进行查找优先级排序,所述查找优先级用于标识各个URL地址在查找时的查找先后顺序。
  5. 根据权利要求1所述的方法,其特征在于,所述地址缓存列表包括第一缓存列表,所述第一缓存列表用于存储所述预设匹配算法匹配出的需要过滤的URL地址,
    所述方法,还包括:
    当根据所述预设匹配算法检测到所述URL地址是所述需要过滤的URL地址时,过滤所述URL地址;
    将所述URL地址添加到所述第一缓存列表中。
  6. 根据权利要求1所述的方法,其特征在于,所述地址缓存列表包括第二缓存列表,所述第二缓存列表用于存储所述预设匹配算法匹配出的不需要过滤的URL地址,
    所述方法,还包括:
    当根据所述预设匹配算法检测到所述URL地址是所述不需要过滤的URL地址时,根据所述URL地址向网页资源服务器发送网页素材资源获取请求;
    将所述URL地址添加到所述第二缓存列表中。
  7. 根据权利要求1所述的方法,其特征在于,所述地址缓存列表包括第一缓存列表和第二缓存列表,所述第一缓存列表用于存储所述预设匹配算法匹配出的需要过滤的URL地址,所述第二缓存列表用于存储所述预设匹配算法匹配出的不需要过滤的URL地址,
    所述在地址缓存列表中查找是否存储所述URL地址,包括:
    检测所述第一缓存列表中是否存储有所述URL地址;
    当所述第一缓存列表中未存储所述URL地址时,检测所述第二缓存列表中是否存储所述URL地址;
    当所述第二缓存列表中未存储所述URL地址时,执行所述根据所述预设匹配算法匹配所述URL地址是否为需要过滤的URL地址的步骤;
    所述方法,还包括:
    当根据所述预设匹配算法匹配出所述URL地址为所述需要过滤的URL地址时,过滤所述URL地址;将所述URL地址添加到所述第一缓存列表;
    当根据所述预设匹配算法匹配出所述URL地址为所述不需要过滤的URL地址时,根据所述URL地址向网页资源服务器发送网页素材资源获取请求;将所述URL地址添加到所述第二缓存列表。
  8. 根据权利要求5至7任一所述的方法,其特征在于,所述方法,还包括:
    向服务器发送所述地址缓存列表,所述服务器用于根据所述地址缓存列表分析客户端的访问习惯,并根据所述客户端的访问习惯和其它客户端发送的所述地址缓存列表生成更新信息;
    接收所述更新信息,并根据所述更新信息更新所述地址缓存列表。
  9. 根据权利要求1至7任一所述的方法,其特征在于,所述方法,还包括:
    当所述地址缓存列表中存储有所述URL地址时,根据所述地址缓存列表的记录直接过滤所述URL地址,或,根据所述URL地址向所述网页资源服务器发送所述网页素材资源获取请求。
  10. 一种地址过滤装置,其特征在于,所述装置包括:
    第一获取模块,被配置为获取网页素材资源所对应的统一资源定位符URL地址,所述网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
    查找模块,被配置为在地址缓存列表中查找是否存储有所述URL地址,所述地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
    匹配模块,被配置为当所述地址缓存列表中未存储有所述URL地址时,根据所述预设匹配算法匹配所述URL地址是否为需要过滤的URL地址。
  11. 根据权利要求10所述的装置,其特征在于,所述第一获取模块,包括:
    请求发送子模块,被配置为向网页资源服务器发送网页访问请求,所述网页访问请求携带有所述网页的网址,所述网页资源服务器用于根据所述网址查找所述网页对应的网页代码;
    代码接收子模块,接收所述网页资源服务器发送的所述网页代码,所述网页代码包括至少一个所述网页素材资源所对应的URL地址;
    获取子模块,被配置为获取所述网页代码中包括的所述网页素材资源的URL地址。
  12. 根据权利要求10所述的装置,其特征在于,所述地址缓存列表中的各个URL地址采用哈希表存储;
    所述查找模块,包括:
    操作子模块,被配置为将所述URL地址进行哈希化操作,得到哈希化操作后的URL地址;
    查找子模块,被配置为根据经过所述哈希化操作的URL地址在所述地址缓存列表中查找是否存储有所述URL地址。
  13. 根据权利要求10所述的装置,其特征在于,所述装置,还包括:
    第二获取模块,被配置为获取所述地址缓存列表中各个URL地址被查找出的次数;
    排序模块,被配置为根据所述次数对所述地址缓存列表中各个URL地址进行查找优先级排序,所述查找优先级用于标识各个URL地址在查找时的查找先后顺序。
  14. 根据权利要求10所述的装置,其特征在于,所述地址缓存列表包括第一缓存列表,所述第一缓存列表用于存储所述预设匹配算法匹配出的需要过滤的URL地址,
    所述装置,还包括:
    第一过滤模块,被配置为当根据所述预设匹配算法检测到所述URL地址是所述需要过滤的URL地址时,过滤所述URL地址;
    第一添加模块,被配置为将所述URL地址添加到所述第一缓存列表中。
  15. 根据权利要求10所述的装置,其特征在于,所述地址缓存列表包括第二缓存列表,所述第二缓存列表用于存储所述预设匹配算法匹配出的不需要过滤的URL地址,
    所述装置,还包括:
    第一发送模块,被配置为当根据所述预设匹配算法检测到所述URL地址是所述不需要过滤的URL地址时,根据所述URL地址向网页资源服务器发送网页素材资源获取请求;
    第二添加模块,被配置为将所述URL地址添加到所述第二缓存列表中。
  16. 根据权利要求10所述的装置,其特征在于,所述地址缓存列表包括第一缓存列表和第二缓存列表,所述第一缓存列表用于存储所述预设匹配算法匹配出的需要过滤的URL地址,所述第二缓存列表用于存储所述预设匹配算法匹配出的不需要过滤的URL地址,
    所述查找模块,包括:
    第一检测子模块,被配置为检测所述第一缓存列表中是否存储所述URL地址;
    第二检测子模块,被配置为当所述第一缓存列表中未存储所述URL地址时,检测所述第二缓存列表中是否存储所述URL地址;
    所述第二检测子模块,还被配置为当所述第二缓存列表中未存储所述URL地址时,执行所述根据所述预设匹配算法匹配所述URL地址是否为需要过滤的URL地址的步骤;
    所述装置,还包括:
    第二过滤模块,被配置为当根据所述预设匹配算法匹配出所述URL地址为所述需要过滤的URL地址时,过滤所述URL地址;将所述URL地址添加到所述第一缓存列表;
    第二发送模块,被配置为当根据所述预设匹配算法匹配出所述URL地址为所述不需要过滤的URL地址时,根据所述URL地址向网页资源服务器发送网页素材资源获取请求;将所述URL地址添加到所述第二缓存列表。
  17. 根据权利要求14至16任一所述的装置,其特征在于,所述装置,还包括:
    列表发送模块,被配置为向服务器发送所述地址缓存列表,所述服务器用于根据所述地址缓存列表分析客户端的访问习惯,并根据所述客户端的访问习惯和其它客户端发送的所述地址缓存列表生成更新信息;
    接收模块,被配置为接收所述更新信息,并根据所述更新信息更新所述地址缓存列表。
  18. 根据权利要求10至16任一所述的装置,其特征在于,所述装置,还包括:
    第三过滤模块,被配置为当所述地址缓存列表中存储有所述URL地址时,根据所述地址缓存列表的记录直接过滤所述URL地址,或,根据所述URL地址向所述网页资源服 务器发送所述网页素材资源获取请求。
  19. 一种地址过滤装置,其特征在于,包括:
    处理器;
    用于存储所述处理器的可执行指令的存储器;
    其中,所述处理器被配置为:
    获取网页素材资源所对应的统一资源定位符URL地址,所述网页素材资源包括图片资源、音频资源、视频资源和文字资源中的至少一种;
    在地址缓存列表中查找是否存储有所述URL地址,所述地址缓存列表用于存储已经经过预设匹配算法匹配的URL地址;
    当所述地址缓存列表中未存储有所述URL地址时,根据所述预设匹配算法匹配所述URL地址是否为需要过滤的URL地址。
PCT/CN2015/088632 2015-02-13 2015-08-31 地址过滤方法及装置 WO2016127625A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2016574327A JP6302098B2 (ja) 2015-02-13 2015-08-31 アドレスフィルタリング方法、装置、プログラム及び記録媒体
MX2015015404A MX357349B (es) 2015-02-13 2015-08-31 Método y dispositivo de filtrado de direcciones.
RU2015147593A RU2630746C2 (ru) 2015-02-13 2015-08-31 Способ и устройство фильтрации адреса
BR112015028941A BR112015028941A2 (pt) 2015-02-13 2015-08-31 método e dispositivo de filtragem de endereço
KR1020157031176A KR101777035B1 (ko) 2015-02-13 2015-08-31 주소 필터링 방법, 장치, 프로그램 및 기록매체

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510079200.5 2015-02-13
CN201510079200.5A CN104683496B (zh) 2015-02-13 2015-02-13 地址过滤方法及装置

Publications (1)

Publication Number Publication Date
WO2016127625A1 true WO2016127625A1 (zh) 2016-08-18

Family

ID=53318060

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088632 WO2016127625A1 (zh) 2015-02-13 2015-08-31 地址过滤方法及装置

Country Status (9)

Country Link
US (1) US20160241674A1 (zh)
EP (1) EP3057006A1 (zh)
JP (1) JP6302098B2 (zh)
KR (1) KR101777035B1 (zh)
CN (1) CN104683496B (zh)
BR (1) BR112015028941A2 (zh)
MX (1) MX357349B (zh)
RU (1) RU2630746C2 (zh)
WO (1) WO2016127625A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683496B (zh) * 2015-02-13 2018-06-19 小米通讯技术有限公司 地址过滤方法及装置
CN107888981B (zh) * 2017-11-16 2020-12-18 北京小米移动软件有限公司 音视频预加载方法、装置、设备及存储介质
CN110825987B (zh) * 2019-11-07 2023-06-23 北京博睿宏远数据科技股份有限公司 一种流媒体资源地址获取方法、装置、设备和存储介质
CN112861030B (zh) * 2019-11-27 2024-04-05 北京金山云网络技术有限公司 Cdn的刷新方法和装置、缓存服务器以及存储介质
CN112286592A (zh) * 2020-10-29 2021-01-29 平安普惠企业管理有限公司 资源数据的加载方法及装置、存储介质、计算机设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1475930A (zh) * 2002-08-15 2004-02-18 联想(北京)有限公司 基于状态检测的链路层资源定位信息过滤的方法
WO2009091483A1 (en) * 2008-01-15 2009-07-23 Google Inc. Bloom filter for storing file access history
US20120016897A1 (en) * 2010-07-16 2012-01-19 Altruik, Inc. System and method for improving webpage indexing and optimization
CN103428196A (zh) * 2012-12-27 2013-12-04 北京安天电子设备有限公司 一种基于url白名单的web应用入侵检测方法和装置
CN103544316A (zh) * 2013-11-06 2014-01-29 苏州大拿信息技术有限公司 Url过滤的系统及其实现方法
CN103838728A (zh) * 2012-11-21 2014-06-04 腾讯科技(深圳)有限公司 网页信息的处理方法及浏览器
CN104683496A (zh) * 2015-02-13 2015-06-03 小米科技有限责任公司 地址过滤方法及装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5822759A (en) * 1996-11-22 1998-10-13 Versant Object Technology Cache system
US7194464B2 (en) * 2001-12-07 2007-03-20 Websense, Inc. System and method for adapting an internet filter
US20080086555A1 (en) * 2006-10-09 2008-04-10 David Alexander Feinleib System and Method for Search and Web Spam Filtering
GB2445764A (en) * 2007-01-22 2008-07-23 Surfcontrol Plc Resource access filtering system and database structure for use therewith
JP4939562B2 (ja) * 2009-03-19 2012-05-30 ヤフー株式会社 Webサーバ、広告再表示方法
JP5003742B2 (ja) * 2009-10-15 2012-08-15 Necアクセステクニカ株式会社 コンテンツフィルタリングシステム、コンテンツフィルタリング方法及びゲートウェイ
JP5723306B2 (ja) * 2012-02-22 2015-05-27 日本電信電話株式会社 フィルタリング装置、および、フィルタリング方法
CN104021126B (zh) * 2013-02-28 2020-02-07 深圳市世纪光速信息技术有限公司 网页内容的过滤方法及服务器
CN104144170A (zh) * 2014-08-25 2014-11-12 网神信息技术(北京)股份有限公司 网页地址的过滤方法、装置和系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1475930A (zh) * 2002-08-15 2004-02-18 联想(北京)有限公司 基于状态检测的链路层资源定位信息过滤的方法
WO2009091483A1 (en) * 2008-01-15 2009-07-23 Google Inc. Bloom filter for storing file access history
US20120016897A1 (en) * 2010-07-16 2012-01-19 Altruik, Inc. System and method for improving webpage indexing and optimization
CN103838728A (zh) * 2012-11-21 2014-06-04 腾讯科技(深圳)有限公司 网页信息的处理方法及浏览器
CN103428196A (zh) * 2012-12-27 2013-12-04 北京安天电子设备有限公司 一种基于url白名单的web应用入侵检测方法和装置
CN103544316A (zh) * 2013-11-06 2014-01-29 苏州大拿信息技术有限公司 Url过滤的系统及其实现方法
CN104683496A (zh) * 2015-02-13 2015-06-03 小米科技有限责任公司 地址过滤方法及装置

Also Published As

Publication number Publication date
RU2015147593A (ru) 2017-05-11
KR20160110064A (ko) 2016-09-21
RU2630746C2 (ru) 2017-09-12
CN104683496A (zh) 2015-06-03
EP3057006A1 (en) 2016-08-17
JP2017511556A (ja) 2017-04-20
JP6302098B2 (ja) 2018-03-28
MX2015015404A (es) 2017-03-15
MX357349B (es) 2018-07-05
KR101777035B1 (ko) 2017-09-19
BR112015028941A2 (pt) 2017-07-25
CN104683496B (zh) 2018-06-19
US20160241674A1 (en) 2016-08-18

Similar Documents

Publication Publication Date Title
WO2018032271A1 (zh) 信息搜索方法、装置、电子设备及服务器
CN104133852B (zh) 网页访问方法、装置、服务器及终端
WO2017157040A1 (zh) 搜索方法、装置以及用于搜索的装置
RU2604420C2 (ru) Способ, устройство и терминал для обновления облегченных приложений в офлайновом режиме
WO2016127625A1 (zh) 地址过滤方法及装置
WO2017181663A1 (zh) 一种为搜索信息匹配图片的方法及装置
CN106896991B (zh) 一种更新信息的方法及装置
CN117390330A (zh) 网页访问方法及装置
WO2017185567A1 (zh) 资源搜索方法及装置
US20160006787A1 (en) Methods and devices for visiting a webpage
CN104111979A (zh) 搜索推荐方法和装置
CN107798011A (zh) 一种搜索方法和装置、一种用于搜索的装置
CN104050236B (zh) 网站内容更新提示方法、服务器和客户端
JP6239188B2 (ja) 情報フィルタリング方法、装置、プログラム及び記録媒体
CN107491453B (zh) 一种识别作弊网页的方法及装置
CN110020082B (zh) 一种搜索方法及装置
CN107239462B (zh) 一种搜索方法和装置以及浏览器
CN105630948A (zh) 网络页面显示方法和装置
CN106302002B (zh) 测试方法及装置
CN104991901A (zh) 网页访问方法和装置
CN114077712B (zh) 一种搜索结果排序方法及装置
CN111832060B (zh) 一种信息保护方法、装置和电子设备
CN110020244B (zh) 一种对网址信息进行纠错的方法及装置
CN106528700B (zh) 信息处理的方法、装置及设备
CN108804482A (zh) 一种网页收藏方法及装置

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2016574327

Country of ref document: JP

Kind code of ref document: A

Ref document number: 20157031176

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015147593

Country of ref document: RU

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2015/015404

Country of ref document: MX

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

Ref document number: 15881780

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: 112015028941

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112015028941

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20151118

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15881780

Country of ref document: EP

Kind code of ref document: A1