Blocking Multiple Websites:


We would create a file /etc/squid/sitelist and add all to be blocked websites in the file. Below is a sample content of this file:

 
   .bad_site.com
\.hacker.$
\.mp3$
      
 


 

 

 

 
# \keyword? Indicates string keyword string


acl localhost src 127.0.0.1/32

acl to_localhost dst 127.0.0.0/8

            acl our_network src 192.168.200.0/24

acl facebook url_regex [i] .facebook.com

acl bad_domain urlpath_regex [i] “/etc/squid/sitelist”

 
            http_access deny bad_domain

http_access deny facebook

http_access allow our_network
 
http_access deny all

Comments

Popular posts from this blog

Squid Configuration

Squint Configure

Postfix SASL authentication with SMTP port 465:

How to Change the Logo from Zimbra Admin Console