Re: [squid-users] blocking urls

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 8 Feb 2005 20:46:17 +0100 (CET)

On Tue, 8 Feb 2005, cipher wrote:

> ^http://www.awprofessional.com/articles/article.asp?p=363731$
>
> with url_regex.

You should also translate the URL into regex

  ^http://www\.awprofessional\.com/articles/articles\.asp\?p=363731$

but keep in mind that this is an exact match for the URL. Any variance
from this exact URL will not be matched (i.e. if you add &junk=1 to the
end of the URL you are likely to bypass this)

> Anyway i would like to know if this is the proper way
> to stop it or if there is a better to doit with
> dstdom_regex.

dstdom_regex looks at the hostname only, similar to it's more structured
sister "dstdomain".

General structure of an URL:

  protocol://domain/urlpath

The Squid ACLs is named accordingly.

url_regex looks at the whole URL (all parts) as a single string.

Regards
Henrik
Received on Tue Feb 08 2005 - 12:46:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:01 MST