I'm looking to control AI protection settings in Cloudflare at the subdomain level. I want to restrict certain subdomains while allowing others. What's the best way to go about this?
1 Answer
You can definitely use page rules to customize the AI protection for specific subdomains. Just create a rule to block AI for the subdomains you want restricted, and then set up a separate rule to allow the others. Remember, the order of the rules matters—Cloudflare applies the first match it finds. Alternatively, if you're up for it, you could implement Cloudflare Workers to add a layer of logic that checks the hostname before AI protection kicks in.

Thanks for the tip! I hadn't thought about using page rules for this even though I’ve used them before for other things.