Form Validation help
We are getting a few spam emails in our forms. I was wondering if there is a code for the "Name" portion of the form to have to include a space. So no more single names, it would have to be First[space]Last.
Or as an alternative, adding an image validation to the form.
The spams are logically can;t be avoid,
because now a days, the human beings are posting a form ,rather than a robot
so its best method, to get an ip address of the span poster and keep that ip address in block list of .htaccess
so if spam poster come back to our form, he can;t able to view it
follow up to that then, how do I grab their IP address?
You might take a look at Akismet. It does a very good job on my blog.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
what about putting in a password box this is a static password? So I tell those using the form "you need to use aardvark" in the password field. Then if the password does not match, the form gives an error. Obviously this password would not actually be anywhere on the site. :-)
@mythic: if human doing the spam post, your idea will work?
Last edited by masterwin; 06-20-2012 at 01:16 AM.
Reason: name change
I truly believe so. If you don't know the password is "aardvark" then the script will never allow you to submit. It will always come up an error. So unless the person wants to sit there and try passwords until they are blue in the face, they will just move on to an unprotected form.
I've tested it out and my script looks to be correct and I have not had a spam submission is over 12 hours.
you can also employ captcha or recaptcha or roll your own captcha like code, but i'd go with nog dogg and use akismet, i don't think it's free anymore but it is very effective.
@mythic : Okay..then fine..
I guess blocking IP of such spam mails is the best way to rule out spam. There is no short cuts now a days to block smaps.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)