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.
To limit your site to just the Google search results from visitors from Ukraine, you can set the target country to "Ukraine" with Google. There are two ways to do this:
- Move the site to a country code domain. Ukraine has two such country code domains:
- Set the country target for the site in Google Search Console.
When a site is targeted to a country, it almost never appears in Google for searchers outside of that country. It would only appear in Google outside Ukraine if somebody were to search for the brand name or URL directly.
This wouldn't prevent users from seeing the site if they found it some other way or visited the site directly.