The invention provides a URL (Uniform Resource Locator) filtering method and a URL filtering system aiming at an HTTP (Hyper Text Transport Protocol) segment request, wherein the method comprises the following steps of: S1, obtaining an HTTP request message; S2, resolving the HTTP request message, and obtaining the HTTP request method, a URI (Uniform Resource Identifier), a domain name and a filename extension information; and S3, according to the obtained HTTP request method, URI, domain name and filename extension information, comparing the request method, the URI, the domain name and the filename extension with a set URL filtering condition one by one, and if one of the request method, the URI, the domain name and the filename extension is matched with the set URL filtering condition, resetting a TCP (Transmission Control Protocol) connection. The URL filtering method and the URL filtering system provided by the invention realize filtering on the segmented HTTP request, make up the vulnerability in the prior art, additionally, the method and the system filter the HTTP request in a manner of gathering multiple information such as the request method, the URI, the domain name and the filename extension, so that the URL filtering conditions are enriched.