Search
Setup for Free
CD
Cloudflare Developers
•
13mo ago
penny
How to block bad User Agents
I noticed some user agents like python
-requests contacting my site
, and I wanna make sure only legit browsers can contact it
, how do I do that
?
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,498
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
I
Idle
•
12/11/24, 9:52 AM
either through the waf or a UA blocking rule
I
Idle
•
12/11/24, 9:58 AM
https://dash.cloudflare.com/?to=/:account/:zone/security/waf/tools
or
https://dash.cloudflare.com/?to=/:account/:zone/security/waf/custom-rules
I
Idle
•
12/11/24, 10:00 AM
note that even regular browsers allow for useragent manipulation though
.
.
. i wouldn
't solely rely on something as volatile as UA to determine if a request is legitimate or not
P
penny
OP
•
12/11/24, 11:56 AM
thank you
Similar Threads
Any way to check blocked user agents?
CD
Cloudflare Developers / general-help
6mo ago
How to block zero trust connectivity
CD
Cloudflare Developers / general-help
3y ago
how to set rule not block googlebot ?
CD
Cloudflare Developers / general-help
2y ago
How to use cloudflare agents sqlite db with drizzle?
CD
Cloudflare Developers / general-help
4mo ago