Hi,
this is a bit of my squid.conf that I set up a few months ago.
acl all src 0.0.0.0/0.0.0.0
acl mylan src 192.168.0.0/16
acl banned url_regex "/etc/squid/banned.txt"
http_access deny banned
http_access allow mylan
http_access deny all
The file banned.txt will contain a list of urls that you wish to deny access to.
For example
fred.com will prevent access to ANYTHING.fred.com
pornsex will prevent access to any page/url with the word pornsex
banned.htm will prevent access to any page with banned.htm in it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.