Interesting PHP Redirect Script Usage - How Is This Done?

11 replies
I ran into someone who is using some kind of PHP redirect so that when you type or click on his domain name, it goes directly to an affiliates website. The interesting thing is though, it's coded so that if a search engine visits the site, they will not get redirected and will see the page on his site.

How is this done? Is there a particular redirect script out there that does this?

Is this a legit/ethical thing to do in aff marketing?
#interesting #php #redirect #script #usage
  • Profile picture of the author CyberSorcerer
    There's a number of ways to do this but the easiest is through the 'USER_AGENT' variable to detect if it is a search engine visiting.

    Most search engines though, especially Google, doesn't like when you show them different content than you do a normal visitor.
    {{ DiscussionBoard.errors[3347459].message }}
  • Profile picture of the author CyberSorcerer
    There's a number of places on the internet you could probably get a free script for this.

    You can get an idea of how it's done from here.

    You can also try these script site:

    Hotscript
    Scripts

    You should probably find what you need in either one of those.

    Naturally if you have an outsourced PHP programmer he/she should be able to put something together for you pretty quick with no problem.
    {{ DiscussionBoard.errors[3347687].message }}
  • Profile picture of the author FSchmieder
    Stuff like monsterclicks and wpcloaker are wp-plugins set up to do this, though I think it's frowned upon
    Signature
    Article Marketers: Instantly Leverage Your Work And See An Explosion In Traffic And Sales

    Click Here to discover how
    {{ DiscussionBoard.errors[3347772].message }}
  • Profile picture of the author dudeontheweb
    That technique is called cloaking. A human visitor gets one version of the page, while a search engine spider gets a highly optimized (ugly, not for human consumption) page.

    The easiest way is as stated earlier, is by user agent, but there are now databases of search engine spiders IP addresses out there that are being utilized.

    I would advise strongly not to use cloaking techniques.
    Signature

    Need a QR Code? Check out my QR Code Generator. It's FREE!

    {{ DiscussionBoard.errors[3348107].message }}
  • Profile picture of the author tpw
    If Google finds you cloaking pages, they will ban your domain from their index.

    Just use google to locate "php cloaking scripts".
    Signature
    Bill Platt, Oklahoma USA, PlattPublishing.com
    Publish Coloring Books for Profit (WSOTD 7-30-2015)
    {{ DiscussionBoard.errors[3348153].message }}
  • Profile picture of the author davewebsmith
    Its better to not even get into this practice. Google is the market leader for a reason. Their coders and algorythms are the best of the best.
    {{ DiscussionBoard.errors[3348179].message }}
  • Profile picture of the author iw433
    Not cloaking, just a re-direct. You do that from your cpanel. It is a common practice for CPA You bu a dot info site with the keywords of our CPA offer and re-direct it to your CPA offer.
    Signature

    Bill Skywalker Edwards
    Address-O-Lite

    {{ DiscussionBoard.errors[3348690].message }}
    • Profile picture of the author dudeontheweb
      Originally Posted by iw433 View Post

      Not cloaking, just a re-direct. You do that from your cpanel. It is a common practice for CPA You bu a dot info site with the keywords of our CPA offer and re-direct it to your CPA offer.
      What Paul described is not a simple redirect. It is delivering content based on whether the visitor is a human or a SE spider.

      PHP wise, it would be very easy to do with a simple if() statement.
      Signature

      Need a QR Code? Check out my QR Code Generator. It's FREE!

      {{ DiscussionBoard.errors[3350387].message }}
      • Profile picture of the author Maryleena
        Hi guys

        I know this post is a bit old.. but I think it is still relevent.

        Creating a php redirect script is very, very easy..

        I created a YouTuve HowTo video for you:
        Hope this helps :-)
        Signature
        I see the potential in you...Use it!

        You Need Energy To Be Successful - 30 Day Get More Energy Challenge - Free Video Tip Series

        Visit My Blog: www.marlenekristensen.com
        {{ DiscussionBoard.errors[7428758].message }}
        • Profile picture of the author MrMonetize
          Originally Posted by Maryleena View Post

          Hi guys

          I know this post is a bit old.. but I think it is still relevent.

          Creating a php redirect script is very, very easy..

          I created a YouTuve HowTo video for you:
          Hope this helps :-)
          This isn't what he is asking for. You can change the content of the page depending on whether its a human visitor or a bot. The user agent is whats used as mentioned above. I wouldn't even get into this practice. One coding error and the site is vulnerable. Your normal content is whats ranking on Google for whatever keyword you want, and when a human visitor uses the site a completely different site is shown, usually an affiliate site. One spot check from a Google rep and the hammer will come down.
          {{ DiscussionBoard.errors[7428798].message }}

Trending Topics