Re: [squid-users] squid regex again :)

From: mdew <mdew@dont-contact.us>
Date: Tue, 16 Sep 2003 21:40:44 +1200

On Tue, 2003-09-16 at 18:26, Henrik Nordstrom wrote:
> On Tue, 16 Sep 2003, mdew wrote:
>
> > I'm trying to block ads..
> > http://somesite.com/something/ads/flash-advert.swf
> >
> > what would be the correct regex to block *somesite.com/something/ads/*
>
> The following url_regex would block https:// or http:// (*.)somesite.com/something/ads/*
>
> ^https?://\([^/]*\.\)somesite\.com/something/ads/flash-advert\.swf$
>
> or you could assume /something/ads/ on any server categorised as partially
> having ads then you could use the following more efficient construct
>
> acl partially_ads_server dstdomain ...
> acl ads_path urlpath_regex ^/something/ads/
> http_access deny partially_ads_server ads_path
>
> Regards
> Henrik
>
>

so you're telling me..

^https?://\([^/]*\.\)linuxtoday\.com/RealMedia/ads/Creatives/Webtrends_5z/ON_ICron_125x800_nlr.swf$
will block all from
linuxtoday\.com/RealMedia/ads?

I was thinking of soemthing like?,
^https?://\([^/]*\.\)linuxtoday\.com/RealMedia/ads$

I dunno :) explain how your way blocks it, and everything under it :)
Received on Tue Sep 16 2003 - 03:41:08 MDT

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