Realistic reCAPTCHA lookalike widget for any web project
https://75a.github.io/fake-captcha/
- Copy the
imagesandsrcdirectories to your project - Put the following inside the
<head>tag:
<link href="src/fakerecaptcha.css" rel="stylesheet">
<script defer src="src/fakerecaptcha.js"></script>
- At the location where you'd like the fake captcha to be, put the HTML code from fakecaptcha.html
Contents of the verifying window is to be set inside the <main> tag
Clicking at the "Verify" button triggers the verifyCaptcha() function in the src/fakerecaptcha.js.
You can define the function however you want. If you wish to close the verification window upon that action, just call
closeVerifyWindow(), which will cause the widget to refresh itself and close the window.