1.

How To Block Websites Using Squid ?

Answer»

Squid can PREVENT the access to a particular site or to sites which CONTAIN a particular word. This can be implemented by adding the below rules in the ‘/etc/squid/squid.conf’ file.

acl allowed_clients SRC 192.168.1.1/255.255.255.0

acl banned_sites url_regex "/etc/banned.list"

http_access deny banned_sites

http_access ALLOW allowed_clients

Create a file /etc/banned.list , add all the sites that you want to BLOCK.

Squid can prevent the access to a particular site or to sites which contain a particular word. This can be implemented by adding the below rules in the ‘/etc/squid/squid.conf’ file.

acl allowed_clients src 192.168.1.1/255.255.255.0

acl banned_sites url_regex "/etc/banned.list"

http_access deny banned_sites

http_access allow allowed_clients

Create a file /etc/banned.list , add all the sites that you want to block.



Discussion

No Comment Found