Search
Setup for Free
CD
Cloudflare Developers
Is there a way to disable the `/cdn-cgi/image/` route?
Original message was deleted
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,384
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
A
aaaaaaaaaaaaaaaaa
•
7/7/23, 9:02 AM
Have you thought about a Redirect Rule
. You could detect the hostname as example
.com and then redirect cdn
-cgi
/images
/ to the Worker
? Would that work
?
E
Erisa
•
7/7/23, 12:51 PM
Rules dont apply to
/cdn
-cgi paths except for some very rare exceptions
E
Erisa
•
7/7/23, 12:51 PM
redirect rule on images is one of those exceptions
E
Erisa
•
7/7/23, 12:52 PM
this is actually something ive been meaning to add to the docs
E
Erisa
•
7/7/23, 1:41 PM
Yeah youll be fine
, it should be documented if not for me being unable to find the time
J
joelsz
•
7/7/23, 2:21 PM
You can also use a WAF rule for that matter
, as it applies to any path
Similar Threads
404 on /cdn-cgi/image/ when deploying Astro
CD
Cloudflare Developers / pages-help
2y ago
Security Problems in the url "cdn-cgi"
CD
Cloudflare Developers / general-help
2y ago
Image CDN
CD
Cloudflare Developers / workers-and-pages-help
2y ago