Boters is an advanced security shield that prevents bots from accessing your GitHub Pages site. It works like Cloudflareβs βChecking Your Browserβ page, ensuring only real users can enter while blocking automated bots.
Icons credits : Icon by Creative Squad
β
Pre-Website Verification β Users must pass CAPTCHA before the main website loads.
β
Mouse Movement Detection β Bots that donβt move the mouse are automatically blocked.
β
Hidden Honeypot Trap β Invisible input field that only bots fill, leading to auto-failure.
β
Checkbox & Delay Verification β Ensures human interaction before proceeding.
β
Loading Animation & Smooth Redirect β A Cloudflare-style security experience.
β
Email Alert for Bots β If a bot is detected, an email alert is sent to the developer.
β
100% Free & Open-Source β Works directly on GitHub Pages without paid services.
git clone https://github.com/YOUR-USERNAME/YOUR-REPO.git
If you donβt have a repository yet, create one on GitHub and upload the files.
main
branch and Savehttps://yourusername.github.io/yourrepo/
Edit your index.html
file and add this inside <head>
:
<meta http-equiv="refresh" content="0;url=captcha.html">
β Now, when someone visits your website, they will first see the Boters verification page before being redirected to the main site.
If you want users to see CAPTCHA only once per session, use this method:
index.html
<script>
if (!sessionStorage.getItem("captchaVerified")) {
window.location.href = "captcha.html";
}
</script>
captcha.html
Once the user passes verification, set a session variable before redirecting:
sessionStorage.setItem("captchaVerified", "true");
window.location.href = "index.html";
β This way, users wonβt see CAPTCHA again if they refresh the page!
If a bot is detected, an email alert is sent to the developer.
captcha.html
and Update the Email Address: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}`;
}
β
Replace "your-email@example.com"
with your actual email to receive bot alerts!
captcha.html
)To create a Cloudflare-style verification page, follow these steps:
captcha.html
in your GitHub repository.captcha.html
as needed:
window.location.href = "index.html"; // Change this to your main website page
πΉ Customize CAPTCHA text, animations, or redirect URL in captcha.html
.
πΉ Modify the design, colors, and layout for a unique look.
πΉ Ensure email alerts work by setting the correct developer email.
β Works directly on GitHub Pages (No backend required!)
β Prevents spam, bots, and fake traffic
β Easy to set up and modify
β 100% free and open-source
```<!DOCTYPE html>
Complete the verification below