# US 2016/0241674 A1 · Method and device of filtering address

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0241674 A1
- Document ID: US20160241674A1
- Status: Published application
- Kind: A1
- Application number: 14/960,446
- Filed: 2015-12-07
- Published: 2016-08-18
- Earliest claimed: 2015-02-13
- Assignees: Xiaomi Inc.
- Applicants: Xiaomi Inc.
- Inventors: Jinsong Fan; Yifei Yu; Jinglong Zuo
- Web page: https://patentgrep.com/patent/US20160241674A1

## CPC

- H04L 67/63: Routing a service request depending on the request content or context
- G06F 16/9535: Search customisation based on user profiles and personalisation
- H04L 61/58: Caching of addresses or names
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to a method and device of filtering an address. The method includes: acquiring a Uniform Resource Locator (URL) address corresponding to a material resource of a webpage, wherein the material resource of the webpage includes at least one of a picture resource, an audio resource, a video resource and a literal resource; searching whether the URL address is stored in an address caching list, wherein the address caching list is used to store URL addresses having been matched by a predefined matching algorithm; and if the URL address is not stored in the address caching list, performing a matching operation on the URL address according to the predefined matching algorithm to determine whether the URL address is a URL address needing filtering.

## Claims

### Claim 1

A method of filtering an address, comprising:
acquiring a Uniform Resource Locator (URL) address corresponding to a material resource of a webpage, wherein the material resource of the webpage includes at least one of a picture resource, an audio resource, a video resource and a literal resource;
searching whether the URL address is stored in an address caching list, wherein the address caching list is used to store URL addresses having been matched by a predefined matching algorithm; and
if the URL address is not stored in the address caching list, performing a matching operation on the URL address according to the predefined matching algorithm to determine whether the URL address is a URL address needing filtering.

### Claim 2 (depends on 1)

The method according to claim 1, wherein acquiring the URL address corresponding to the material resource of the webpage comprises:
sending a webpage accessing request to a webpage resource server, wherein the webpage accessing request carries a web address of the webpage, and the webpage resource server searches webpage code corresponding to the webpage according to the web address;
receiving the webpage code from the webpage resource server, wherein the webpage code includes a URL address corresponding to at least one webpage material resource; and
acquiring the URL address of the webpage material resource contained in the webpage code.

### Claim 3 (depends on 1)

The method according to claim 1, wherein respective URL addresses in the address caching list are stored by using a Hash table; and
searching whether the URL address is stored in the address caching list comprises:
performing a Hash operation on the URL address, and obtaining a URL address having undergone the Hash operation; and
searching in the address caching list for determining whether the URL address having undergone the Hash operation is stored in the address caching list according to the URL address.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
acquiring the numbers of times respective URL addresses in the address cashing list are searched out; and
ranking searching priorities of respective URL addresses in the address cashing list according to the numbers of times, wherein the searching priority identifies a search sequencing of individual URL address during searching.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the address caching list comprises a first caching list for storing URL addresses which are determined to need filtering by the matching operation according to the predefined matching algorithm, and
the method further comprises:
if the URL address is detected to need filtering by the matching operation according to the predefined matching algorithm, filtering this URL address; and
adding this URL address into the first caching list.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the address caching list comprises a second caching list for storing URL addresses which are determined to need no filtering by the matching operation according to the predefined matching algorithm, and
the method further comprises:
if the URL address is detected to need no filtering by the matching operation according to the predefined matching algorithm, sending a request of acquiring a webpage material resource to a webpage resource server according to the URL address; and
adding this URL address into the second caching list.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the address caching list comprises a first caching list for storing URL addresses which are determined to need filtering by the matching operation according to the predefined matching algorithm, and a second caching list for storing URL addresses which are determined to need no filtering by the matching operation according to the predefined matching algorithm, and
searching whether the URL address is stored in the address caching list comprises:
detecting whether the URL address is stored in the first caching list;
if the URL address is not stored in the first caching list, detecting whether the URL address is stored in the second caching list; and
if the URL address is not stored in the second caching list, performing the matching operation on the URL address according to the predefined matching algorithm to determine whether the URL address is the URL address needing filtering; and
the method further comprises:
if the URL address is determined to be the URL address needing filtering by the matching operation according to the predefined matching algorithm, filtering the URL address, and adding the URL address into the first caching list; and
if the URL address is determined to be the URL address needing no filtering by the matching operation according to the predefined matching algorithm, sending a request of acquiring a webpage material resource to the webpage resource server according to the URL address, and adding the URL address into the second caching list.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
sending the address caching list to a server, wherein the server analyzes an accessing habit of a client terminal according to the address caching list, and generates update information according to the accessing habit of the client terminal and the address caching lists sent by other client terminals; and
receiving the update information, and updating the address caching list according to the update information.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
if the address caching list stores the URL address therein, directly filtering the URL address according to records in the address caching list; or sending a request of acquiring a webpage material resource to a webpage resource server according to the URL address.

