ciao a tutti volevo sapere dove si potevano reperire blacklist di siti italiani compattibili con dansguard
grazie in anticipo a tutti![]()
ciao a tutti volevo sapere dove si potevano reperire blacklist di siti italiani compattibili con dansguard
grazie in anticipo a tutti![]()
C'è sempre tempo per imparare
io la prendo da qui:
http://urlblacklist.com/cgi-bin/comm...e=bigblacklist
ne conosci delle altre????
C'è sempre tempo per imparare
non saprei se fosse possibile sfruttare questa
http://squidguard.shalla.de/Downloads/shallalist.tar.gz
http://dag.wieers.com/rpm/packages/s...rd-blacklists/
grazie per le info!!! senti ma se volessi aggiornare la blacklist come dovrei procedere????
C'è sempre tempo per imparare
io uso questo script
#!/bin/sh
###
# UpdateBL - refresh DansGuardian Blacklists
#
# Version: 0.9.2
# Date: Sept 9 2002
# Author: Fernand Jonker <fernand@futuragts.com>, based largely on
# the work of Christopher Rath <christopher@rath.ca>
#
# A sysadmin named Mike posted the original script to one of the
# ClarkConnect Forums. It was then rewritten quite extensively by
# Christopher Rath to make it more configurable and to include error
# checking. Thereafter it was customized by Fernand Jonker for
# use with DansGuardian.
#
# Copy this script to a convenient location and have cron
# periodically run it to keep your blacklists updated. Please
# limit automated downloads to twice or ideally once a week to
# prevent bandwidth wastage. There is also no point in downloading
# more often as the lists won't change that much.
#
# Ensure you have wget installed on your server - you can obtain
# it from http://www.wget.org/
#
# Caveat: when UpdateBL moves the new Blacklists into place it
# only replaces Blacklists; that is, if a new Blacklist is not
# downloaded for a particular category then the old list will
# remain in place. This is a design feature: to allow you to
# have local Blacklists which are never overwritten/refreshed
# by this script.
#
# Info on Dansguardian and Blacklists can be found at:
# http://www.dansguardian.org/
# http://blacklist.dansguardian.org/
#
# No copyright retained. This script is in the Public Domain.
# This package is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
###
###
# History
#
# 0.9 - Sept 1, 2002 - original release.
# 0.9.1 - Sept 4, 2002 - changed DG restart command and added cron
# information - minor cosmetic changes.
# 0.9.2 - Sept 9, 2002 - changed default download to the small test
# file and added history
#
###
###
# Don't allow undefined variables.
set -u
###
# Settings you must configure.
# BL_URL - the Blacklist's URL - test file enabled by default.
# You must change this to the bigblacklist to download the
# full blacklist file.
# B_PATH - where the Blacklist database is stored.
# SG_UGID - the userid and group which must "own" the Blacklist
# database files (format: "<userid>:<group>)
# DG_PATH - where the DansGuardian Binary is located
#
#
#export BL_URL=${BL_URL:="http://blacklist.dansguardian.org/cgi-bin/download.pl?type=download&file=smalltestlist"}
#export BL_URL=${BL_URL:="http://urlblacklist.dansguardian.org/cgi-bin/download.pl?type=download&file=bigblacklist"}
#
#export BL_URL=${BL_URL:="http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=smalltest list"}
#
export BL_URL=${BL_URL:="http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblackl ist"}
#
#export DB_PATH=${DB_PATH:="/etc/dansguardian/blacklists"}
export DB_PATH=${DB_PATH:="/usr/squidGuard/db/blacklists"}
export HOME_DIR="/tmp"
export SG_UGID=${SG_UGID:="root:root"}
export DG_PATH=${DG_PATH:="/usr/sbin"}
export UNCOMP_CMD="gunzip"
export UNTAR_DIR="blacklists"
export VERS="0.9.2"
# Create a few working variables.
export BL_TAR_BASE="`basename ${BL_URL}`"
export BL_TAR_FULL="${HOME_DIR}/${BL_TAR_BASE}"
export TMP_DIR="/tmp/blacklists"
# Output a quick startup message.
echo "==="
echo "Starting Blacklist update v${VERS}: `date '+%Y/%m/%d %T'`"
# We use $TMP_DIR as a working directory for wget and the untar process,
# so we start by cd-ing into it. We create it if it doesn't exist, and
# if there is already something in the way then we abort.
if [ ! -d "${TMP_DIR}" ]
then
if [ -e "${TMP_DIR}" ]
then
echo "ERROR: ${TMP_DIR} already exists, but isn't a directory;"
echo " aborting Blacklist refresh."
exit 1
fi
mkdir "${TMP_DIR}"
fi
cd "${TMP_DIR}"
if [ "$?" != "0" ]
then
echo "ERROR: unable to cd into working directory,"
echo " ${TMP_DIR}"
exit 1
else
if [ -f "${BL_TAR_FULL}" ]
then
mv -f "${BL_TAR_FULL}" "${BL_TAR_FULL}.1"
fi
if [ -f "./${BL_TAR_BASE}" ]
then
echo "Moving old ${BL_TAR_BASE} out of the way."
mv -f "./${BL_TAR_BASE}" "${BL_TAR_FULL}"
fi
echo "Running wget to retrieve new lists."
wget -nv "${BL_URL}"
if [ "$?" != "0" ]
then
echo "ERROR: unable to retrieve new lists,"
echo " aborting blacklist refresh."
exit 1
else
echo "Succesfully retrieved new lists."
echo "Untaring Blacklist archive, ${BL_TAR_BASE}"
"${UNCOMP_CMD}" <"${BL_TAR_BASE}" | tar -xf -
if [ "$?" != "0" ]
then
echo "ERROR: unable to extract new lists,"
echo " aborting blacklist refresh."
exit 1
else
echo "Moving new lists into place."
for i in "${UNTAR_DIR}"/*
do
export ib="`basename ${i}`"
if [ -d "${DB_PATH}/${ib}" ]
then
rm -rf "${DB_PATH}/${ib}"
fi
mv "${UNTAR_DIR}/${ib}" "${DB_PATH}"
done
echo "Remove temporary files and folders."
rm -rf /tmp/blacklists
echo "Change owner and permissions."
chown -R "${SG_UGID}" "${DB_PATH}"
chmod -R 755 "${DB_PATH}"
echo "Restarting Dansguardian."
killall dansguardian
cd "${DG_PATH}"
dansguardian
# Output a quick end message.
echo "Finished Blacklist update: `date '+%Y/%m/%d %T'`"
echo "==="
exit $?
####
#### If everything went well, we exited here.
####
fi
fi
fi
ma è uno script di defoult o c'è qualcosa da modificare??? inoltre dove lo inserisci? in /etc/init.d/ come demone??
C'è sempre tempo per imparare
controlla nelle variabili, soprattutto quella del path del db del pacchetto
p.s.
personalmente lo lancio a mano...
grazie mille!!! proverò!!!
posso chiederti l'ultima info??? vorrei personalizzare il messaggio d'errore di dansguardian!!! sai per caso che file devo modificare???
grazie in anticipo
C'è sempre tempo per imparare