Hello,
I would like to block and Redirect all traffic from certain countries (Indonesia/Malaysia) to another domain. Is this possible?
Hello,
I would like to block and Redirect all traffic from certain countries (Indonesia/Malaysia) to another domain. Is this possible?
You can either block or redirect, but not both. To block, you create a WAF Custom Rule (aka Firewall Rule). To redirect to another domain, you use Redirect Rules (beta).
Hi @cbrandt Thank you for your input.
OK so if I would like to redirect all traffic from Indonesia/Malaysia to a completely separate domain, how would I do that? I didn’t understand how and where to implement the rule, from the link you attached.
thanks in advance
You should go to Cloudflare Dashboard > Rules > Redirect Rules, and follow the example provided by the documentation. Here are some other examples you can check to get familiarized with the way Redirect Rules work:
Ok thanks @cbrandt
So if I wanted to redirect all traffic trying to access my site from Indonesia, to another site (for example: differentdomain. com), would this be correct:
That would redirect all requests to a single path (homepage). If that’s what you want, then yes, this should work.
Optionally you may Preserve Query string, if needed.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.