Article 52S79 Unable to block list websites inside file using squid

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 secondslatest?d=yIl2AUoC8zA latest?i=Ladrx-TLKr0:-Y9-fSQI9vo:F7zBnMy latest?i=Ladrx-TLKr0:-Y9-fSQI9vo:V_sGLiP latest?d=qj6IDK7rITs latest?i=Ladrx-TLKr0:-Y9-fSQI9vo:gIN9vFwLadrx-TLKr0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments