---
title: "Block Bad Bots Firewall Rule"
description: "Adds a rule to your Vercel Firewall that identifies bots that you might not want requesting your projects."
url: "https://vercel.com/templates/other/block-bad-bots-firewall-rule"
links:
  repository: "https://github.com/vercel/firewall-templates/tree/main/bad-bot-firewall-rule"
  demo: "https://github.com/vercel/firewall-templates/tree/main/bad-bot-firewall-rule"
---

# Block Bad Bots Firewall Rule

Adds a rule to your Vercel Firewall that identifies bots that you might not want requesting your projects.

# Block Bad Bots Firewall Rule

A firewall rule that identifies bots that you might not want requesting your projects.

The rule defaults to the "log action". Set to "Deny" to actually block these bots.

## Consider customization

The generated firewall rule blocks a multitude of bots. Consider customizing the list to your need.

## Attribution

This template is based on the [Nginx Bad Bot Blocker](https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker) project.

## Related Templates

### [Block AI Bots Firewall Rule](https://vercel.com/templates/other/block-ai-bots-firewall-rule)

Adds a rule to your Vercel Firewall that detects common AI Bots.

### [Block WordPress URLs Firewall Rule](https://vercel.com/templates/other/block-wordpress-urls-firewall-rule)

Adds a rule to your Vercel Firewall that blocks common WordPress-related URLs.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
