Captchas remain the most effective, universal method of preventing automated spam currently available on the web. While services like akismetand linksleeve provide valuable protection, they are dependent upon widespread adoption to be successful. When used correctly, captchas just work.
The Problems With Current Captcha Integration
- Captchas require special system configurations / modules (like PHP's GD) that, in most cases, cannot be installed without root access.
- Even with the proper system configuration, programming image creation scripts can be difficult and time consuming.
- Captchas must be changed with some frequency to prevent cracking.
How Does OpenCaptcha Solve These Issues
- It requires no special configurations or modules, it is a simple web service.
- Basic installation is cut-and-paste, and requires no ability to program image manipuation scripts
- New fonts, image algorithms, and distortions applied weekly.
How To Install OpenCaptcha
Installation happens to be quite easy with OpenCaptcha, there are really only 3 steps.
Example PHP Integration
Login Page
Processing Page
Installation happens to be quite easy with OpenCaptcha, there are really only 3 steps.
-
On the form page, dynamically create a filename (http://www.opencaptcha.com/img/{random}.jpgx and print to the screen both an >img< and an >input value={image name}< tag including that name
Tips- Use the current timestamp and your domain name as the random number { 200705041231mydomainname.jpgx }
- Add -{height}-{width} to specify the size { 200705041231mydomainname-80-240.jpgx will make a 80px tall and 240px wide image }
- On the form page, add a text field for the user to enter the Captcha code
- On the processing page, check to see if http://www.opencaptcha.com/validate.php?img={imageName}&ans={users Answer} returns the word "pass" or "fail"
Example PHP Integration
Login Page
<? if($_GET['opencaptcha']=='failed') { echo "<script>alert('You Did Not Fill In The Security Code Correctly');</script>";} $date = date("Ymd"); $rand = rand(0,9999999999999); $height = "80"; $width = "240"; $img = "$date$rand-$height-$width.jpgx"; echo "<input type='hidden' name='img' value='$img'>"; echo "<a href='http://www.opencaptcha.com'><img src='http://www.opencaptcha.com/img/$img' height='$height' alt='captcha' width='$width' border='0' /></a><br />"; echo "<input type=text name=code value='Enter The Code' size='35' />"; ?>
Processing Page
<? if(file_get_contents("http://www.opencaptcha.com/validate.php?ans=".$_POST['code']."&img=".$_POST['img'])=='pass') { // CONTINUE LOGIN } else { header("LOCATION: ".$_SERVER['HTTP_REFERER']."?opencaptcha=failed"); } ?>
Thats it. There is no API, no special configurations or modules and, best of all, you get a powerful, free, highly randomized captcha.
====================================================================================================
reCAPTCHA计划是由卡内基梅隆大学所发展的系统,主要目的是利用CAPTCHA技术来帮助典籍数位化的进行,这个计划将由书本扫描下来无法准确的被光学文字辨识技术识别的文字显示在CAPTCHA问题中,让人类在回答CAPTCHA问题时用人脑加以识别。reCAPTCHA正数位化纽约时报的扫描存档,目前已经完成20年份的资料,并希望在2010年完成110年份的资料。
为了验证人类所输入的文字是正确的,而不是随意输入,有两个字会被显示出来;一个是光学文字辨识软体无法辨别的字,另一个是一个已经知道正确答案的 字。如果使用者正确的回答出已知正确答案的字,那么就假设所输入的另一个光学辨识软体无法辨识的字是认真的检视后被输入而非随便输入
reCAPTCHA 问题的所需的文字图片,首先会由 reCAPTCHA 计划网站利用 Javascript API 取得, 在终端使用者回答问题后,伺服器再连回 reCAPTCHA 计划的主机验证使用者的输入是否正确。 reCAPTCHA 计划提供了许多程式语言的函式库,让整合 reCAPTCHA 服务到现有程式的过程可以轻松些。除非有较大的频宽需求,否则 reCAPTCHA 原则上是一个免费的服务。
相关推荐
java对接google验证码完整示例,函前端引入google api.js与后端校验g-recaptcha-response是否合法的业务逻辑,可正常运行。
google 很牛的Captcha---recaptcha验证码应用 轻松搞定网站验证码 国外大多数网站都使用gg此验证码 很帅的~~ 提供语音识别
Laravel开发-recaptcha reCAPTCHA 验证码的支持 Recaptcha验证码的支持
no-captcha, Laravel 没有 CAPTCHA reCAPTCHA 没有验证码 reCAPTCHA 对于 Laravel 4,使用 v1 分支。安装composer require anhskohbo/no-captcha Laravel 5设置注意这
请下载使用Google的两个插件(gooreplacer和Header Editor)和一个配置文件以解决google reCaptcha验证框
前端开源库-recaptchaRecaptcha,显示并验证Recaptcha验证码
快速将码解决方案服务集成到您的代码中以自动解决任何类型的验证码的最简单方法。 ClickCaptcha 旋转 其他方法 发送/获取结果 平衡 报告 错误处理 安装 该软件包可以与Pip一起安装: pip3 install 2captcha-...
您有过上网时需要你输入验证码,但有时候却显示不出来,从而无法登录的情况吗?试试这个小程序吧,只需要下载解压后双击并重启电脑即可,从此你将看到所有不能显示的验证码。
该 验证码的ASP.NET图书馆 提供了一种直接的方式把一个CAPTCHA测试ASP.NET网站在您,帮助您停止您的网站漫游滥用。 该库包装了 验证码的 空气污染指数。 你可以使用任何图书馆。NET语言,包括C#和Visual Basic。NET...
reCaptcha 验证码加载(中国大陆加载reCapcha验证码油猴脚本).user.js
开源项目-romanyx-recaptcha.zip,Go wrapper for http://www.google.com/recaptcha
谷歌旗下的免费验证码工具recaptcha,若有侵权请直接删除
【浏览器插件】Noptcha v0.1.10,自动识别图片验证码,支持reCAPTCHA和hCAPTCHA
开源项目-haisum-recaptcha.zip,Golang package for google re-captcha
一个易于使用的 CodeIgniter 库,可与 reCAPTCHA 2.0 版(又名 NO CAPTCHA reCAPTCHA)配合使用。 安装 将文件复制到各自的位置。 ##Configuration 打开“ application/config/recaptcha.php ”并将您的站点密钥、...
中国人工智能极客团队MentalTrotter宣布其自主研发的模拟人脑图像识别算法已经成功破解了google的reCAPTCHA验证码,该算法只需要较小的资源但
最全最完整的网站登录ASP验证码CAPTCHA源代码,只需要一个文件,包含多种可参考的源码: asp-captcha-master.zip ASP-Classic-Google-rCaptcha-code-master.zip AspDigitalCaptcha-master.zip ASP版验证码源码完整版...
15000自动图像验证码解决方案在https://AZcaptcha.com上注册帐户以获取您的API密钥和一些免费信用,您需要在列出的解决方案服务之一上创建帐户廉价的验证码解决方案服务仅需$ 0.9 / 1000 recaptcha和$ 0.2 / 1000 ...
没有验证码reCAPTCHA 对于Laravel 4,请使用分支。安装composer require anhskohbo/no-captchaLaravel 5及以上建立注意此软件包支持Laravel 5.5及更高版本的自动发现功能,因此,如果您使用的是Laravel 5.5及更高...