limit subdomains

does anyone know how to make a rule where only certen ips are allowed on a subdomain wihtout effecting other subdomains or the main domain
2 Replies
Damo
Damo2mo ago
Hi there, I would recommend using Security > WAF > Custom Rules - you could create a rule that looks like this hostname EQUALS 'yoursubdomain.example.com' AND IP source adress IS NOT IN (list your IPs here) Action: Block
Damo
Damo2mo ago
Cloudflare Docs
Create a custom rule in the dashboard · Cloudflare Web Application ...
When you select the Block action in a rule you can optionally define a custom response.

Did you find this page helpful?