Pangolin 1.26 can switch on CrowdSec bot detection during install. With it on, every browser solves a short, invisible check before it reaches a resource behind Pangolin, and scripts and headless browsers are turned away at the proxy. It suits self-hosted apps that only people should use, and it needs a little planning for anything that isn’t a browser.
The Pangolin team explains the setup step by step in How to Block Bots With CrowdSec and Pangolin. This article covers what to check before you turn it on, and how to tell it’s working. Bot detection is available to all CrowdSec users, in alpha.
What is Pangolin?
Pangolin is an open-source access platform: a reverse proxy with tunnels and identity-aware access, built on Traefik, that you can self-host. Its installer can set up CrowdSec next to Traefik, so every request goes through the CrowdSec bouncer plugin and its WAF (the AppSec component). We covered that pairing in Web Defense with Pangolin and CrowdSec.
What does bot detection add?
The rest of the CrowdSec WAF looks at what a visitor does: the payloads and patterns in their requests. Bot detection asks what the visitor is: a real browser or a script pretending to be one.
When a request arrives without a valid challenge cookie, CrowdSec answers with a challenge page instead of your app. The browser solves a small proof-of-work puzzle and sends back a device fingerprint. If both pass, it gets a cookie and goes through. Pangolin’s setup keeps that cookie for 12 hours, so people aren’t challenged on every page. If the fingerprint gives away automation (WebDriver, Playwright, or a headless browser, for example), the request is rejected.
Two more things come with it:
- Good bots still get in. Verified search engine crawlers and uptime monitors are recognized and let through without a challenge. A scraper that only calls itself Googlebot is still challenged.
- Repeat offenders get banned. Clients that keep probing are turned into regular CrowdSec decisions by the scenarios bot detection installs, so the bouncer blocks them, not just their single request.
What should you check before turning it on?
Run through this list first. It takes five minutes and saves a confusing afternoon:
- Your bouncer version: On an existing install, use the CrowdSec Traefik bouncer plugin
v1.8.1or newer. An older bouncer doesn’t support the challenge and will likely refuse every client. - Your non-browser clients: Bot detection sits in front of every resource that goes through the CrowdSec middleware, not just one. Anything that can’t run JavaScript and keep a cookie fails the check: mobile apps for a self-hosted service, API clients and
curlscripts, webhooks from other services, media and sync apps. Exclude their paths or allowlist their IPs before you switch it on, or keep bot detection off for that setup.
How do you turn it on?
On a new install, follow Pangolin’s quick install guide, then run the installer with CrowdSec:
./installer --crowdsec
After you confirm the CrowdSec install, the installer asks whether to enable CrowdSec bot detection (alpha). Answer yes. It adds the crowdsecurity/appsec-bot-challenge collection and loads the bot detection rules next to the default ones.
On an existing install, update the bouncer plugin, add the collection to the CrowdSec container, and load the crowdsecurity/appsec-bot-* configs in your AppSec acquisition file. Pangolin lists the exact edits in their article and in their CrowdSec guide, and our docs explain each part in Enable bot detection.
How do you know it’s working?
Open one of your resources in a private browser window. You should see the challenge page for a second, then your app. A plain request from the command line should get the challenge page back instead:
curl -i https://app.example.com
To see what was rejected and why, list the bot detection alerts:
docker exec crowdsec cscli alerts list --kind bot-detection
Each alert lists the signals behind the verdict, such as webdriver or cdp, so you can tell a real bot from a client you forgot to exclude.
Where does it fit with Pangolin’s other controls?
Bot detection decides whether a visitor is a real browser. It doesn’t decide who they are. Pangolin still handles that with authentication (SSO, passwords, passkeys) and access rules by IP, path, or country. CrowdSec’s IP reputation and WAF rules keep blocking known attackers and exploit payloads, with or without bot detection.
Together, a request has to come from an acceptable IP, pass the bot check, and then sign in before it reaches your app.
FAQ
Do visitors have to click anything?
No. The check runs in the background. People see a short interstitial page, usually for a second or two, then the page loads.
Will it block search engines?
Not verified ones. CrowdSec recognizes search engine crawlers by their published IP ranges or a reverse DNS check, and lets them through. Crawlers that only claim to be a search engine are still challenged.
Why is my mobile app or API client blocked?
Bot detection challenges any client that can’t run JavaScript and keep a cookie, apart from verified good bots like search engine crawlers. Mobile apps and API clients usually can’t, so exclude the paths they use or allowlist their IPs (path exclusions in the docs). If that isn’t practical, turn bot detection off for that setup.
Will AI crawlers and assistants be blocked?
CrowdSec has a ready-made exclusion, crowdsecurity/appsec-bot-challenge-exclude-ai-crawlers, that lets verified AI crawlers and assistants through; the hub page lists exactly which ones. Verified means the request comes from the vendor’s published IP ranges or passes a reverse DNS check, so a scraper that only claims to be one of them is still challenged. Keep the exclusion if you want your content to show up in AI answers, or leave it out to challenge them all. It’s completely customizable as described in the documentation section: known bots in the docs.
Does it work with other proxies than Pangolin?
Yes. Bot detection works with CrowdSec’s Traefik, NGINX, Apache, OpenResty, HAProxy, and Envoy bouncers. For HAProxy, see CrowdSec bot detection with HAProxy.
How do I turn it off?
Remove crowdsecurity/appsec-bot-* from the AppSec configs and restart CrowdSec.



