Brilliant, thank you Dave, I added that to my script and it worked like a charm. Unfortunately, Squid has taken a dislike to the acl file.
With the following in my squid.conf
Code:
acl bad url_regex -i "/etc/squid/blacklist.acl"
http_access deny bad
acl adult url_regex -i "/etc/squid/shalla_adult.acl"
http_access deny adult
I get the following message when trying to start Squid
Code:
bird:~# /etc/init.d/squid start
Starting Squid HTTP proxy: squid/etc/init.d/squid: line 74: 4460 Killed
start-stop-daemon --quiet --start --pidfile $PIDFILE --chuid $CHUID --exec $DAEMON -- $SQUID_ARGS </dev/null
failed!
If I comment out the shalla acl then it works and squid blocks the sites in blacklist.acl.
As soon as I uncomment the adult acl I get the above error.
I can't see any difference between the two files apart from their size. They both have the same permissions. I'm guessing I've done something stupid!
Thanks in advance.