Forum Moderators: coopster
I have a website with great information but it requires registration before you see the info.
I saw a few sites where search engines can read the whole site but the user is asked to register first.
My site is PHP and I wonder how I can do that, and also if I could be penalized for this?
Can someone help? I am not even sure if I post this under the right forum but...I have no clue what I should do to have this feature :)
Use $_SERVER['HTTP_USER_AGENT'] to get the user agent
As for penalties, I don't know. It would not violate Google's rules regarding cloaking, so I would think it would fine, but I'm no SE expert by a long shot.
it requires registration before you see the info....to this...
You can easily check the user agent and ip range as suggested and let them pass to any page you choose without requiring registration. One caveat is that your pages will be crawled and indexed, but when someone clicks a search result they will be required to register to view the page. That can be irritating to web surfers. You could test for that and direct the visitor to a registration page.