how to block a site in squid?

by Ramya 2009-06-06 12:59:31

Block a site in squid:
 * Login as root.

* Move to squid.conf file,
cd /etc/squid/
vim squid.conf

* Add the following commmand in acl(access control list),
acl aclname dstdomain .sitename(for eg, xyzjdfhkjs.com)

* Then add the condition under the line "INSERT YOUR OWN RULE(S) HERE",
http_access deny aclname

For eg,
acl block-site dstdomain fghsdfkj.com
http_access deny block-site

* Finally restart squid,
/etc/init.d/squid restart

Tagged in:

2665
like
0
dislike
0
mail
flag

You must LOGIN to add comments