My anime site is run using wordpress and there are some pages that require users to login before they can access the page- the problem with this is that googlebot will also see the page and index the error message. How do I treat googlebot as a registered user so it can access the restricted content?
If you don't want google to index those access denied text why don't you restrict the bot access with robots.txt file?
Already solved this For future reference for others that require it.. <?php if (is_user_logged_in() || eregi("Googlebot",$_SERVER['HTTP_USER_AGENT'])) { is the code I used, pretty simple but does what I need.