I didn't like having to have an allow list for people who could post, I prefer having a ban list to limit people who can post, so I added a new variable to my links.cfg file:
@db_ban = ('net-soft.ne','195.20.225.110','searchup.de','dj-ufk.de',webnaut.de');
and then changed my add.cgi to read (instead of @db_referrers everyone is taking about):
if (@db_ban) {
$found=0;
foreach (@db_ban) {
$ENV{'HTTP_REFERER'} =~ /$_/i and $found++ and last;
}
Now I can choose people to ban instead of people to allow. Much more convienient.
Hope this helps,
Michael
- A computer without Microsoft is like a cake without Mustard -unknown
@db_ban = ('net-soft.ne','195.20.225.110','searchup.de','dj-ufk.de',webnaut.de');
and then changed my add.cgi to read (instead of @db_referrers everyone is taking about):
if (@db_ban) {
$found=0;
foreach (@db_ban) {
$ENV{'HTTP_REFERER'} =~ /$_/i and $found++ and last;
}
Now I can choose people to ban instead of people to allow. Much more convienient.
Hope this helps,
Michael
- A computer without Microsoft is like a cake without Mustard -unknown