It is assumed that the scripts described below are located in /usr/local/rejik3/dbl. Scripts require Perl, wget and XML::Parser and Text::Iconv modules. You can download the scripts in the Download section.
There are two interfaces for downloading a DBL list: fast and full.
Fast download is designed to get the rules you added to the system in
the last hour. Points for such downloading are not deducted from you.
The main purpose is to check the rules you just added.
It is carried out using the Update.Fast script, which must first be edited:
$login = "enter your login here";
$pass = "enter your password here";
$WGET = "/usr/bin/wget"; - the path to wget program
The result of the script is the fast.dbl file and the update.fast.log
With a full download, you get a general DBL list. For downloading 10
points are removed. Downloading is impossible with a balance of less
than 10 points.
It is carried out using the Update script, which must be pre-edited:
$login="enter your login here";
$pass="enter your password here";
$WGET="/usr/bin/wget"; - path to wget program
The result of the script: file list.dbl and update.log.
Making a selection
After you have downloaded the DBL list, you need to make a selection
from it using the dbl_expand script, which must first be edited:
my_nick="enter your username here";
$min_trust=300; is the minimum rating of the rule.
@good_guys=("slava"); - a list of DBL users whom you trust in the format
"1", "2", "3".
@bad_guys=("test"); - a list of DBL users whom you do not trust in the
format "1", "2", "3".
The rating of each rule is calculated as the sum of the ratings of DBL
users who added/checked it, and if this amount is greater than the
minimum rating of the rule, then the rule is considered true and will be
included in your ban list.
The script should receive the name of the dbl file as a parameter.
The result in the form of ban lists will appear in the lists folder.
Next, you can copy the lists to the appropriate directories or make the appropriate symlinks. For example, for the banners group, I have this: