> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 04, 2005 11:30 AM
> To: [email protected]
> Subject: [squid-users] How can I ignore 'form inputs' on a urlpath_regex
> ?
> 
> 
> 
> Hi,
> 
> 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.
> 
> Thanks,
> 
> Solli M. Honorio

dstdom_regex might be something to look at.

For the record, something like:

^[^?]*sex[^?]*

should fit the bill(1), but would be an absolute CPU hog.  Not to mention
that you would have to do something to match other "bad" words (e.g. one
regex for each word, or a single really long regex utilizing the "or"
operator).

Chris

(1) If my logic is correct, this statement should translate to "From the
beginning of the line, match anything but a question mark zero or more
times, the letters s, e and x all together and anything but a question mark
zero or more times".  Not pretty, but it would do what you are asking.

Reply via email to