$message = ""; $message .= "Following message has been sent to you through your website:\n\n"; $message .= "Sender: $name\n"; $message .= "Email: $email\n"; $message .= "Gender: $gender\n"; $message .= "Phone: $phone\n"; $message .= "Fax: $fax\n\n"; $message .= "Message Body:\n$quote\n";
include("header.php");
if (mail($to,$subject,$message,"From: $name <$email>\n")){ echo "<p>Dear $name, thank you for your feedback....</p>"; } else { echo "<p>Message could not be sent. Please try again later.</p>"; } include("footer.php"); exit(); }
CAPTCHA is annoying, however effective.
Read this: http://www.securephpwiki.com/index.php/Email_Injection on email injection - it may help you (unless the spammers are purely just filling in the form with text and spamming your client)
I have to say, that is interesting....And something I never thought about...
I like audio validation as a future alternative... Like a person clicks on the CAPTCHA image (if they cant read it) and a wav file plays, that relays the CAPTCHA text... you have to think that people with disabilities are or will be equipped with the hardware necessary to hear stuff like this (speakers, headphones, etc.)...A regular HTML text message before the CAPTCHA image could prompt disabled users to go grab their headphones if they're not already using them...
It would be cool if you could dynamically create wav files with the CAPTCHA text....just like you can dynamically create image files with PHP's image functions...
I have to say, that is interesting....And something I never thought about...
I like audio validation as a future alternative... Like a person clicks on the CAPTCHA image (if they cant read it) and a wav file plays, that relays the CAPTCHA text... you have to think that people with disabilities are or will be equipped with the hardware necessary to hear stuff like this (speakers, headphones, etc.)...A regular HTML text message before the CAPTCHA image could prompt disabled users to go grab their headphones if they're not already using them...
It would be cool if you could dynamically create wav files with the CAPTCHA text....just like you can dynamically create image files with PHP's image functions...
Would it be waist of time to make the image Alternative Text value equal the image code? Like if the turing image value is 41Fd8Q then make the image alt="41Fd8Q" since that would help browsers that can't view image.
Sweet! Would you happen to know how they did that, and if the audio is dynamically generated (along with the image)?
Quote:
Would it be waist of time to make the image Alternative Text value equal the image code? Like if the turing image value is 41Fd8Q then make the image alt="41Fd8Q" since that would help browsers that can't view image.
I think that a clever web bot or program could use the "alt" or "title" attribute text to bypass the system (just like regular HTML text), so it's probably not a solution....just a hunch...
might sound dumb, but i suppose it could work, possibly but how about a random question that the user has to complete for the mail to be sent. For example, at the end of your form get PHP to choose a random question from a list you made such as:
is the title of this site called MYWEBPAGE?
yes / no
because its random and it changes, the bots cant answer it, on the next page you simply validate the question.
I'm thinking about putting in a system similar to that but it displays a handful of random images and asks the user to pick the image that contains a dog, for example. Someone could write an OCR algorithm to defeat it sure, but for my purposes it wouldn't be worth doing.
Hate to burst your bubble but how would a visually impaired person be able to differentiate between small CAPTCHA-like images (a picture of a dog versus a picture of a cat, let's say)....."Disabled" people like this really only have a couple of options: 1) increase the HTML font size of web content to something huge so they can see it, or 2) I guess there are ways to deliver/translate web content into an audible format.
Unless you made the picture of the cat and dog REALLY big...lol......but then your image validation starts to look like a children's picture book...
Edit: by the way, I'm referring to Error 404's post in this thread..
The biggest problem people make is naming the
form script something like "formmail" or "email" or "mail" ....
spamming robots pick up on that right
away. Call your script something like:
<form action='df87ek.php' method='post'>
Hate to burst your bubble but how would a visually impaired person be able to differentiate between small CAPTCHA-like images (a picture of a dog versus a picture of a cat, let's say)....."Disabled" people like this really only have a couple of options: 1) increase the HTML font size of web content to something huge so they can see it, or 2) I guess there are ways to deliver/translate web content into an audible format.
Unless you made the picture of the cat and dog REALLY big...lol......but then your image validation starts to look like a children's picture book...
Edit: by the way, I'm referring to Error 404's post in this thread..
Aside from my dyslexia I am completely able, both in body and mind - I do however have trouble with a lot of captcha images - and thats not entirely due to dyslexia, some of them are just down right bad, in order to distort it so that robots cant read it they make it so that humans can just about make it out. But I'm pretty sure I can tell a dog from a cat. Without having to increase text sizes to be huge - dont be so narrow minded - there are more disabilities than visual impairments that would affect someone's ability to decipher captchas.