### Claim 10

A device of filtering an address, comprising:
a processor; and
a memory for storing instructions executable by the processor;
wherein the processor is configured to:
acquire a Uniform Resource Locator (URL) address corresponding to a material resource of a webpage, wherein the material resource of the webpage includes at least one of a picture resource, an audio resource, a video resource and a literal resource;
search whether the URL address is stored in an address caching list, wherein the address caching list is used to store URL addresses having been matched by a predefined matching algorithm; and
if the URL address is not stored in the address caching list, perform a matching operation on the URL address according to the predefined matching algorithm to determine whether the URL address is a URL address needing filtering.

### Claim 11 (depends on 10)

The device according to claim 10, wherein the processor is further configured to:
send a webpage accessing request to a webpage resource server, wherein the webpage accessing request carries a web address of the webpage, and the webpage resource server searches webpage code corresponding to the webpage according to the web address;
receive the webpage code from the webpage resource server, wherein the webpage code includes a URL address corresponding to at least one webpage material resource; and
acquire the URL address of the webpage material resource contained in the webpage code.

### Claim 12 (depends on 10)

The device according to claim 10, wherein respective URL addresses in the address caching list are stored by using a Hash table;
the processor is further configured to:
perform a Hash operation on the URL address, and obtain a URL address having undergone the Hash operation; and
search in the address caching list for determining whether the URL address having undergone the Hash operation is stored in the address caching list according to the URL address.

### Claim 13 (depends on 10)

The device according to claim 10, wherein the processor is further configured to:
acquire the numbers of times respective URL addresses in the address cashing list are searched out; and
rank searching priorities of respective URL addresses in the address cashing list according to the numbers of times, the searching priority being for identifying a search sequencing of individual URL address during searching.

### Claim 14 (depends on 10)

The device according to claim 10, wherein the address caching list comprises a first caching list for storing URL addresses which are determined to need filtering by the matching operation according to the predefined matching algorithm,
the processor is further configured to:
if the URL address is detected to need filtering by the matching operation according to the predefined matching algorithm, filter this URL address; and
add this URL address into the first caching list.

### Claim 15 (depends on 10)

The device according to claim 10, wherein the address caching list comprises a second caching list for storing URL addresses which are determined to need no filtering by the matching operation according to the predefined matching algorithm,
the processor is further configured to:
if the URL address is detected to need no filtering by the matching operation according to the predefined matching algorithm, send a request of acquiring a webpage material resource to a webpage resource server according to the URL address; and
add this URL address into the second caching list.

### Claim 16 (depends on 10)

The device according to claim 10, wherein the address caching list comprises a first caching list for storing URL addresses which are determined to need filtering by the matching operation according to the predefined matching algorithm, and a second caching list for storing URL addresses which are determined to need no filtering by the matching operation according to the predefined matching algorithm,
the processor is further configured to:
detect whether the first caching list stores the URL address; and
if the first caching list does not store the URL address, detect whether the second caching list stores the URL address;
the processor is also configured to, if the second caching list does not store the URL address, perform the matching operation on the URL address according to the predefined matching algorithm to determine whether the URL address needs filtering,
the processor is further configured to:
if the matching operation is performed on the URL address according to the predefined matching algorithm to determine that the URL address is the URL address needing filtering, filter the URL address, and add the URL address into the first caching list; and
if the matching operation is performed on the URL address according to the predefined matching algorithm to determine that the URL address is the URL address needing no filtering, send a request of acquiring a webpage material resource to a webpage resource server according to the URL address, and add the URL address into the second caching list.

### Claim 17 (depends on 10)

The device according to claim 10, wherein the processor is further configured to:
send an address caching list to a server, wherein the server analyzes an accessing habit of a client terminal according to the address caching list, and generates update information according to the accessing habit of the client terminal and the address caching lists sent by other client terminals; and
receive the update information and update the address caching list according to the update information.

### Claim 18 (depends on 10)

The device according to claim 10, wherein the processor is further configured to:
if the address caching list stores the URL address therein, directly filter the URL address according to records in the address caching list; or send a request of acquiring a webpage material resource to a webpage resource server according to the URL address.

### Claim 19

A non-transitory readable storage medium comprising instructions, executable by a processor in a device, for performing a method of filtering an address, the method comprising:
acquiring a Uniform Resource Locator (URL) address corresponding to a material resource of a webpage, wherein the material resource of the webpage includes at least one of a picture resource, an audio resource, a video resource and a literal resource;
searching whether the URL address is stored in an address caching list, wherein the address caching list is used to store URL addresses having been matched by a predefined matching algorithm; and
if the URL address is not stored in the address caching list, performing a matching operation on the URL address according to the predefined matching algorithm to determine whether the URL address is a URL address needing filtering.
