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

Adwords cloaking or redirecting?

Discussion in 'Adwords' started by sampo1time, Jun 28, 2011.

  1. sampo1time

    sampo1time Regular Member

    Joined:
    Nov 15, 2008
    Messages:
    344
    Likes Received:
    282
    I see this guy showing up for all my keywords on Adwords. When I click on his ad I am taken to his "legit" looking site briefly before it redirects to a flog.

    I'm figuring it's some kind of cloaking because the display URL matches the "legit" landing page URL. If you type in the URL manually you will only see the "legit" site.

    It seems that only if your referrer is google (clicked his ad via adwords) you will be redirected to his flog.

    I'm guessing that he's also using some kind of script to only show the legit site to google spiders or whatever google uses to determine the landing page quality. These ads have been running for a few days already.

    Anybody know how to do this or where to get the scripts to do this? I'm not asking for a cracked version or anything I'm willing to pay for it.
     
  2. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    Code:
    <?php
    
    $referrer = $_SERVER['HTTP_REFERER'];
    
    if(preg_match('/google/i', $referrer)) {
    	header('Location: http://flog.com/');
    } else {
    	// show regular content
    }
    
    
    ?>
    
    That's the ultra basic way, it all depends on how elegantly you want to cloak eg. by IPs, by user agents, by reverse DNS, by time of day etc. For example the manual checkers will sometimes send a Google referrer.
     
    • Thanks Thanks x 3
  3. sampo1time

    sampo1time Regular Member

    Joined:
    Nov 15, 2008
    Messages:
    344
    Likes Received:
    282
    Do I just make a index.php with the given code above? And this will keep the manual reviewers and google spider bots for QS goin to my legit landing page and anybody clicking through adwords will see my flog?
     
  4. Vasim Shaikh

    Vasim Shaikh Newbie

    Joined:
    Jul 5, 2016
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male

    How do I implement it with my existing website files? I know how to build a website using HTML but i have 0 knowledge about PHP.