Redirect traffic based on IP Geolocation


I’ve recently set up my site on Cloudflare.
I need to redirect all traffic from India landing on
to the page -

Can you help me with some page rules or any other way via which I can redirect the traffic as per the given requirement.


On Cloudflare you can do that only with Workers. The easiest way will be to implement that on your origin by evaluating the CF-IPCountry header and perform the redirect if it contains the value “IN”.

Can you please guide me on how can I implement the above solution (CF-IPCountry header).

IIRC there should be a few similar examples here on the forum. You will find them if you use the search.

However, generally, that would be slightly beyond the scope of the forum.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.