A google recaptcha demo in Python(3.7 above suggested) with http.server for backend verification.
- v2 checkbox
- v2 invisible
- v3
You should have registered google recaptcha.
Select the version you want, and please add 127.0.0.1
in your domain for localhost test.
You can get public key and private key from google recaptcha admin.
pip install -r requirements.txt
- Replace public key in the html page (search with
const public_key=
) - Replace private keys in the
server.py
with the version you want.
python server.py
- open the browser and visit the url: http://127.0.0.1:8000/
- choose the version you want to play with
- verify it and check output of python and log in the browser console
Don't use Ctrl+C to shutdown the server cause that will stuck it.
Instead, click the shutdown server
button.