Close
Social profiles

First you need to enter the directive to the squid.conf file, located on /etc/squid

$ su -
# vim /etc/squid/squid.conf

Then you have to enter the following lines to the configuration file;

Create acl called BLKdomain:

acl BLKdomain dstdomain "/etc/squid/BLKdomain"

Deny http access, enter:

http_access deny BLKdomain

Then, create a file called /etc/squid/BLKdomain

# vim /etc/squid/BLKdomain

Append domain names,

google.com
facebook.com
yahoo.com
msn.com

Close and save the file. Restart squid proxy server:

# /etc/init.d/squid restart

Leave a Reply

Your email address will not be published. Required fields are marked *

Close