Re: [squid-users] acl dstdomains does not block!

From: Leslie Jensen <leslie_at_eskk.nu>
Date: Wed, 08 Apr 2009 21:02:45 +0200

Amos Jeffries skrev:
>
> Um, the config you showed simplifies down to:
>
> allow localhost access anywhere.
> deny anything else. Period.
>
> I think you want:
>
> #
> # If we want to block certain sites.
> #
> # acl blockedsites dstdomain .aftonbladet.se.
> acl blockedsites dstdomain .squid-cache.org
> # acl blockedsites dstdomain "/usr/local/etc/squid/dstdomain"
> #
> # Show message when blocked
> # deny_info ERR_ACCESS_DENIED blocked_sites
> #
> http_access deny blockedsites
>
> # allow local network to other sites.
>
> http_access allow localhost
> http_access allow localnet
>
> #
> # And deny all other access to this proxy
> #
> http_access deny all
>
>
> Amos

Thank you guys.

I'm now up and running thanks to your advise :-)

/Leslie
Received on Wed Apr 08 2009 - 19:02:52 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 09 2009 - 12:00:02 MDT