Method and apparatus for filtering URL
First Claim
1. A method for filtering a uniform resource locator (URL), comprising:
- receiving a first URL connection request initiated by a client;
finding, among correspondence between web page categories and URLs in a pre-stored category information table, a first category corresponding to a URL carried in the first URL connection request;
determining that the first category does not conform to a predetermined URL passing through policy, wherein the URL passing through policy comprises unblocked web page categories;
based upon the determining, sending the first URL connection request to a first server corresponding to the URL carried in the first URL connection request when the first URL connection request carries a predetermined label;
receiving web page content returned by the first server;
determining a second category corresponding to the URL according to the web page content; and
sending the web page content to the client when the determined second category conforms to the predetermined URL passing through policy.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for filtering a uniform resource locator (URL). According to the method, a first category corresponding to a URL connection request can be found in a pre-stored category information table; when the first category conforms to a predetermined URL passing through policy, the URL connection request is allowed to pass through; the URL connection request is forwarded to a corresponding server; a second category corresponding to a URL is determined according to web page content returned by the server; if the second category conforms to the predetermined URL passing through policy, the web page content is sent to a client; if the second category does not conform to the predetermined URL passing through policy, the web page content is blocked. A category to which a URL belongs can be determined in real time, and implementing a function of accurate category filtration.
-
Citations
13 Claims
-
1. A method for filtering a uniform resource locator (URL), comprising:
-
receiving a first URL connection request initiated by a client; finding, among correspondence between web page categories and URLs in a pre-stored category information table, a first category corresponding to a URL carried in the first URL connection request; determining that the first category does not conform to a predetermined URL passing through policy, wherein the URL passing through policy comprises unblocked web page categories; based upon the determining, sending the first URL connection request to a first server corresponding to the URL carried in the first URL connection request when the first URL connection request carries a predetermined label; receiving web page content returned by the first server; determining a second category corresponding to the URL according to the web page content; and sending the web page content to the client when the determined second category conforms to the predetermined URL passing through policy. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for filtering a uniform resource locator (URL), comprising:
-
a memory; a processor coupled to the memory and configured to; receive a first URL connection request initiated by a client; find, among correspondence between web page categories and URLs in a pre-stored category information table, a first category corresponding to a URL carried in the first URL connection request; determine that the first category does not conform to a predetermined URL passing through policy, wherein the URL passing through policy comprises unblocked web page categories; based upon the determining, send the first URL connection request to a first server corresponding to the URL carried in the first URL connection request when the first URL connection request carries a predetermined label; receive web page content returned by the first server; determine a second category corresponding to the URL according to the web page content; and send the web page content to the client when the determined second category conforms to the predetermined URL passing through policy. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. An apparatus for filtering a uniform resource locator (URL), comprising:
-
a processor and a memory coupled to the processor; wherein the processor is configured to; receive a URL connection request initiated by a client; find, among correspondence between web page categories and URLs in a pre-stored category information table, a first category corresponding to a URL carried in the URL connection request; determine whether the first category conforms to a predetermined URL passing through policy, wherein the URL passing through policy comprises unblocked web page categories; block the web page content when the first category does not conform to the predetermined URL passing through policy; filter blocked URL connection requests to obtain URL connection requests carrying a predetermined label; send each of the URL connection request obtained by filtering to a server corresponding to the URL connection request; and receive web page content returned by the server, determine a second category corresponding to the URL according to the returned web page content; and determine whether the second category conforms to the predetermined URL passing through policy, send the web page content to the client when the second category conforms to the predetermined URL passing through policy, and block the web page content when the second category does not conform to the predetermined URL passing through policy.
-
Specification