Re: [squid-users] Help with ACL's

From: Rob H <rob.hadfield@dont-contact.us>
Date: Mon, 6 Sep 2004 14:50:30 +1000

On Mon, 6 Sep 2004 13:10:29 +0930, Greg Darby <greg.darby@ramelec.com.au> wrote:
> Hi,
>
> I have a complex ACL running on Squid for which i would like some help
> to find out how i can allow websites and their sub domains to be
> allowed..
>
> acl special_client src 192.168.10.5
> acl special_url url_regex ^http://www.abc.com
> http_access allow special_client special_url
> http_access deny special_url
>
> The above works fine and allows access to the website above for the
> client shown above but i want to be able to also allow all sub domain
> for the website abc.com. How can i do this without typing in every
> website on the same domain? eg http://ad.abc.com, http://abdcg.abc.com
>

I think:

acl special_url url_regex \.abc\.com

Would do it.

---
Regards,
Rob Hadfield.
Received on Sun Sep 05 2004 - 22:50:31 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:02 MDT