Re: [squid-users] How to: Block certain domains

From: Squidrunner <runnersupport@dont-contact.us>
Date: Mon, 19 Sep 2005 13:48:33 +0530

Use any of the following configuration

acl adclick1 dstdomain .doubleclick.net
acl adclick2 dstdomain .valueclick.net
acl adclick3 dstdomain .falkag.net
http_access deny adclick1
http_access deny adclick2
http_access deny adclick3

Or

acl adclick1 dstdomain .doubleclick.net .valueclick.net .valueclick.net
http_access deny adclick1

After configuring this, you can give reload the configuration file without
restarting

/PATH/TO/squid -k reconfigure

Thanks
Squidrunners

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
> ~ Disclaimer: Yes, I RTFM. Yes, I scanned the archives; because there is
> no search, I probably missed a similar question. Yes, I have lurked here
> for a couple of weeks.
>
> ~ v2.5.stable5
> ~ Can squid be configured to deny access to certain domains? Like
> *.doubleclick.net or *.falkag.net? The "acl <waste-of-time> dstdomain
> <unwanted>" + "http_access deny <waste-of-time>" looked promising but had
> no effect; the hosts were accessed anyway.
> ~ How does squid block/deny/etc specified domains?
> ~ Is a reload all that is necessary after changing squid.conf? Or is a
> full restart required?
>
> ~ Here is what I tried:
> acl adclick1 dstdomain .doubleclick.net
> acl adclick2 dstdomain .valueclick.net
> acl adclick3 dstdomain .falkag.net
> http_access deny adclick1 adclick2 adclick3
>
> - --
> jimoe at sohnen-moe dot com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (OS/2)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFDLlNEzTcr8Prq0ZMRAgnGAJ9/mllKWl+awGtOjxj9lJhNapbbSQCcDxEc
> ceimisVhqqrHn3F2nupZ1W8=
> =8G8z
> -----END PGP SIGNATURE-----
>
Received on Mon Sep 19 2005 - 02:18:50 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Oct 01 2005 - 12:00:03 MDT