If I am following this thread correctly, is the issue that has been discovered, that there is not referrer checking being conducted on mailform script, and thus it can be called from external to the hosting provider, i.e. were saying, someone creates a html page with the forms from the contact us page on it, populates it with all the email addresses and then submits it from his spammers desktop and out through your websites mailling facilities???
Wowsers, thought this would have been covered in the mailform as a basic entity to be honest.
So, if I have understood this right and people are struggling to secure the form, then try this:
Open the MailForm.pl file in your site1 folder and locate the line:
#?use CGI::Carp qw(fatalsToBrowser);
and place the following just above it...
if (($ENV{'HTTP_REFERER'}) &&
($ENV{'HTTP_REFERER'} !~ /^http:\/\/www.yourdomain.tld/)) {
# Cause an Internal Server Error or do something smarter if you wish#
exit;
}
Replace yourdomain with your real domain name and tld with your ext, i.e. .co.uk or .com etc etc
If this is what all are after, then this will cover basic needs, for which sure someone will be able to extend it to cover multiple domains, https usage and a nice 'get lost spammer' type of message instead of an abrupt exit...
Wowsers, thought this would have been covered in the mailform as a basic entity to be honest.
So, if I have understood this right and people are struggling to secure the form, then try this:
Open the MailForm.pl file in your site1 folder and locate the line:
#?use CGI::Carp qw(fatalsToBrowser);
and place the following just above it...
if (($ENV{'HTTP_REFERER'}) &&
($ENV{'HTTP_REFERER'} !~ /^http:\/\/www.yourdomain.tld/)) {
# Cause an Internal Server Error or do something smarter if you wish#
exit;
}
Replace yourdomain with your real domain name and tld with your ext, i.e. .co.uk or .com etc etc
If this is what all are after, then this will cover basic needs, for which sure someone will be able to extend it to cover multiple domains, https usage and a nice 'get lost spammer' type of message instead of an abrupt exit...
Comment