Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: [Andy] spamming from my server using SUBSCRIBE.CGI

Quote Reply
Re: [Andy] spamming from my server using SUBSCRIBE.CGI In reply to
This might be be able to be worked in, it's from add.cgi, and allows access to the script only when referred from a link on your site (or whatever you put in the fields in links.cfg).


# Check the referer.
if (@db_referers and $ENV{'HTTP_REFERER'}) {
$found = 0;
foreach (@db_referers) {
$ENV{'HTTP_REFERER'} =~ /$_/i and $found++ and last;
}
if (!$found) {
&site_html_add_failure ("Auto submission is not allowed in this directory. Please visit the site to add your entry.");
return;
}
}

If it works, you would want to change the error message...


Leonard
aka PerlFlunkie
Subject Author Views Date
Thread spamming from my server using SUBSCRIBE.CGI chapsrulez 2983 Jan 5, 2004, 12:03 AM
Thread Re: [chapsrulez] spamming from my server using SUBSCRIBE.CGI
Andy 2851 Jan 5, 2004, 2:22 AM
Post Re: [Andy] spamming from my server using SUBSCRIBE.CGI
PerlFlunkie 2839 Jan 5, 2004, 2:35 PM