how to block a site in squid? - Linux Views : 1805
Tagged in : Linux
0 0
Send mail
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
By Ramya, On - 2009-06-06



    Login to add Comments .