Hide site from google search if visitors country is not Ukraine

I want to hide site from another countries but not Ukraine. It has to be hidden in Google search. I heard that it could be done with Cloudflare but I don’t know how to do this.

Blocking non-Ukrainian requests is easy, the tricky part is if you want to block search engines as well. You don’t have a guarantee that Ukrainian Google, for example, will send requests from the Ukraine. And if you block everything non-Ukrainian, you will probably also block Google altogether.

So what is it you want to achieve, block only regular requests from outside the Ukraine or search engines as well?

If you want to block everything non-Ukrainian, just configure a blocking firewall rule.

(ip.geoip.country ne "UA")
2 Likes

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