Forum Moderators: phranque

Message Too Old, No Replies

Can I simply DENY FROM

google.co.in

         

Terabytes

3:39 am on Jan 22, 2009 (gmt 0)

10+ Year Member



Is it just that easy to stop viewers from G?
...From any G country?

Any ramifications.... besides it stopping people from googling from a specific country?

Will that even work?

thanks!
Tera

jdMorgan

4:11 am on Jan 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



"Deny from google.co.in" would block google's googlebot from crawling your site using servers in that domain (if they were to start doing so), and prevent google employees in that domain from accessing your site. However, it would not affect anyone using google search results in that domain from accessing your site.

The domain or IP address in "Deny from" refers to the actual computer accessing your site, and not to the referring domain.

You may be looking for an HTTP_REFERER-based access control. This can be done, but it's only 75% effective (just to pick a round number). This is because the HTTP Referer is not a required header, and some users behind corporate or ISP caching proxies, or using 'internet security' software won't send a referer to your server. For example, all AOL and Earthlink customers connect through caching proxies, and you won't see a referrer for many of their requests.

On the other hand, you could use a service such as GeoIP to block access from any IP address assigned to that country. Since IP address assignments are made on an 'as-needed' basis, the relationship between "country" and IP address is very complex and ever-changing, so that's why it takes "a service" to keep up with it.

So no, it is not "just that easy"...

Jim