I've been looking into various ways to reduce duplicate content on a client's website.
One method I've read about is using some code inline to check whether the client is a certain bot, or not. Using this information I can choose whether or not to display content to the client.
Would this be frowned upon (if detected) in Google's eyes?
Note: this is in-page content inclusion/exclusion. Here's the code (PHP), for information:
One method I've read about is using some code inline to check whether the client is a certain bot, or not. Using this information I can choose whether or not to display content to the client.
Would this be frowned upon (if detected) in Google's eyes?
Note: this is in-page content inclusion/exclusion. Here's the code (PHP), for information:
Code:
if(!strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot")) {
<p>displaythis</p>
}