jkenlooper / anti-robot-snippet

Include content into a webpage for just the humans that are not robots.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anti-robot Snippet

Include content into a webpage for just the humans that are not robots.

Note that this is mostly a simple demo app and I didn't include some files to avoid cluttering up the repo. That being said, it should be easy enough to run by pip install -r requirements.txt and adding your google recaptcha public and private keys to your env. See the example site.cfg and update as necessary.

Test files for both the python and javascript code have been included. The javascript test code will need it's own compile step which I left out for now.

Developing

When developing on a local machine it is best to use virtualenv. Get started by running the below commands in this projects directory.

virtualenv .;
source bin/activate;
pip install -r api/requirements.txt;

Run the example app in the foreground and make sure the virtual environment is activated.

source bin/activate;
python src/app.py site.cfg;

About

Include content into a webpage for just the humans that are not robots.

License:MIT License


Languages

Language:JavaScript 64.7%Language:Python 32.2%Language:HTML 3.2%