|
|
how to block a site in squid? - Linux
|
Views : 1805
|
|
Tagged in : Linux
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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 |
|
|
|