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

Reply via email to