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.2.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.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_free_captcha-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 b553887496404ac24d0ed0ccab6500d6f285a01a2993866fd85c1d85f9e5a224
MD5 fd652320c745bf0127838c2eacebeb26
BLAKE2b-256 c349a7e5e59291450d61736dc5e69f0b026006e167b8cb5ce978b42ffe0042a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_free_captcha-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bfb8c049b8b431d963fc01fd80d67e0169a089b5eb2b8a2aed5609af884ba94
MD5 7f8da1491b88a508ec3b911a47302324
BLAKE2b-256 975fa8b3a58fd1493693e63c0d5e57880220df3c72607206fb3819b6ba4de40d

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