TechTutorials - Free Computer Tutorials  







PHP Form Protection with CAPTCHA 
 


Added: 12/06/2005, Hits: 3,253, Rating: 0, Comments: 0, Votes: 0
Add To Favorites | Comment on this article
Anyone running a reasonably popular web site with forms knows how irritating it is when they get spammed. You might get fake user registrations, fake blog comments, or even have your contact forms used to spam people. You have probably seen the random image generators on big web sites and wondered how you can implement something like that on your site.

If you haven't seen these, they essentially present a random string of letters/numbers that you must enter correctly for the form to be processed. This prevents spamming because only a real person can read the images which are usually distorted to prevent OCR software from reading them. This technology is known as CAPTCHA.

Sounds easy, but try searching Google and see what you come up with. If you are like me, then you didn't find much.

After some research, I have come up with a few good options for those who wish to protect PHP forms. Each one covers a different skill level for implementation.

  • Expert - If you have programming experience, there is a good article at Sitepoint that offers a good method if you want to do it yourself.

  • Intermediate - Vorras Antibot is a piece of software that will accomplish this. It is free, but does require Python and some scripting ability.

  • Easy - Smiledsoft Form Protector is very easy to implement only requiring that you past a couple lines of code into a couple of PHP files. While it is not free, it does only cost $29 for the pro version and $19 for the light version.






Comments (0)

Be the first to comment on this article


Related Items








7 Seconds Resources, Inc.




IT Showcase