24, July 2008

Mailforms and spam - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Mailforms and spam
« previous next »
Pages: [1] Print

Author Topic: Mailforms and spam  (Read 913 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« on: Jun 21, 2006, 01:08:29 PM »

The last few weeks I get an enormous ammount of spam from topsites's mailform (the contact form of the site)

It appears that there are spam bots that are able to detect a 'contact us' form, so they use it to post information to you.

Today alone I got 10 mails for spammers that used this form, so I guess I should do something about that.

My first ideas is to change the names of the variables, change the path to the contact page, and add an ip tracker with abillity to ban ips (but I guess this wont work as spammers allways use dynamic ips)

Do you have some ideas to add to this? had you ever faced a problem like that?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jun 21, 2006, 01:20:24 PM »

I prevented spam like this with the last month,

there are two kind of spammers:
-  a kind of injection (adding extra addresses to the mail header)
- mail spammer sending mails to the owner via external program's

(I hope my explanation is clear)

the first is easy to prevent with
Code:
$email = preg_replace("/\r\n/", "", $_POST['Email']);

the second is tricky:
use some captcha validation like: http://www.webdigity.com/index.php?action=tutorial;code=17 Visit through proxy

I tried also something else here:
http://www.buitenspelen.eu/contact.php Visit through proxy

not the checkbox, the name of this checkbox is everytime different. This value can be validated during execution


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #2 on: Jun 21, 2006, 01:24:58 PM »

Quote
not the checkbox, the name of this checkbox is everytime different. This value can be validated during execution

That's very smart. And how you understand which is the right variable? With session or you create the var name from a date or something?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jun 21, 2006, 01:41:24 PM »

Quote
not the checkbox, the name of this checkbox is everytime different. This value can be validated during execution

That's very smart. And how you understand which is the right variable? With session or you create the var name from a date or something?
Yes, a session is holding some random string generator, I think this way is much more user friendly...


Last blog : 4th of July Lottery from TemplateMonster.com
Just another rainy day
*
Posts: 1
6 credits
Members referred : 0


« Reply #4 on: Nov 30, 2006, 07:55:20 AM »

Hi All,

New member, I just stumbled across your great site.  I to had problems with spammers using a mailform. I got his ISP from Cpanel and put a "ban_id" in the code.  But then more came so I needed a better script.  I found this one here and it works wonderfully.

http://www.dagondesign.com/articles/secure-php-form-mailer-script/comment-page-17/ Visit through proxy

I have no connection whatsoever with the script or scriptwriter, just like to help people stop spammers.

take care
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #5 on: Nov 30, 2006, 08:57:22 AM »

Well Chain, it is ok even if you wrote the script, as it is relevant to what we talk here Smiley

Looks like a complexed script anyway, but if it works I guess it worths a try Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Nov 30, 2006, 09:29:16 AM »

y
Hi All,

New member, I just stumbled across your great site.  I to had problems with spammers using a mailform. I got his ISP from Cpanel and put a "ban_id" in the code.  But then more came so I needed a better script.  I found this one here and it works wonderfully.

http://www.dagondesign.com/articles/secure-php-form-mailer-script/comment-page-17/ Visit through proxy

I have no connection whatsoever with the script or scriptwriter, just like to help people stop spammers.

take care
yes its a nice form mail script with a lot ogf features which are not available in other mailscripts.
Badpoints:
no-chance for html mail
a very simple captcha image



For sure good enough for people without the ability to write their own mail scripts


Last blog : 4th of July Lottery from TemplateMonster.com
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2965
Tags : html spam cpanel email Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Mailforms and spam
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 24, 2008, 11:17:22 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.712
Total Topics: 7.376
Total Members: 3.706
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: FortuneBeach

36 Guests, 4 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.