---
title: "Can you block bots by user agent?"
description: "Only the honest ones. A user agent rule catches bots that declare themselves, which are usually the harmless crawlers. Traffic built to deceive presents whatever string is most common among your real..."
url: https://blockclickfraud.com/faq-items/can-you-block-bots-by-user-agent/
date: 2026-09-20
modified: 2026-09-20
author: "Block Click Fraud"
type: faq
lang: en
---

# Can you block bots by user agent?

Only the honest ones. A user agent rule catches bots that declare themselves, which are usually the harmless crawlers. Traffic built to deceive presents whatever string is most common among your real visitors, so any rule wide enough to catch it also blocks your customers. Worse, sloppy user agent rules are the most common way advertisers accidentally block Googlebot.

Can you block bots by user agent?[Block Click Fraud](https://blockclickfraud.com/author/block-click-fraud/)2026-09-20T07:09:35+00:00
