[advanced search]
Results from the most recent live auction are here.
20 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-30-2006, 10:48 AM   · #1
sbaik
NamePros Regular
 
Name: Steve
Location: USA
Trader Rating: (10)
Join Date: Nov 2005
Posts: 394
NP$: 42.00 (Donate)
sbaik is a name known to allsbaik is a name known to allsbaik is a name known to allsbaik is a name known to allsbaik is a name known to allsbaik is a name known to all
Form Email Getting Bombed

Hi everyone,

My form email is getting spam bombed by someone, and would like to know what I can do to stop it. I get about 50 form email bombs from what it appears to be an automated bomber.

Here is a couple that I got. It seems to repeat itself; its always the same names and emails.

Quote:
Name: Arnie
Email: heel@mail.com
Bank Name: Arnie
Bank Website: http://m357.medicipharm.info/



Quote:
Name: Jane
Email: neo@hotmail.com
Bank Name: Jane
Bank Website: http://longs-drugs.medicipharm.info/



Any help is appreciated. Thanks, Steve


Please register or log-in into NamePros to hide ads
sbaik is offline   Reply With Quote
Old 05-30-2006, 11:12 AM   · #2
ninedogger
DNOA Member
 
ninedogger's Avatar
 
Location: Iowa
Trader Rating: (38)
Join Date: Jun 2004
Posts: 655
NP$: 13.10 (Donate)
ninedogger is a glorious beacon of lightninedogger is a glorious beacon of lightninedogger is a glorious beacon of lightninedogger is a glorious beacon of lightninedogger is a glorious beacon of lightninedogger is a glorious beacon of light
Save The Children
you could setup a mysql db/flat file prevention system

you could have it so it only allows 1 email / ip every 12 hours or so...
and also you could have it setup a cookie once they send an email so the next time they try to send one (it checks for a REQUIRED cookie value)
__________________
Want to prove yourself?

CHECK OUT MY DOMAINS!
ninedogger is offline  
  Reply With Quote
Old 05-30-2006, 12:22 PM   · #3
Peter
NamePros Staff
 
Peter's Avatar
 
Name: Peter
Location: Scotland
Trader Rating: (47)
Join Date: Nov 2003
Posts: 4,337
NP$: 2039.40 (Donate)
Peter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud of
Child Abuse Save The Children Save The Children
ninedogger the cookie idea will not work if it is an automated script as it will not accept cookies so will never meet the requirement.

The ip address 1 is a decent enough idea or an alternative is the ussual captcha method (have an image with a random string of letters and numbers that the person has to type into a box)
Peter is offline   Reply With Quote
Old 05-30-2006, 02:48 PM   · #4
hairyfreak
NamePros Regular
 
hairyfreak's Avatar
 
Name: Harry Truman
Location: Derbyshire, UK
Trader Rating: (13)
Join Date: Dec 2005
Posts: 887
NP$: 26.45 (Donate)
hairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nice
I think that filth@flexiwebhost's captcha idea is the best. They are easy to add, and would prevent automated emails, such as the ones you received, being sent.
hairyfreak is offline   Reply With Quote
Old 05-30-2006, 04:36 PM   · #5
iNod
Eating Pie
 
iNod's Avatar
 
Name: Steve
Location: Canada
Trader Rating: (66)
Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 (Donate)
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Save this as randomimage.php
PHP Code:
<?php
session_start
();

// Set random numbers (5 digits)
$rand = rand(10000, 99999);

// create the hash (security) and set the 5 digits to it
$_SESSION['image_random_value'] = md5($rand);

// create the image
$image = imagecreate(60, 30);

// use white as the background image
$bgColor = imagecolorallocate ($image, 255, 255, 255);

// the text color is black
$textColor = imagecolorallocate ($image, 0, 0, 0);

imagestring ($image, 5, 5, 8, $rand, $textColor);

// set several headers to make sure the image is not cached
// Set the date (not required to have an accurate date)
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// Make it so it doesn't cache the image (IMPORTANT)
header("Pragma: no-cache");
// Set content type for the image (REQUIRED)
header('Content-type: image/jpeg');

// Make the jpeg image (show)
imagejpeg($image);
// Destory the image information
imagedestroy($image);
?>


That will make an image to display some numbers. It is very simple and since it is not a login or anything try to keep it nice and simple. So adding letters would only make it harder.

Than just add this to your current contact form where you want the image to display.
Set the tables to the proper value
Code:
<tr> <td>Verification Number</td> <td><input name="number" type="text"></td <td><img src="randomImage.php"></td> </tr>


And add this to the part where it verifies the fields are set and sends the email
PHP Code:
// Make sure this is at the very top. If it is already there nvm. Otherwise add it or it will not work
session_start();

// Add a if command to verify the number (hashed) is the same as the session
if(md5($number) == $_SESSION['image_random_value']) {
// It is the same
}else{
//it isn't right.. Display error
}


Most of this was taken from
http://www.php-mysql-tutorial.com/u...erification.php
But I simplified it and changed a few things to make it simplier for you to understand.

- Steve
__________________
RegisterDub.com - 200th Customer Milestone
ZuneParts.net - International Zune Parts and Accessories
FeaturedFont.com - One Top Free Font a Day!
iNod is offline   Reply With Quote
Old 05-30-2006, 11:19 PM   · #6
ninedogger
DNOA Member
 
ninedogger's Avatar
 
Location: Iowa
Trader Rating: (38)
Join Date: Jun 2004
Posts: 655
NP$: 13.10 (Donate)
ninedogger is a glorious beacon of lightninedogger is a glorious beacon of lightninedogger is a glorious beacon of lightninedogger is a glorious beacon of lightninedogger is a glorious beacon of lightninedogger is a glorious beacon of light
Save The Children
Originally Posted by filth@flexiwebhost
ninedogger the cookie idea will not work if it is an automated script as it will not accept cookies so will never meet the requirement.

The ip address 1 is a decent enough idea or an alternative is the ussual captcha method (have an image with a random string of letters and numbers that the person has to type into a box)




Thats true about the cookie, but on my site I require the cookie to be set and it will not send unless there is a cookie there (with the specific value), hence I said required

and that captcha also could get very annoying to people actually just wanting to contact quick and easy
__________________
Want to prove yourself?

CHECK OUT MY DOMAINS!
ninedogger is offline  
  Reply With Quote
Old 05-31-2006, 12:13 AM   · #7
sbaik
NamePros Regular
 
Name: Steve
Location: USA
Trader Rating: (10)
Join Date: Nov 2005
Posts: 394
NP$: 42.00 (Donate)
sbaik is a name known to allsbaik is a name known to allsbaik is a name known to allsbaik is a name known to allsbaik is a name known to allsbaik is a name known to all
Thanks for your help guys. I appreciate it.

Regards,
Steve
sbaik is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
RealTechNetwork Proof is in the Parking EscrowDNS
Advertise your business at NamePros
All times are GMT -7. The time now is 09:49 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0