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.1.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.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_free_captcha-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 14965f32bb29fd7e08a30d051c59ae54fa7b17d72b93e10b0ca3aba41ce70a1f
MD5 8baea5b5223a05b08cb6967fa70f6181
BLAKE2b-256 cfd8e50f126c0c65eae93219984db74f17a9e02e20536c3f550bcb86f452abdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_free_captcha-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc3eecfe2a6f2752053d6d6a330dd51381295560117927eed17b44f70a24aac1
MD5 3122a9e36bf8108fc3bfa83c8dad2f47
BLAKE2b-256 4a11508eac304d066e5da21000f6ca2e21f3aa037d257f12c7fb3f3c18261789

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