Gossamer Forum
Home : Products : DBMan : Discussions :

Re: [Watts] Spammer used our private email mod

Quote Reply
Re: [Watts] Spammer used our private email mod In reply to
Thank you!! I imagine other sites have been hit as well. I've located this subroutine http://www.devdaily.com/...u/articles/pl010014/ that looks like it will address it. Just can't seem to get the proper syntax when calling the sub from html.pl.

I've added this sub to db.cgi:

sub limitHostAccess {

$trustedHosts = "devdaily.com|mydomain.com"; # define your domain here
$remoteHost = $ENV{'REMOTE_HOST'};

if ( $remoteHost =~ /$trustedHosts$/i ) {
return;
} else {
print "\n";
exit 1;
}
}

1;


But I haven't been successful in calling the sub from html.pl when adding it under the sub html_send_email_form:

#---------------------------------------------#
&limitHostAccess; # program exits here if REMOTE_HOST is wrong #
#---------------------------------------------#
Subject Author Views Date
Thread Spammer used our private email mod sciulli 5908 Dec 12, 2003, 8:04 AM
Thread Re: [sciulli] Spammer used our private email mod
Watts 5773 Dec 12, 2003, 9:40 AM
Thread Re: [Watts] Spammer used our private email mod
sciulli 5737 Dec 12, 2003, 7:37 PM
Thread Re: [sciulli] Spammer used our private email mod
Watts 5734 Dec 15, 2003, 9:26 AM
Thread Re: [Watts] Spammer used our private email mod
LoisC 5769 Dec 15, 2003, 11:10 PM
Post Re: [LoisC] Spammer used our private email mod
Watts 5705 Dec 16, 2003, 8:12 AM
Post Re: [sciulli] Spammer used our private email mod
sciulli 5678 Dec 21, 2003, 6:28 AM