Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAP Captcha Demo with Flask

Cap is a lightweight, modern open-source CAPTCHA alternative using SHA-256 proof-of-work

Setup

This project uses UV, so just install uv and run uv sync to install the dependencies.

After doing thaht, start or create the cap server with this docker command or create your own docker-compose.yml file.

docker run \
  -p 3000:3000 \
  -v $(pwd)/cap-standalone:/usr/src/app/.data \
  -e ADMIN_KEY=your_secret_key \
  tiago2/cap:latest

Then just go to the Cap dashboard (eg. http://localhost:3000) and log is with your_secret_key as the password.

Then click on Create Key, set a name and optionally configure the captcha options.

When creating the key you should see the generated Key ID and Key Secret in the dashboard.

Copy these and set them as CAP_KEY_ID and CAP_KEY_SECRET in the .env file.

For the .env file, just copy/ rename the .env.example file to .env and set the variables and other configuration options.

Running

Just run python main.py to start the flask server and type some random stuff in for the username and password and click on the I am Human button, if you are a human.

About

CAP Captcha Demo using python (flask)

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages