On Wed, 4 May 2005 shonorio@xxxxxxxxxxxxxxxxx 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