A simple, lightweight PHP CAPTCHA generator that creates random alphabetic codes for securing your HTML forms. This script helps protect against spam bots by displaying image-based verification using randomly generated alphabets.
- captcha.php dynamically generates a random 5-letter string.
- It creates an image using the GD library and outputs it as a PNG.
- The string is stored in a session variable to validate against user input.
PHP CAPTCHA, alphabet CAPTCHA, PHP CAPTCHA form validation, PHP image verification, CAPTCHA anti-spam PHP, captcha.php, PHP form protection, letter-based CAPTCHA, simple CAPTCHA for website
- β Generates CAPTCHA with random alphabets
- πΌοΈ Outputs image-based verification code
- π Helps prevent automated form submissions (bots)
- π‘ Easy to integrate into any PHP form
- π¦ No external dependencies
Link :- View the demo by cloning and running the code locally.
Captcha-Code-Alphabet/ β βββ captcha.php # Generates the CAPTCHA image βββ index.php # Sample form with CAPTCHA βββ style.css # Optional styling (if present)
- JavaScript ES6 or higher
- GD Library enabled (for image generation)
Developed by @Anni-16
This project is licensed under the MIT License - see the LICENSE file for details.
- Clone the Repository
git clone https://github.com/Anni-16/Captcha-Code-Alphabet.git cd Captcha-Code-Alphabet