To hide the external links

Discussion in 'Search Engine Optimization' started by forumbabz, Apr 5, 2008.

  1. #1
    How can I hide the external links ?

    some website use one redirect, to hide the link
    (example online-casinos use this lnk
    http://www.online-casinos.com/goto/bodogcasino.htm for the website bodgocasino .... )

    what I should do ? should I do redirect 301 ?
     
    forumbabz, Apr 5, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dan Schulz, Apr 5, 2008 IP
  3. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #3
    Dan gave you a good pis of advice. another thing you can do is to use tiny url but that would only work if your affiliate link is small.
     
    sultanofseo, Apr 5, 2008 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't trust TinyURL links - and I doubt many average people (ie: your "Joe Sixpack" types) do either.
     
    Dan Schulz, Apr 5, 2008 IP
  5. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #5
    Hello,

    Yes you can do it with PHP:
    Ie:
    Your link:

    yourwebsite.com/redirect.php?get=online-casinos

    On redirect.php file you can write something like:
    <?
    $get=$_GET["get"];
    if ($get=="online-casinos")
    {
    $url="http://www.online-casinos.com/goto/bodogcasino.htm ";
    header("Location:".$url);
    }
    ?>

    Of course you an use the htaccess to write your url to make something like:

    yourwebsite.com/online-casinos/ or
    yourwebsite.com/online-casinos.html

    Then you will get the value online-casinos in your redirect.php file.

    this is a quick example, you can do it dynamic getting information from a database, text file, etc, but it is a quick reference. :=)

    Best regards,
    Jakomo
     
    jakomo, Apr 6, 2008 IP