I have about 100 domains parked on top of my main domain. I just now finished setting up the first site and created 1 Cache Rule (to prevent caching for certain URI Paths) and and 1 Origin Rule (to block non-US IPs).
It looks like I’ll have to create both rules for every site, though Is that right? If so, I’d end up with 100 Cache Rules and 100 Origin Rules!
Since I’m working with parked domains, the rules would be identical for all of them. Is there a better way to manage the rules?
When you say “parked on top of my main domain” do you mean these are subdomains of a single zone?
In that case it’s easy, for the one zone you can just add one rule and apply to all requests. For cache rules use something that matches everything such as “hostname contains example.com” (your main domain). For origin rules, select to apply to all traffic.
Yes, a zone is a domain name in Cloudflare. I assumed they were all in Cloudflare already as you want to add cache and origin rules to them. You can’t handle those domains with Cloudflare rules if they aren’t in Cloudflare.
Haha, that makes sense, of course I just added one of my smaller sites last night so that I could test it out and get everything working right. So far so good, so my plan is to add all but my largest site tonight for further testing. Once all is well, I’ll add that final site manually (hopefully this weekend).