vincenting / Captcha
Captcha image generator server in Go
Stars: ✭ 152
Labels
Projects that are alternatives of or similar to Captcha
Python Anticaptcha
Client library for solve captchas with Anticaptcha.com support.
Stars: ✭ 137 (-9.87%)
Mutual labels: captcha
Ngx Captcha
ReCaptcha components for Angular. Live preview:
Stars: ✭ 115 (-24.34%)
Mutual labels: captcha
Friendly Pow
The PoW challenge library used by Friendly Captcha
Stars: ✭ 136 (-10.53%)
Mutual labels: captcha
Recaptcha Spring Boot Starter
Spring Boot starter for Google's reCAPTCHA
Stars: ✭ 103 (-32.24%)
Mutual labels: captcha
Express Recaptcha
Implementation of google recaptcha v2 & V3 solutions for express.js
Stars: ✭ 104 (-31.58%)
Mutual labels: captcha
Incapsula Cracker Py3
Python3 compatible way to bypass sites guarded with Incapsula
Stars: ✭ 132 (-13.16%)
Mutual labels: captcha
Captcha
Go package captcha implements generation and verification of image and audio CAPTCHAs.
Stars: ✭ 1,321 (+769.08%)
Mutual labels: captcha
Sinesp
🚘 API em PHP para consultar informações de veículos na base de dados do SINESP Cidadão
Stars: ✭ 137 (-9.87%)
Mutual labels: captcha
Captcha solver
Universal python API to captcha solving services
Stars: ✭ 152 (+0%)
Mutual labels: captcha
Recaptcha Module
🤖 Simple and easy Google reCAPTCHA integration with Nuxt.js
Stars: ✭ 143 (-5.92%)
Mutual labels: captcha
验证码服务
目前在 mac centos6.x ubuntu14 上测试通过
准备工作
依赖安装: golang
imagemagic
验证成功:
pkg-config --cflags --libs MagickWand
go version
没有报错说明安装成功
下载并编译
git clone https://github.com/jianxinio/captcha/
或者 下载 并解压
进入captcha文件夹后运行 source install.sh
Downloading necessary files
这步可能耗时很久,后面留意观察错误,如果下载完后持续报错可能是 imagemagic 安装有误
如果一切顺利,可以看到多了一个 build 文件夹,其中
- bin 为可执行文件夹
- assets 为使用到的静态资源文件夹
- tmp 为缓存验证码文件
除了 build 文件夹外,其他文件不会再被使用
启动
进入到 bin 文件夹,./captcha
即可启动。
见到 Init success.
的提示说明初始化缓存生成成功。此时可以在 tmp 文件夹中看到 100 张验证码。
线上环境请自备守护进程
程序集成
访问 localhost:8001 即可见到验证码内容(格式为 base64(buffer)|result)。
使用时需要先 split('|') 然后将 base64 解密后给前端。
get '/captcha' do
captcha = Faraday.get settings.captcha_server
captcha_arr = captcha.body.split('|')
@session['captcha_result'] = captcha_arr[1]
content_type 'image/gif'
Base64.decode64 captcha.body.split('|')[0]
end
高级配置
BriefDesign 中有详细的设计文档。
config.json 说明:
initial_count 初始化时产生的验证码数量
check_interval 检查使用量间隔
threshold 更新验证码阀值
update_count 更新的验证码数量
如果访问量较大,建议提高 initial_count 以及 update_count
更新配置文件后 reload 操作:
reload 只支持 initial_count 以及 update_count 的修改
操作方法: kill -USR2 pid
开源协议
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].