It's an example you can create your own index.html file.
-
Create the
index.htmlfile:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Website</title> <script> if (!sessionStorage.getItem("captchaVerified")) { window.location.href = "captcha.html"; } </script> </head> <body> <h1>Welcome to My Website</h1> <p>This is the main content of the site.</p> </body> </html>
-
Create the
captcha.htmlfile: Copy thecaptcha.htmlcontent from the Boters repository. -
Update Redirect in
captcha.html: Modify the redirect URL incaptcha.htmlto point to your main website page:window.location.href = "index.html"; // Change this to your main website page
-
Set Up Email Alerts: In
captcha.html, update the email address to your actual email to receive bot alerts:function sendEmailAlert() { let developerEmail = "your-email@example.com"; let emailBody = encodeURIComponent("🚨 Bot detected on your site! Take action immediately."); window.location.href = `mailto:${developerEmail}?subject=Bot Alert&body=${emailBody}`; }
For a detailed guide and the full code, please refer to the Boters repository.
Here is the link & credit of icons: Boters - Web connection
