Re: [squid-users] How can I ignore 'form inputs' on a urlpath_regex ?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 16 May 2005 23:21:38 +0200 (CEST)

On Wed, 4 May 2005 shonorio@alpargatas.com.br wrote:

> I'd know if is possible to create an 'acl urlpath_regex ' that will ignore
> parameters sent by GET method on an url. I'm thinking on something like
> where squid will ignore 'www.cia.com/enroll.asp?sex=male', but will deny
> www.sex.com.

acl sex urlpath_regex -i ^[^?]*[[:<:]]sex[[:>:]]

the above matches the word sex anywhere in the url_path but not after a ?

But note that urlpath_regex will never block http://www.sex.com/ as
urlpath_regex only looks into the file path, not the domain.. If you want
to block domain name patterns then you should use dstdom_regex.

Regards
Henrik
Received on Mon May 16 2005 - 15:21:46 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Jun 01 2005 - 12:00:03 MDT