Re: [squid-users] squid and regex help

From: Christoph Haas <email@dont-contact.us>
Date: Fri, 5 Sep 2003 23:21:14 +0200

On Sat, Sep 06, 2003 at 02:22:00AM +1200, mdew wrote:
> Using regex "/etc/squid.adservers" I'm attempting to block any URL's
> with "penis" AND "large" in the url. Basically *penis*large* and
> *large*penis* ..I was looking at doing like so..
>
> (/large/ && /penis/)
> (/penis/ && /large/)

See "man 7 regex". I would suggest something like:
(large.*penis|penis.*large)

However I doubt that this is really a wise mean of blocking unwanted
URLs. It's just nice for experimenting with ACLs and regular expressions
maybe. If you can spend money, then get a commercial URL blocker.
Otherwise try something like squidblock. Hacking your own regexps will
get you mad. Believe me - I've tried that. Muahahaha... ;)

 Christoph

-- 
~
~
".signature" [Modified] 3 lines --100%--                3,41         All
Received on Fri Sep 05 2003 - 15:21:22 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:19:33 MST