How do I write a simple PHP CAPTCHA Script?


Hi guys,

I am studying the basics of PHP and I also have a website from which I want to stop Spam Bots.

Could some one please suggest how I can write a simple PHP Captcha Script to do this?



New Member
There are many samples that are available with a simple search on Google in the form of e-books and tutorials. Perform a detailed search and use the one that best fits your situation.

One suggestion is you should use latest google captcha which is more secure and functions to stop from spamming for your site.
Last edited:


New Member
I would recommend using the google robot captcha software, its free and works better imho.