Forum Moderators: phranque
I am currently using a PHP emailer script for my contact pages (forms). However, I am being besieged with hundreds of emails. Is there a script that I can insert that will prevent folks from entering an email with my extension?
Let's suppose that example.com is my hypothetical site! In my forms I ask for your email and there is field to enter. Can I prevent someone from entering xyz@example.com in the email field? I do NOT want folks entering my web site address in the email field!
Thanks.
[edited by: tedster at 5:27 pm (utc) on Sep. 11, 2005]
[edit reason] use example.com [/edit]
[webmasterworld.com...]
I'm not sure, maybe this is what people call a "joe job"? Search online for these keywords. You will find more info online. I believe it deals with emails being sent to people and the emails bouncing back.
Here is a link to some info:
[webmasterworld.com...]
Hope this helps:)
frenzy77
if (stristr($email, "yourdomain")) {
die("Sorry invalid email. Later dude.");
}
This will prevent the attacker from using your own domain name in the email field.