https://github.com/syntaxseed/av-captcha
Simple drop-in PHP Captcha.
https://github.com/syntaxseed/av-captcha
Last synced: 5 months ago
JSON representation
Simple drop-in PHP Captcha.
- Host: GitHub
- URL: https://github.com/syntaxseed/av-captcha
- Owner: syntaxseed
- Created: 2020-03-06T15:51:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-13T15:35:54.000Z (about 4 years ago)
- Last Synced: 2024-12-05T20:24:05.187Z (over 1 year ago)
- Language: PHP
- Size: 249 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AVCaptcha

- Version 1.2.1.
- This is a simple drop-in anti-spam CAPTCHA script written in PHP.
- PHP version 7+, 8.0+, 8.1+.
- It is loosely based on the CodeWalkers.com Simple PHP CAPTCHA (no longer online).
- Provided without any warranty or implication of fitness for any purpose.
- CAPTCHA difficulty (strength) is low to moderate, however custom captchas are usually not already broken by spammers.
- Extend this sample project to build your own captcha!
- You may use and modify this script for any purpose as long as this README.md file and the following line is kept with the script:
Author: Sherri Wheeler (syntaxseed.com). License: MIT.
## Usage
Refer to the example.php file for a complete usage example.
Configuration settings are found at the top of the avcaptcha.php file.
## Fonts
True Type Fonts can be found in various places online. Google's *Viga* font has been included as an example. Recommended to use an unusual font to increase captcha strength. Sans-serif fonts are more difficult.
- Find the .ttf file you desire and place it in the resources/fonts/ directory in this avcaptcha directory.
- Edit the settings in avcaptcha.php to set the correct font file.
## Version History
- 2022-03-13 - Tested for PHP 8.1 (v1.2.1).
- 2022-01-28 - Tested for PHP 8.0 (v1.2.0).
- 2020-03-07 - Updated for PHP 7.3.
- 2020-03-06 - Added to GitHub, improved readme and simplified the code.
- 2009-06-04 - Changed to use a jpg image as a base. Otherwise doesn't work in some environments.
- 2009-02-12 - Removed the need for the external JS file. Now uses inline JS for the reload button.
- 2009-02-11 - Created AVCaptcha.