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

A simple code to blank all outgoing clicks??

Discussion in 'Cloaking and Content Generators' started by Dreamtripper, Sep 30, 2009.

  1. Dreamtripper

    Dreamtripper Newbie

    Joined:
    Feb 10, 2009
    Messages:
    2
    Likes Received:
    0
    Is there a simple script that will blank all outgoing links on a page? All outgoing links are going to an authority site and need to be blanked. Thanks in advance.
     
  2. drkenneth

    drkenneth Regular Member

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    Link to double meta refresh page which goes to the "authority site."
     
  3. Dreamtripper

    Dreamtripper Newbie

    Joined:
    Feb 10, 2009
    Messages:
    2
    Likes Received:
    0
    Well yeah, but there are around 100 outgoing links. Is there a way to pass the clicked link on to the dmr page??
     
  4. drkenneth

    drkenneth Regular Member

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    Not automatically--you're going to have to change the links. However, you can use 1 centralized DMR script for the redirection:

    Code:
    <?php
    //Grab arguments from the GET string
    $SEC = $_GET['S'];
    $RDIR = $_GET['R'];
    
    //If on second bounce SEC = 1
    if ( $SEC == '1' )
    {
     //Validate (make sure the referer cleared)
     if ( $_SERVER['HTTP_REFERER'] == '' )
     {
       //Landing page
       if ($RDIR == '1')
          $bounce_loc='http://www.target1.com/page/';
       else if ($RDIR == '2')
          $bounce_loc='http://www.target2.com/yay/';
       else if ($RDIR == '3')
          $bounce_loc='http://www.target3.com/yay/';
       else
          $bounce_loc='http://www.targetunspecified.com/yay/';
     }
     else //Bad! dump them somewhere!
     {
       //Dump location (for metas that didn't clear)
       $bounce_loc="http://www.google.com";
     }
    }
    else //First time through--bounce them back!
    {
     $self = $_SERVER['SCRIPT_NAME'];
     $bounce_loc="$self?S=1&R=$RDIR";
    }
    ?>
    
    <html>
    <head>
    <?php
    print("<meta http-equiv=refresh content='0;url=$bounce_loc'>");
    ?>
    </head>
    <body>
    
    </body>
    </html>
    

    Then just link to cloakpage.php?R=3 with the 3 replaced w/ the redirect ID.

    Btw, I haven't tested the code, though I believe the syntax is right. :D
     
    • Thanks Thanks x 1
  5. badd

    badd Regular Member

    Joined:
    Jan 22, 2008
    Messages:
    381
    Likes Received:
    56
    Occupation:
    Innovator
    Location:
    Earth
    i dont think scripts can do the job 100% correct. so u have to allow for a minor percentage of leaked data. why dont u just do DMR, it works just as well as scripts without the technical jargon