I want to acknowledge that M. Desjardin's script is far superior to this
one; but this one is simpler:)
---------------------------------------------------------------
#!/bin/sh

echo squidguard Blacklist Download
USER=anonymous
[EMAIL PROTECTED]
# this may be proxy, or nobody, depending...
RUNAS=squid

cd /usr/local/squidguard/db/
# save old blacklists
[ -f oldlists.tar.gz ] && rm -f oldlists.tar.gz
tar -czf oldlists.tar.gz *
echo "Running ftp....."

echo "open ftp.ost.eltele.no
user $USER $UPASSWD

cd /pub/www/proxy/squidGuard/contrib
bin
mget blacklists.tar.gz*
close
quit" | ftp -i -n

gzip -dc blacklists.tar.gz~ | tar xvf -

echo "Blacklists updated"

echo "Changing Ownership"

chown -R $RUNAS:$RUNAS /usr/local/squidguard/db/blacklists

/etc/rc.d/init.d/squid reload

------------------------------------------------------------

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Thomas T.
Veldhouse
Sent: Monday, August 20, 2001 1:52 PM
To: [EMAIL PROTECTED]
Subject: Script to update blacklists?


Does anybody have a decent script to update blacklists periodically?

I am running FreeBSD 4.3-STABLE, Squid 2.4 and the latest stable version of
SquidGuard (x.x?).  I would like to update my lists weekly or even more
often if possible.  This is to protect my child from the evil world of the
Internet available from my home DSL connected LAN.

I am looking for a perl script or some such to download, diff and apply
changes to the blacklists on my machine.

Thanks in advance,

Tom Veldhouse
[EMAIL PROTECTED]

Reply via email to