LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > Kashif Aziz Awan
User Name
Password

Notices

Rate this Entry

Auto Update SquidGuard Black List script

Posted 08-01-2013 at 05:15 AM by kashifazizawan

Kashif Aziz Awan
http://fb.com/kashifazizawan

Save it to /root/scripts/blacklistupdate.sh then run 'crontab -e' as root to add it.

################################
#!/bin/sh
#
cd /tmp

wget -Y on "http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblacklist" -O blacklist.tar.gz

tar -zxf blacklist.tar.gz
cd blacklists
rsync -a . /var/lib/squidguard/db/
/etc/init.d/squid stop
squidGuard -C all
chown -R squid.squid /var/lib/squidguard/db
/etc/init.d/squid start
rm -rf /tmp/blackl*

################################
Posted in Uncategorized
Views 1544 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration