Irish SEO,  Marketing & Webmaster Discussion

 

prevent mass email

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 ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2006, 02:11 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default prevent mass email

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
then on the page with the form add this before the email execute code:

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
hope this help anybody
__________________
:. 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-07-2006, 12:27 AM
blacknight's Avatar
Web Slave
Recent Blog:
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,578
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

Does it work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 08-07-2006, 09:34 AM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Quote:
Originally Posted by blacknight
Does it work?
It worked for me yestarday. I was getting like 10-20 email every 5min, so i had to do something quick.

after i uploaded the code i got another 2 emails and it stoped.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
email, mass, prevent

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

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


Sponsored links

Paid On Results


All times are GMT +1. The time now is 05:04 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0