Unable to block list websites inside file using squid
by refano from LinuxQuestions.org on (#52S79)
my squid.conf
acl deny_websites dstdomain "/etc/squid/urlblock.txt"
http_access deny deny_websites
my /etc/squid/urlblock.txt
.facebook.com
.detik.com
I stop the squid first
service squid stop
pkill -9 squid
then restart
service squid restart
sudo usr/sbin/squid
My other configuration in case it may be the cause of problem
http_access allow all
....
visible_hostname ProxySquid
...
shutdown_lifetime 0 seconds


acl deny_websites dstdomain "/etc/squid/urlblock.txt"
http_access deny deny_websites
my /etc/squid/urlblock.txt
.facebook.com
.detik.com
I stop the squid first
service squid stop
pkill -9 squid
then restart
service squid restart
sudo usr/sbin/squid
My other configuration in case it may be the cause of problem
http_access allow all
....
visible_hostname ProxySquid
...
shutdown_lifetime 0 seconds