Adding Googlebot to HidePostgoogl
-
There is this code in hidepost but it isn’t working. I believe the user-agent is wrong. IIRC, the user agent of googlebot should be Googlebot/2.1 or something.
How do i add it in?
$hidepost_allow_bot = get_option('hidepost_allow_bot'); if ($hidepost_allow_bot == 1) { $useragent = $_SERVER['HTTP_USER_AGENT']; if (stristr('google Googlebot googlebot Googlebot* Googlebot/2.1 msnbot ia_archiver lycos jeeves scooter fast-webcrawler slurp@inktomi turnitinbot technorati yahoo findexa findlinks gaisbo zyborg surveybot bloglines blogsearch pubsub syndic8 userland gigabot become.com', $useragent) !== false) { return $matches[2][$m_id]; }
The topic ‘Adding Googlebot to HidePostgoogl’ is closed to new replies.