welcome to WebmasterWorld, abdul!
|I set in code that if anyone came from different country it goes to following sub-domain |
how do you identify a visitor from a different country?
how does that affect a visit from googlebot?
i'm guessing googlebot visits are identified as non-pakistan visits and are redirected to the www.int. subdomain and that gets indexed for the world. (all country indexes)
it is possible to geotarget the subdomain of a gTLD but it's not possible to "geo-exclude" content from a specific country's index.
you can forbid requests from a set of IP addresses.
i would suggest your best solution is to put your pakistani content on a .pk ccTLD and get that to outrank naturally your content on the gTLD.
create a pakistani subdomain of your gTLD and geotarget that content while keeping the rest of the world on the .com - essentially the reverse of what you are doing currently.
Or password protect the sub domain..and only allow international ( non Pakistani IP ) visitors to have a password..they can request it by email from you , directly or via a form on the login page on your sub domain..change the password every 7 or 15 days ..make each password specific to each request..
This is how most Pakistani companies deal with the problem of making and displaying "items" to international customers , that would cause "problems" for them, if "some people" at home in Pakistan knew that they were making such things..
This also allows them to check that it is actually a real, existent, legitimate trading foreign business making the request, and not a relative living abroad, of someone in Pakistan, who may be asking for access, just to see what they are "up to"..and maybe make problems for them, with what they find out..
Nearly forgot ..welcome to WebmasterWorld, abdul
Thanks for your replies :-)
But real problem is not to hide it from Pakistani visitors... real problem is to hide it from google.com.pk
I mean to say my boss wanted
www.absdfg.com in google.com.pk
and www.intl.absdfgh.com for rest of the world...
currently we are using IP-Address which redirect foreign visitors from www.absedfgh.com to www.intl.absdfgh.com ... it is working but i don't know why google crawl that int. pages when i did not submit sitemaps, or did any kind of link building or provide search engine anything to crawl them.... except that redirect thing................
googlebot is not visiting from a pakistani ip, therefore googlebot is being redirected to your subdomain.
so googlebot only sees your subdomain and never sees your main domain.
So far there only seems to be one googlebot, and it crawls from the US. You'd expect there to be one from every country, but nobody has seen them yet.
So if you want googlebot to see only the .pk version of the site, you have to put an exception to the redirect. If the visitor is from Pakistan OR from google, show them .pk. If the visitor is from elsewhere AND is not google, show them .int.
This may be a problem if google has already seen .int. And it might be a problem for people outside of Pakistan doing searches that lead to your site.
I agree with you. but for that i need to know search engines' bots IP addresses :-)
i know there are some service who find and sell those IP addresses. well guys thanks for your helpful participation. so far i end the redirection and set a different factor.. hope so it will work
regarding whatever your ultimate technical implementation is - if you serve googlebot differently from a human visitor it will likely appear as cloaking.
Bottom line: You can do some geo-targeting. But there is no way to show different and mutually exclusive results in google.pk and google.somewhere-else, because it is all the same googlebot crawling from the same IP.
set a robots.txt file in each site root folder which you to hide,tell search engines that you don't want your site crawled,put no follow attribute for particular domain of your site