This is a discussion on prevent mass email within the Coding Help forums, part of the Webmaster Help category; Lately there are a lot of email coming trough from the websites using remote access to you form. It happened ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| Lately there are a lot of email coming trough from the websites using remote access to you form. It happened to me as well. Got about 100 email in 20 min, so what i did was to create a session and if bigger then 2 (no more then 2 email per session) i redirect them to the home page. If anybody find it usefull you are more then welcome to use it. Is in php but can be easily converted to any language. if you have a global include file like top.php add this to it: Code:
//block mass email senders
// change this to you variable :: (@$_POST["sendemail"] == '1' ::
if (@$_POST["sendemail"] == '1') {
$_SESSION['you_send_email'] = @$_SESSION['you_send_email']+1;
}
//end of block mass email senders
Code:
//block mass email senders
if (@$_SESSION['you_send_email'] > 2){
$_SESSION['you_send_email'] == 2;
header("Location: http://www.yourdomainname.tld/index.php");
exit();
}
//end of block mass email senders
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| |||||
| Does it work?
__________________ Hosting & Domains|Plesk Vps Hosting|Geek / Cool Stuff|Films.ie|Cool Sites|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||||
| Quote:
after i uploaded the code i got another 2 emails and it stoped. |
| Tags |
| email, mass, prevent |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Newbie to Email Marketing | Fintan | Email Marketing | 5 | 20-01-2008 02:26 PM |
| HTML Email or Plain Text? | blacknight | Email Marketing | 14 | 04-03-2007 08:43 PM |
| Prevent Email Harvesting | ph3n0m | Webmaster Discussion | 4 | 26-01-2006 06:42 PM |
| ||||||||
| | ![]() | |||||||