Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Because my resource are limited, I need to cut off strangers (inc. USA) for visiting my page. People from the middle of Europe are allowed (Germany, France, Hungary, Poland etc) are allowed. If they are strangers, they will see only a message that they have been restricted for accessing the page. If I restrict them it may lead to get removed or self-banned from the search engines?

Thank you !

share|improve this question

migrated from stackoverflow.com May 18 '12 at 8:58

This question came from our site for professional and enthusiast programmers.

How to you handle European traffic that is routed via US? – hakre May 4 '12 at 22:48

That depends from where the search engines actually crawl your site.

Google, for example, usually crawls from USA, so you would block it from indexing your actual site, if you deny USA IPs.

On the other hand, you can't allow only GoogleBot, because that is considered Cloaking, so you have to be very careful.

One solution would be to use a JavaScript file that blocks access to your site, this file has to be blocked using robots.txt, so Google isn't allowed to read it.

Have a look here: http://productforums.google.com/forum/#!category-topic/webmasters/crawling-indexing--ranking/thqhs2Mrmtw

And here's some general info about Cloaking: https://plus.google.com/u/0/109412257237874861202/posts/EbRoyMnqggQ

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.