Stop bots.
Not your users.

Your website is for visitors, not bots scraping your content. CrowdSec Bot Detection helps you block those bots without getting in the way of your users or verified search engine crawlers. It all runs on your own servers.

CrowdSec Open-Source WAF: How Bot Detection Really Works

The Problem

What is bot detection?

Bot detection helps you differentiate human visitors from automated programs accessing your website. Not all bots are harmful: some help search engines find your content. Telling them apart helps you decide which ones to let in and which ones to block.

The challenge is that many bots can pass for ordinary visitors. They use Chrome, connect through residential IP addresses, and send requests that look legitimate. If they spread their activity across different IPs, they can slip under the radar. That’s why traditional IP reputation or rate-limiting approaches won’t stop them.

Protect your content and your products

Stop bots from copying your content, scraping your prices, or buying up stock to resell. Less abusive traffic means less strain on your servers and more resources to serve your customers.

Protect your website without disrupting the visit

Your visitors are here to browse or buy, not to select images or decipher letters. The check runs in the background. Verified search engine crawlers are exempted.

Make your website more costly to abuse

The proof-of-work challenge requires clients to spend computing resources to access protected pages. For bots solving it at scale, that effort adds up and increases the cost of their activity. Verified bots and excluded routes are exempt.

The Solution

How Bot Detection works

Spot the signs of automation

How it works

The browser handles the check for your visitors

On a first visit to a protected page, the browser completes a small proof-of-work challenge and submits a device fingerprint for analysis. If the browser passes, it receives a cookie that lets the visitor continue browsing. If it fails, access is denied.

What it catches

Spot automation, even when bots try to hide it

Browsers controlled through Selenium, Playwright, or the Chrome DevTools Protocol show signs of automation. Some bots try to erase those signs using stealth techniques: CrowdSec catches those thanks to advanced checks and signals that detect small inconsistencies that slip through the attempts to hide the bot’s true identity. Clients that don’t run JavaScript cannot pass the check either.

Distributed botnets

Switching IPs isn’t enough to stay hidden

CrowdSec analyzes device fingerprints. This helps it recognize the same device profile across different IP addresses and detect activity that request counts alone might miss.

Let helpful bots do their job

Good bots

Claiming to be Googlebot isn’t enough

CrowdSec verifies search engine crawlers and uptime monitoring services using their provider’s IP ranges or reverse DNS. Once verified, they can bypass the browser challenge.

AI crawlers

Your content, your rules, including for AI crawlers

You can allow verified crawlers such as GPTBot, or use the AI Crawlers Blocklist to block listed crawlers at your firewall.

APIs and integrations

Protect your website without breaking your integrations

Common API routes, webhooks, feeds, and static files are excluded from the challenge by default. You can adjust these exceptions or add others to suit your applications.

You set the rules

Tuning

Fine-tune detection and see why access was denied

Use the default configuration, or make it stricter or more permissive to suit your website. When access is denied, you can see which signals contributed to the score and why the check failed.

The rules are open source: you can review each signal’s weight, change it, and add your own signals. You also choose where to run the check, across the whole website or only at key points such as login, signup, or checkout.

Repeat offenders

If a bot keeps trying, you can block it

When an IP repeatedly fails the check or floods the challenge endpoint with requests, CrowdSec can detect that behavior and issue a blocking decision. The remediation component enforces it on your web server or proxy.

Where It Runs

Bot protection on your own servers

With CrowdSec Bot Detection, you can detect bots without routing your website traffic through an external provider. The CrowdSec Security Engine analyzes browser fingerprints within your infrastructure to decide whether to allow access.

Some cloud-based solutions require traffic to pass through their proxy or CDN, or ask you to send them request data. With CrowdSec, you stay in control of the analysis and the access rules.

Works with
  • Apache
  • Nginx
  • OpenResty
  • HAProxy
  • Traefik
  • Envoy

through CrowdSec remediation components · Check compatibility

Share attack signals, keep your logs

If you share signals with the CrowdSec network, you send attack metadata such as the detection scenario triggered, the time, and the IP address. Your logs and the contents of requests stay within your infrastructure.

Benefit from the attacks others detect

The CrowdSec Security Engine receives blocklists built from attacks detected by the CrowdSec community. Your server can then stop listed IPs before they reach the bot challenge. Bot Detection checks the remaining traffic.

Customer Story · MindMax

How MindMax stopped a bot network using residential IPs

MindMax runs websites that are free for the public to use in Finland, with a team of just four people. In September 2026, its online dictionaries faced a scraping attack from hundreds of thousands of residential IP addresses. Each IP sent a single request, using browser-like headers and varying User-Agent values that made the traffic look like ordinary visits.

MindMax deployed CrowdSec Bot Detection with the OpenResty remediation component to check requests before they reached PHP.

Read the full case study
checks initiated in the first week
~1,000,000
of non-human traffic failed or abandoned the challenge
99%+
for real visitors to complete the check, while search engine traffic remained stable
~2 s

Source: MindMax case study.

How It Fits

How it fits into CrowdSec

Bot Detection is built into the AppSec component of CrowdSec’s WAF. Here’s how the components work together:

  1. Visitor request
  2. Step 1

    Remediation component

    Brings protection to your web server. Sends requests that need inspection to AppSec and enforces blocks on your web server or proxy.

    Apache · Nginx · OpenResty · HAProxy · Traefik · Envoy
  3. Step 2

    AppSec

    Checks requests and detects bots. Applies WAF rules and the bot challenge to decide whether to allow access.

    Part of the Security Engine
  4. Step 3

    Security Engine

    Detects abuse and issues blocking decisions. Analyzes detected behavior and generates blocking decisions for remediation components to enforce.

    Free and open source (MIT)
  5. Step 4

    CrowdSec Console

    Brings your alerts together. Lets you see what your engines detect, including Bot Detection results, without checking each engine separately.

    Free

Get Started

Get started with CrowdSec Bot Detection

Set up your environment and start detecting bots on your own servers.

  1. 1

    Create your CrowdSec Console account

    A free account lets you view your engines and their alerts in one place.

    Create my free account
  2. 2

    Install the Security Engine

    You can install it on Linux, Windows, BSD, or in containers.

    See how to install it
  3. 3

    Connect it to your web server or proxy

    Choose the remediation component that works with your environment. It handles blocking on your server or proxy.

    Find the right component
  4. 4

    Enable Bot Detection

    Configure AppSec and install the bot detection collection with this command:

    $ sudo cscli collections install crowdsecurity/appsec-bot-challenge
    Follow the setup guide

The guide walks you through the rest of the setup, including requirements and compatible versions.

The Security Stack

Add more protection to your website

FAQ

Frequently Asked Questions

Is CrowdSec Bot Detection free?

Yes. Bot Detection is part of the AppSec component of the CrowdSec Security Engine, which is free and open source under the MIT license. The CrowdSec Console, where you see your alerts in one place, is free too.

Can it stop bots that use residential proxies?

If I enable CrowdSec Bot Detection, will Google and other search engines still be able to crawl my website?

If I block AI crawlers, will assistants cite my content less often?

Resources

How to block bots, automated browsers, and scrapers on Nginx with CrowdSec
Tutorial

How to block bots, automated browsers, and scrapers on Nginx with CrowdSec

Read the tutorial
PaperPhone: a scraping network uncovered through bot detection
Research

PaperPhone: a scraping network uncovered through bot detection

Read the research

Have a question?

Talk to our team and the CrowdSec community on Discord.

Join Discord