A no-nonsense CAPTCHA system with seamless UX | Backend component
Find a file
2021-05-30 20:26:29 +05:30
.github/workflows test util: update cahce processor & update readme badge 2021-05-29 13:01:15 +05:30
config docs use const routes 2021-05-02 18:36:39 +05:30
docs widget demo video 2021-05-30 20:26:29 +05:30
migrations captcha stats 2021-05-27 14:47:29 +05:30
src cache control 2021-05-30 17:55:11 +05:30
static widget: err handling 2021-05-30 18:54:19 +05:30
templates fixed rm lvl's update legend bug 2021-05-30 12:18:27 +05:30
utils sitekey form mobile styling 2021-05-26 12:36:47 +05:30
.dockerignore rm static from dockerignore 2021-05-30 00:19:22 +05:30
.gitignore rearranged static files 2021-05-29 12:22:31 +05:30
build.rs rearranged static files 2021-05-29 12:22:31 +05:30
Cargo.lock using custom version of actix-codegen and cors for pow routes 2021-05-25 14:34:24 +05:30
Cargo.toml show password compoenent 2021-05-15 21:36:52 +05:30
code_of_conduct.md added code_of_conduct.md 2021-05-02 18:13:13 +05:30
Cross.toml cache control 2021-05-30 17:55:11 +05:30
docker-compose.yml deployment instructions 2021-05-30 19:53:53 +05:30
Dockerfile Docker build 2021-05-12 18:23:25 +05:30
jest.config.ts widget: verification works 2021-05-29 21:19:45 +05:30
LICENSE.md licence 2021-03-09 17:49:20 +05:30
Makefile build tools: webpack with typescript and scss compilation 2021-05-05 23:21:59 +05:30
openapi.yaml update openapi spec 2021-04-11 22:59:35 +05:30
package.json widget: verification works 2021-05-29 21:19:45 +05:30
README.md widget demo video 2021-05-30 20:26:29 +05:30
rustfmt.toml get notifications 2021-05-10 15:38:09 +05:30
sailfish.yml frontend integration 2021-04-09 14:21:43 +05:30
sqlx-data.json captcha stats 2021-05-27 14:47:29 +05:30
tsconfig.json addlevelbutton test 2021-05-07 15:21:27 +05:30
webpack.config.js widget: verification works 2021-05-29 21:19:45 +05:30
yarn-error.log registration tests 2021-05-06 13:48:28 +05:30
yarn.lock widget: verification works 2021-05-29 21:19:45 +05:30

mCaptcha Guard

Back-end component of mCaptcha

Documentation Build dependency status codecov
AGPL License Chat

STATUS: ACTIVE DEVELOPMENT

Guard is the back-end component of the mCaptcha system.

mcaptcha-in-action


mCaptcha uses SHA256 based proof-of-work(PoW) to rate limit users.

When a user wants to do something on an mCaptcha-protected website,

  1. they will have to generate proof-of-work(a bunch of math that will takes time to compute) and submit it to mCaptcha.

  2. We'll validate the proof:

    • if validation is unsuccessful, they will be prevented from accessing their target website
    • if validation is successful, read on,
  3. They will be issued a token that they should submit along with their request/form submission to the target website.

  4. The target website should validate the user-submitted token with mCaptcha before processing the user's request.

The whole process is automated from the user's POV. All they have to do is click on a button to initiate the process.

mCaptcha makes interacting with websites (computationally)expensive for the user. A well-behaving user will experience a slight delay(no delay when under moderate load to 2s when under attack; PoW difficulty is variable) but if someone wants to hammer your site, they will have to do more work to send requests than your server will have to do to respond to their request.

Why use mCaptcha?

  • Free software, privacy focused
  • Seamless UX - No more annoying CAPTCHAs!
  • IP address independent: your users are behind a NAT? We got you covered!
  • Automatic bot throttling:
  • Resistant to replay attacks: proof-of-work configurations have short lifetimes(30s) and can be used only once. If a user submits a PoW to an already used configuration or an expired one, their proof will be rejected.

Demo

Demo servers are available at:

Core functionality is working but it's still very much work-in-progress. Since we don't have a stable release yet, hosted demo servers might be a few versions behind master. Please check footer for build commit.

Feel free to provide bogus information while signing up(project under development, database frequently wiped).

Self-hosted:

Clone the repo and run the following from the root of the repo:

$ docker-compose -d up

It takes a while to build the image so please be patient :)

Development:

See HACKING.md

Deployment:

See DEPLOYMENT.md

Configuration:

See CONFIGURATION.md