How can I show a certain website only in specific country? This includes not showing on search engines outside of that certain country?

Its not about blocking the access, but not showing / visible outside of it.

  • 1
    I'm not sure I completely understand the difference between "not showing" and "blocking." Wouldn't you want to block access from outside the country and show an error message as part of the solution? Commented Apr 20, 2023 at 9:45
  • in my understanding, "blocking" means people can still search our website (in the search engine) but cant access it... however what we intended to do is to not be "visible in the search engine" and we will also definitely block the access
    – MPP
    Commented Apr 21, 2023 at 3:34
  • 1
    Ah, you mean that you don't want to disallow it in robots.txt Commented Apr 21, 2023 at 8:59
  • A point to consider: presumably, you'd be doing some sort of IP level blocking to prevent extra-national traffic to your site. If you're not in the US, that would likely include the spiders for most major search engines. Commented Apr 21, 2023 at 10:13
  • 1
    From experience, I would say that blocking whole countries from visiting a website is generally more trouble than its worth. And unless you have a compelling reason to do so, it would be more appropriate to ensure the content and services are clearly marked as being solely targeted at your domestic audience. Commented Apr 21, 2023 at 10:14

1 Answer 1


I often see messages that say this site is not available in your region, as far as I am aware this is done using the octets within your IP address to determine your location. So it can be done but only at the IP level and not by search engine.

  • There are additional matters about ISP use and access mode - it can be done via proxies and VPN services. It greatly complicates measures based on IP level.
    – Tom Newton
    Commented Jul 16, 2023 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.