Forum Moderators: coopster
There is someone who is targeting my site and sending me more then 50 mails per day. All are spam mails. I have added a verification code using javascript but still getting many mails.
And the problem is that i can't develop verification image in php or asp bcoz there are around 300 html pages in my site that includes booking form.
I need your help to find out how i can block some one from sending such mails.
when i checked mail server it shows - mailed- bycoleman.example.com
Please help me.
Thanks
Dinesh Sharma
[edited by: dreamcatcher at 7:01 am (utc) on July 26, 2008]
[edit reason] use example.com. Thanks. [/edit]
I suggest the honey pot method. This should solve most of your spam. It's actually really simple but at the same time very effective.
Add a few fields to your form. Call them subject, body, name, etc, things that are generic to most forms on the web. Now, wrap these form fields in a div and place a CSS class on that div with a non obvious name, e.g. 'farmerted', and add 'display:none' to the class. This will hide the form fields from normal users.
It's best practice to put a note after the open div tag and before the first form field saying something like 'If you can see these fields, please do not fill them in'.
Now, all you need to do when the form is submitted is check if those hidden fields have content. If they do, a little spam bot has been a crawlin' and you return an error saying 'Invalid Form Submission' or something.