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

Script advice

Discussion in 'Black Hat SEO' started by kevin09, Dec 6, 2008.

  1. kevin09

    kevin09 Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 15, 2008
    Messages:
    131
    Likes Received:
    58
    Location:
    St.Pete , FL
    I could really use some help . I have a script I got from this form and Im trying to use it all i have is the script using it . Im new to the php it a redirect scipt it redirects 8 times . Do i put it as a html file . Heres the script could someone please help fellas thanks


    <?php
    if(!empty($_GET['id']) && is_numeric($_GET['id']))
    {
    switch($_GET['id'])
    {
    case 1:
    $url = "http://www.linkbucks.com/link/07524bfe";
    break;
    case 2:
    $url = "http://www.linkbucks.com/link/504a07a1";
    break;
    case 3:
    $url = "http://www.linkbucks.com/link/aaeb58c3";
    break;
    case 4:
    $url = "http://www.linkbucks.com/link/e52ae47e";
    break;
    case 5:
    $url = "http://www.linkbucks.com/link/e213e981";
    break;
    case 6:
    $url = "http://www.linkbucks.com/link/19799b35";
    break;
    case 7:
    $url = "http://www.linkbucks.com/link/1ad44786";
    break;
    case 8:
    $url = "http://www.google.com";
    break;
    default:
    $url = "http://www.linkbucks.com/link/e74d151d";
    }
    header("Location: $url");
    }
    else
    {
    header("Location: http://www.linkbucks.com/link/e74d151d/");
    }
    ?>
     
  2. zone69

    zone69 Junior Member

    Joined:
    Nov 24, 2008
    Messages:
    196
    Likes Received:
    1,290
    Just put it into a file with a .php extension and then when you send traffic pass the GET parameter to it to get the redirect you are looking for. You'll of course need to make sure your server supports php.

    For example put in a file called index.php just as you have it. Then when you hit the page hit it like this :

    Code:
    http://yourdomain.com/index.php?id=1
    
    If you hit the page without a GET id value or it is not numeric it will redirect based on your else condition.

    Hope that helps you out.
     
    • Thanks Thanks x 1