🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/Lokno/click-captcha

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Lokno/click-captcha

v0.0.0-20250228191449-5f1791aedb2d
Source
Go
Version published
Created
Source

Click CAPTCHA - A Visual CAPTCHA for Human Authentication

Click CAPTCHA is a concept PHP implementation of a visual CAPTCHA which requires a single mouse click to authenticate that the user is human. The user must select a circle in a raster image hidden among dashes and like-colored distractors.

The CAPTCHA generates a 320x200 PNG image using PHP. It is a grid of 10x16 cells, in which one is filled with a circle of random hue. A click attempt is sent via AJAX to the server using POST, and compared to the hashed answer. The hash is sent to the page, but it is salted such that an attack could not just try 10x16 positions against the hash. The chance that an informed attacker selects the correct cell at random is 1 / 10x16 = 0.625 percent. The distracting squares and dashes make image processing approach difficult.

Example generated image. The target circle is on the far right, middle:

alt tag

Usage

  • Run example file index.php on a PHP-enabled web server
  • Click the circle in the image
  • If "You're Human" is displayed, onCaptchaSuccess() was called in index.php
  • Otherwise, onCaptchaFailed() is called, and the image is reloaded
  • Modify these methods to change the behavior as desired

Updates

  • 1/12/2014 : Removed reliance on window.event. Implementation now works in Firefox

FAQs

Package last updated on 28 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts