>Have these questions:
>1. How often is a .diff file posted?
>2. Is there a convention for naming of the .diff files?
>e.g. are the .diff files in a particular category called
>something?
Hi,
diff files are usually generated locally to modify the database files while
SquidGuard is running. The format is extremely simple:
+www.hosttoadd.com
-www.hosttodelete.com
etc
The name of the diff file is the same as the database to which it refers,
and it goes in the same directory, for example domains.diff for domains.db.
The diff file allows you to make quick changes without rebuilding the
databases from the text files, which is obviously an advantage for a live
system.
So, say you find that the "porn" database is blocking the site www.nik.com
and you want to unblock it, you would do the following:
1. Go to the db/porn directory
2. Add the following line to domains.diff (creating the file if necessary)
-www.nik.com
3. Get squidguard to rebuild its version of the databases
/usr/local/bin/squidguard -u
The -u forces an update and sends squidguard to look for .diff files in the
db directory your squidguard is using.
I've found it useful to keep the .diff files afterwards, as it means you can
rebuild the "core" database as the blacklist is updated and then reapply
your changes (otherwise when you rebuild from source you lose the changes
you've made).
Hope this helps!
Nik
/usr/local/bin/squidguard