Show only IF not Google bot [closed]
This isn’t really a WordPress specific question. However, I recently wrote a function for this (and blocking other user agents). Perhaps you could use it, or some of it?: function is_a_bot(){ $is_bot = false; $user_agents = array( ‘GTmetrix’, ‘Googlebot’, ‘Bingbot’, ‘BingPreview’, ‘msnbot’, ‘slurp’, ‘Ask Jeeves/Teoma’, ‘Baidu’, ‘DuckDuckBot’, ‘AOLBuild’ ); $user_agent = $_SERVER[‘HTTP_USER_AGENT’]; foreach ( $user_agents … Read more