9 free bot detection tools for your website in 2026
Open-source and free options for blocking scrapers, AI crawlers, and headless browsers, including the one my team makes. The best free bot detection tool depends on where you can put it. If your site is already on Cloud
Open-source and free options for blocking scrapers, AI crawlers, and headless browsers, including the one my team makes.
The best free bot detection tool depends on where you can put it. If your site is already on Cloudflare, start with Bot Fight Mode. If you run your own server, look at Anubis, CrowdSec, BunkerWeb, or SafeLine. If you only need to protect a form, use Turnstile, ALTCHA, or Cap.
I work on the marketing team at CrowdSec, so one of these nine tools is ours. I put them in alphabetical order within each group, and I built the list from each project's own documentation. It isn't a lab test.
Quick picks
- Already on Cloudflare: Cloudflare Bot Fight Mode
- AI crawlers hammering a small self-hosted site: Anubis
- Bot detection plus a WAF on the web server you already run: CrowdSec
- A new web server with security built in: BunkerWeb
- A reverse proxy WAF with a bot challenge: SafeLine
- Sign-up and contact forms: ALTCHA, Cap, or Cloudflare Turnstile
- A bot signal inside your own JavaScript: BotD
Tools that protect your whole website
1. Anubis
Anubis sits between your reverse proxy and your site and makes visitors pass a challenge before they get in. It was built to protect small sites from AI crawlers.
- Best for: self-hosted sites overwhelmed by AI scrapers
- License: MIT
- Good: lightweight, and focused on one job
- Watch out for: you need one instance per service, and it blocks many AI crawlers by default, so check its settings if you want to allow some of them
- Link: https://github.com/TecharoHQ/anubis
2. BunkerWeb
BunkerWeb is a web server based on NGINX with a WAF built in. Its antibot feature can ask visitors for a cookie, JavaScript, or CAPTCHA challenge.
- Best for: people setting up a new web server or reverse proxy
- License: AGPL-3.0
- Good: you choose the type of challenge, and the OWASP Core Rule Set is included
- Watch out for: antibot is off by default, so you have to turn it on
- Link: https://github.com/bunkerity/bunkerweb
3. Cloudflare Bot Fight Mode
Bot Fight Mode comes with Cloudflare's free plan. It spots traffic that matches known bots and gives them a challenge that costs computing power.
- Best for: sites already behind Cloudflare
- License: proprietary, free plan
- Good: one switch in the dashboard, nothing to install
- Watch out for: it covers the whole domain, you can't add exceptions with custom rules, and it may challenge API or mobile app traffic
- Link: https://developers.cloudflare.com/bots/get-started/bot-fight-mode/
4. CrowdSec
This is ours. CrowdSec Bot Detection is part of the open-source CrowdSec WAF. Each visitor's browser solves a small proof-of-work and sends a device fingerprint in the background. Headless browsers get filtered out, and verified search engine crawlers pass without a challenge.
- Best for: people who run their own Apache, NGINX, OpenResty, HAProxy, Traefik, or Envoy
- License: MIT
- Good: it runs on your own servers, and repeat offenders get blocked by IP
- Watch out for: verified AI crawlers are let through by default, so remove that exception if you want to block them. You also need the CrowdSec WAF running first, visitors need JavaScript and cookies, and you have to exclude some non-browser clients yourself. For a single small site, Anubis does less but is a smaller thing to run
- Link: https://www.crowdsec.net/products/bot-detection
5. SafeLine
SafeLine is a self-hosted WAF that works as a reverse proxy. It includes an anti-bot challenge, rate limiting, and an option that encrypts your HTML and JavaScript on each visit.
- Best for: people who want a WAF and a bot challenge in one reverse proxy
- License: GPL-3.0
- Good: several kinds of bot protection in the same tool
- Watch out for: there are paid editions too, so check which bot features the free one includes
- Link: https://github.com/chaitin/SafeLine
Tools that protect forms and logins
6. ALTCHA
ALTCHA is a CAPTCHA alternative you host yourself. The browser does a proof-of-work in the background, with no cookies and no fingerprinting.
- Best for: forms on sites with strict privacy or accessibility needs
- License: MIT
- Good: server libraries for PHP, Python, Go, Java, Ruby, and more
- Watch out for: it protects the forms you add it to, so scrapers can still read your other pages
- Link: https://github.com/altcha-org/altcha
7. Cap
Cap is another self-hosted CAPTCHA with no puzzles. It combines proof-of-work with browser checks, and you can run it with Docker.
- Best for: a small, simple replacement for a traditional CAPTCHA
- License: Apache 2.0
- Good: no dependencies by default, and it can be set up to stop AI agents
- Watch out for: you host and update the server part yourself
- Link: https://github.com/tiagozip/cap
8. Cloudflare Turnstile
Turnstile is Cloudflare's CAPTCHA replacement. You can use it without putting your site behind Cloudflare.
- Best for: adding bot protection to a form without hosting anything
- License: proprietary, free plan
- Good: unlimited challenges on the free plan
- Watch out for: the free plan stops at 20 widgets, and verification depends on Cloudflare
- Link: https://developers.cloudflare.com/turnstile/
A tool for developers
9. BotD
BotD is a JavaScript library from Fingerprint that detects automation tools in the browser. It gives you a result, and your code decides what to do with it.
- Best for: developers who want a basic bot signal in their own app
- License: MIT
- Good: a few lines of code and no server
- Watch out for: it only catches basic bots, and the maintainers say new features are unlikely soon
- Link: https://github.com/fingerprintjs/BotD
FAQ
What is the best free bot detection tool?
For a site already on Cloudflare, Bot Fight Mode is the quickest. For a self-hosted site, Anubis is a good fit against AI crawlers, and CrowdSec fits if you also want a WAF and IP blocking.
How do I block AI crawlers on a self-hosted website?
Start with robots.txt for crawlers that respect it. For the ones that don't, put a browser challenge in front of your site with a tool like Anubis or CrowdSec. Anubis blocks many AI crawlers by default. With CrowdSec, remove the exception that lets verified AI crawlers through.
Will bot detection block Google?
It can if you set it up badly. Check that your tool lets verified search engine crawlers through, then look at Search Console for crawl errors after you turn it on.
Is a CAPTCHA enough to stop scrapers?
A CAPTCHA on a form protects that form. Scrapers that only read your pages never reach it, so you need a tool that covers the whole site.
I work at CrowdSec. If something here is out of date or unfair to another project, leave a comment and I'll fix it.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.