Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm working on my site and as it require users to log in it will be hard to Google to index the sites, because to see 90% of the content you have to be online.

So I've made a script which looks for the ip that enters the site if it is between 66.249.66.1 to 66.249.71.206. So if the ip is between this range, i set "the google bot" as online and it will be able to see all pages a normal user would see.

Is this a good idea? Are there more ip ranges? Can I trust these ip ranges?

share|improve this question
add comment

1 Answer

This is not a good idea and no, you cannot trust these IP ranges. The IP addresses used by Google are not public.

What you are doing is showing one set of content to Google and another to the actual user. This is heavily frowned upon and is called cloaking.

You should watch this: http://www.youtube.com/watch?v=QHtnfOgp65Q&noredirect=1 which is Matt Cutts' definitive cloaking video.

share|improve this answer
    
So you mean that I can't index the content that a user will see when they login? –  Kilise Feb 13 '13 at 13:19
    
Not if you must login to see it. The best option is to take a subset of that content that you are willing to be publicly visible and make a portion of the site that exposes this content to the search engines. –  joesk Feb 13 '13 at 13:21
    
Alright thanks a lot! I have to try to create a script that shows the user (including google) like 20% of the content , and if he want to see more he has to login. Sounds good? –  Kilise Feb 13 '13 at 13:24
    
Yep, that's pretty much it. It help to make sure you have the relevant keywords/phrases etc in the visible content for the search engines. –  joesk Feb 13 '13 at 13:55
    
@joesk is 100% right, many sites will show part of the content to get around this. The only company that is able to get away with cloaking their content currently is Google itself (some of their result content requires a G+ log in). –  RandomBen Feb 13 '13 at 16:26
show 1 more comment

Your Answer

 
discard

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

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