# Blocking Bot traffic with Zen Firewall

Zen Firewall by Aikido helps you identify and block various types of automated traffic accessing your application. This feature enhances your security measures by providing control over unwanted bot activity.

> **Important**: Bot blocking operates independently of the global "[Blocking/Detection Mode](https://help.aikido.dev/zen-firewall/zen-features/blocking-vs-detection-mode-in-zen-firewall)" setting. When you enable bot blocking, it will always be enforced, even if Zen is in Detection Mode.

## Use Cases <a href="#use-cases" id="use-cases"></a>

* 🛡️ **Protect Server Resources**: Prevent bots from overwhelming your infrastructure with excessive requests
* 💰 **Reduce Costs**: Lower bandwidth and computing expenses by blocking unnecessary bot traffic
* 🔒 **Secure Content**: Protect your intellectual property from automated scraping and copying
* ⚡ **Improve Performance**: Enhance site speed by reducing bot-related server load

## Bot Categories We Detect <a href="#bot-categories-we-detect" id="bot-categories-we-detect"></a>

Aikido groups automated traffic into clear categories so you can decide what to block, allow, or monitor. A full list of specific user agents is available on the [dedicated bot list page](https://help.aikido.dev/zen-firewall/miscellaneous/bot-protection-details).

Examples of the types of categories available:

* **Search & Discovery Bots**\
  Includes traditional search engines, advertisement crawlers, SEO tools, social media bots, and messenger preview crawlers. These bots index, analyze, or preview your content for search, ads, or sharing.
* **AI Crawlers & Assistants**\
  Covers AI search crawlers, AI data scrapers, and AI assistants that browse or extract content to power generative AI systems or respond to user queries.
* **Archiving & Monitoring Services**\
  Includes web archivers and uptime or performance monitoring tools that periodically access your pages.
* **Security & Exploitation Tools**\
  Vulnerability scanners, data harvesters, headless browsers, and other automation tools commonly used for probing, scraping, or abuse.

{% hint style="info" %}
**Tip**: Consider carefully which bot categories to block, as some legitimate services (like Google's search crawler) might be necessary for your site's functionality.
{% endhint %}

## How to block bot traffic <a href="#how-to-block-bot-traffic" id="how-to-block-bot-traffic"></a>

Select a specific app and continue to the **Firewall** tab. Click the "**Manage Bots**" next to "**Manage Bots**" to configure Bot blocking.

![Firewall settings interface displaying attack, Tor traffic, and bot blocking options for a demo app.](https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fcr53q1VrIbsxLldOdQoJ%2FScreenshot%202025-08-13%20at%2017.20.40.png?alt=media\&token=19d17a5f-fb07-4012-ae4e-71eb4e3e2fcf)

Use the **Bots** view to select the bot types you want to ignore, monitor or block and click on "**Update bots**" when you're finished.

![Interface for selecting and blocking specific bots from accessing your app.](https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FJtT03o35C3vUVrAIX9o8%2FScreenshot%202025-08-13%20at%2017.21.22.png?alt=media\&token=634bd329-8efc-4ef3-a599-38477b7edc14)

{% hint style="info" %}
Note that bot blocking is not immediate; it takes up to a minute for the block to take effect.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.aikido.dev/zen-firewall/zen-features/blocking-bot-traffic-with-zen-firewall.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
