1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Detecting Google Bot to hide content - dangerous practice?

Discussion in 'Black Hat SEO' started by RBKing, Dec 6, 2013.

  1. RBKing

    RBKing Registered Member

    Joined:
    Sep 23, 2012
    Messages:
    77
    Likes Received:
    17
    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:

    Code:
    if(!strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot")) {
         <p>displaythis</p>
    }
     
  2. Bartholomew

    Bartholomew Regular Member

    Joined:
    Dec 31, 2009
    Messages:
    290
    Likes Received:
    103
    Home Page:
    It is called cloaking and will work for some time, but your site will be inevitable banned. Even if you detect google bot by IP (I for one have full list of google subnets) they will catch you via Google Toolbar and Chrome browsers of your visitors.
    But for some time, sometimes days sometimes months, it may work.
     
    • Thanks Thanks x 1
  3. RBKing

    RBKing Registered Member

    Joined:
    Sep 23, 2012
    Messages:
    77
    Likes Received:
    17
    Perfect answer, thank you.
     
  4. uworkspain

    uworkspain Registered Member

    Joined:
    Jun 29, 2009
    Messages:
    66
    Likes Received:
    4
    Location:
    San Diego US
    Bartholomew that was a good answer...
     
  5. PrinceVisi

    PrinceVisi Elite Member

    Joined:
    Jan 11, 2012
    Messages:
    1,916
    Likes Received:
    1,009
    Occupation:
    BusinessMan
    Location:
    Tropoja

    Use a spinner like WordAI and remove the duplicates.

    Be safe ;)
     
    • Thanks Thanks x 1