February 17, 201016 yr Hi I've built quite a large php form for a clients website. Someone, somewhere, keeps filling the form in with rubbish and sending it. Consequently my client is receiving lots of mail from the form which is annoying and she's getting a bit peeved. Is there a way in which you can capture the ip address or something of the sender so we can "have a word" (if you know what I mean). Thanks, Jo
February 17, 201016 yr I've used third party captcha's to solve this problem. Means you don't have to keep banning ip addresses. http://en.wikipedia.org/wiki/CAPTCHA If it takes them 30 seconds or so to figure out the letters and type them in, they'll soon get bored.
February 17, 201016 yr have you set the form to validate when the user submits it? use a captcha or set up a question that only a human and not a bot would know
February 17, 201016 yr Have you had a look at Jem's form - http://www.jemjabella.co.uk/php-scripts-php-mail-form It contains a lot of checking, which may solve some of your problems?
February 17, 201016 yr Is there any further field validation you can apply which may have an effect on reducing the spam? Failing that you could put a timer on the form if it is being repeatedly abused in quick succession. Or even a temporary IP redirect (or ban) for hammering the form.
February 17, 201016 yr You can try and use a hidden input field... a bot will fill even a hidden input field in, where as a human normally won't. So if a hidden field is filled in, then you know not to let it pass through.
Create an account or sign in to comment