Skip to main content

A zero JavaScript Captcha solution.

Project description

image

This is a FOSS Captcha generator designed for websites not using any JavaScript or WebAssembly. The challenge is simple: name the farthest away shape on the image.

Suggestions are welcome. As of right now this is a very hacky solution.

A simple test page is at your service if you would like to see what the CAPTCHAs look like.

Usage:

HTTP API:
    Launch the API server (make sur you use your desired port) using:
        freecaptcha.run_api_server(port)
    Requests are formated as follows:
        [JavaScript]
        fetch('/new_captcha?grid_size=8&noise_level=3&return_mode=http');
    And responses as follows:
        [JavaScript]
        {
        "captcha_image": img_base64,
        "answer": solution (a string, such as "square")
        }

Python library:
    Simply import freecaptcha and call the following:
        [Python]
        image, solution = freecaptcha.generate_captcha(grid_size, noise_level, image_generator.RETURN_MODE_RETURN)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_free_captcha-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_free_captcha-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file py_free_captcha-0.1.0.tar.gz.

File metadata

  • Download URL: py_free_captcha-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for py_free_captcha-0.1.0.tar.gz
Algorithm Hash digest
SHA256 73b5842d4e1def95bb94fedcfbe88589259ffa9fc7116889fc02a16d669b84a8
MD5 ff07c8bb2700a25e57da2ac49fbd1e54
BLAKE2b-256 b34b8fc841cb3e4b055b4a2296a38c512205d4bc29a272774f5684870bf85a79

See more details on using hashes here.

File details

Details for the file py_free_captcha-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for py_free_captcha-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c46d1e5d98833c49d147568f3db90bff4e628799fd528ccb0dda41c97fda645f
MD5 97adb7d01039aefa6e498e9e00e991ec
BLAKE2b-256 d1dfa388030f193b49eb0dd058795247ad801912e3c79d2d253606d8591f546f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page