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

Advice needed with Google Cloaking

Discussion in 'Cloaking and Content Generators' started by richrich123, Mar 25, 2012.

  1. richrich123

    richrich123 Newbie

    Joined:
    Mar 25, 2012
    Messages:
    7
    Likes Received:
    3
    Hello,

    I have seen this snippet of code below on a few places which claims to need to be added to the .htacess. i have tried this but all that happens is my index page then gives a 500 internal server error as soon as the code is added to the .htacess

    Has anyone got any ideas why this is not working.

    Cheers
    Rich

     
  2. blueguilt

    blueguilt Junior Member

    Joined:
    Mar 15, 2012
    Messages:
    100
    Likes Received:
    2
    Location:
    California
    What does this code do?
     
  3. cacoleman1983

    cacoleman1983 Newbie

    Joined:
    Aug 16, 2009
    Messages:
    17
    Likes Received:
    1
    Occupation:
    College Instructor / Math Tutor and Inspiring Inte
    Location:
    United States
    Is this to get indexed on Google or for cloaking Google Adwords?
     
  4. pavan

    pavan Elite Member

    Joined:
    Mar 30, 2008
    Messages:
    1,603
    Likes Received:
    432
    chmod .htacess file
     
  5. Amlewis6

    Amlewis6 Newbie

    Joined:
    Jan 25, 2011
    Messages:
    10
    Likes Received:
    0
    I also would like to know what this code do
     
  6. b4br 514h

    b4br 514h Newbie

    Joined:
    Dec 19, 2011
    Messages:
    34
    Likes Received:
    10
    Occupation:
    Occupied makin money
    Location:
    Planet Earth
    hmmm...
    That code is PHP, it's not meant to be put in .htaccess.

    What this code does is it checks if the user agent contains the word "Googlebot". If so, redirects you to "add your domain" else to "add domain".

    Just put the code at the top of your index.php file and it should work.

    You should also, for example, check IP address. This code is not complete.
    Posted via Mobile Device
     
  7. visul

    visul Newbie

    Joined:
    Aug 10, 2010
    Messages:
    21
    Likes Received:
    5
    This is a safe script?
     
  8. Rambaldi

    Rambaldi Registered Member

    Joined:
    Nov 30, 2009
    Messages:
    81
    Likes Received:
    11
    Occupation:
    Programmer
    Location:
    Sweden
    This will get you banned for trying to hide content from Google once your site gets a manual review.

    But until then, have fun I guess :)


    To be safe(r), use an IP based list. This will only detect some of Google's bots even, not all of their bots has this UA.
     
  9. TZ2011

    TZ2011 Senior Member

    Joined:
    Jun 26, 2011
    Messages:
    832
    Likes Received:
    863
    Occupation:
    Cleaning servers
    Am I only one who noticed clearly stated note - Insert the site whose PR you want to fake. ?
    Anyways, This code looks like one of those fake page rank scripts, used by people who want to trick somebody to buy the site or domain for bigger price, mostly on Flippa, presenting fake PR.
     
  10. Question

    Question Registered Member

    Joined:
    Aug 14, 2011
    Messages:
    51
    Likes Received:
    32
    Put this code to the index.php file and it will work
     
  11. roster67

    roster67 Registered Member

    Joined:
    Mar 27, 2012
    Messages:
    69
    Likes Received:
    10
    As stated before, this is php code to be used in php script, nothing to do with .htacess

    Its better than a simple js cloacking but can still be detected by modificate user agent and compare data send. Google use this trick for sure so i would say:
    - No, its not completly safe!

    So how to be completly safe?

    Google's bots have now, from some time, the ability to execute AJAX/JS. Its great for indexing dynamic comments but really bad for cloacking. Except if you know how to trap bots.
     
  12. Articlewriter2012

    Articlewriter2012 Registered Member

    Joined:
    Jan 19, 2012
    Messages:
    55
    Likes Received:
    1
    Location:
    Canada
    To be on the safe side- it is best not to use this and not to count on this. Because you never know if these ever changing google algorithms will Punish your site for this. So it is not worth it.
     
  13. adbox

    adbox Power Member

    Joined:
    May 1, 2009
    Messages:
    658
    Likes Received:
    107
    Home Page:
    b4br is right, this isn't htaccess code and will break htaccess, but it is PHP (notice the <?php ?> code).

    What this code does is detects if the browser useragent contains the string 'googlebot' and if it does then it redirects the bot to a different page with a 301 redirect, trying to send whatever page juice that the original site contains to the redirect domain. In other words it's an attempt to manually focus the measured traffic power from one site to another...

    Let's say you have a blog that get's traffic but you do not care about it.
    I believe the idea is to take the search engine traffic and send it to your money site and increase the perception of your money site's exposure.
    But I'm not certain that's what it's for either...
     
  14. Furious Man

    Furious Man Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 4, 2015
    Messages:
    1,221
    Likes Received:
    174
    anyone tried this script ...it ill work?
     
  15. qcp860

    qcp860 Jr. VIP Jr. VIP

    Joined:
    Dec 16, 2008
    Messages:
    242
    Likes Received:
    76
    Gender:
    Male
    Occupation:
    marketing
    Location:
    PA
    Home Page:
    User agent detection is not a reliable cloaking technique for organic or paid advertising. In addition to Google's set of IPs they will also use shadow bots (spiders coming from locations with DNS not identified to any Google Inc company), partners (malware scanning companies, etc.), and manual reviewers to look at destination URLs and check organic listings. UA detection is overall very weak as a single way for detection. Use a commercial cloaker with good tech support that has and maintains a large database of IPs and fingerprints.