Secure your forms
without the hassle.
A lightweight, customizable, and dependency-free JavaScript CAPTCHA solution to protect your web applications from automated bots. It generates random CAPTCHA images that users must solve to verify their human identity.
Highly Customizable
Configure length, character types (digits, uppercase, special chars), and dimensions.
Lightweight
Zero dependencies. Tiny footprint. Doesn't bloat your bundle size.
- Refresh button to generate a new CAPTCHA
- Simple validation method
- Prevents bots from automated form submissions
- Adjustable CAPTCHA image size
Installation
1. Clone the repository:
2. Include the script in your HTML:
HTML Structure
Add the following markup to your form:
JavaScript Configuration
Customization Options
Modify these settings to customize your CAPTCHA:
| Option | Description | Default |
|---|---|---|
| totalDigit | Number of characters in the CAPTCHA | 6 |
| number | Include numbers in CAPTCHA | true |
| uppercase | Include uppercase letters | true |
| specialsCharacter | Include special characters | true |
| width | Width of CAPTCHA image | 200 |
| height | Height of CAPTCHA image | 50 |
Contributing
If you'd like to improve VerifyJS, feel free to fork the repository and submit a pull request.
License
This project is licensed under the MIT License.