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

[REQ] Need Script to MAKE SURE Referrer is Blank

Discussion in 'Black Hat SEO Tools' started by cypionate, Oct 8, 2010.

  1. cypionate

    cypionate Power Member

    Joined:
    Jun 13, 2008
    Messages:
    659
    Likes Received:
    691
    This is such a simple request for a simple script but through my mess of a hard drive I can't seem to find anything at the moment. Can someone please send me a redirect script that MAKES 100% sure the referrer is blanked?

    Thanks in advance!

    Cyp
     
  2. xhpdx

    xhpdx Regular Member

    Joined:
    Sep 21, 2008
    Messages:
    331
    Likes Received:
    2,160
    Occupation:
    Coder
    Location:
    EU
    You can use this
    Code:
    <?php
    // referer is blank
    if($_SERVER['HTTP_REFERER'] == "")
    {
    header("Location: http://somewhere");
    }
    // referer is not blank
    else {
    header("Location: http://nogo");
    }
    ?>
     
  3. angelas111

    angelas111 Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 4, 2009
    Messages:
    1,570
    Likes Received:
    1,016
    Location:
    ohio
    does that one work on all browers? where do you put it? in the header?
     
  4. xhpdx

    xhpdx Regular Member

    Joined:
    Sep 21, 2008
    Messages:
    331
    Likes Received:
    2,160
    Occupation:
    Coder
    Location:
    EU
    Yes it does. PHP is server based so the browser does not matter. If put on top of the file it will execute before other code
     
  5. JesusBack

    JesusBack Executive VIP Premium Member

    Joined:
    Sep 15, 2010
    Messages:
    1,159
    Likes Received:
    1,284
    Occupation:
    Almost done :D
    Location:
    {calm|cool|collected}
    <?php if(isset($_SERVER['HTTP_REFERER'])) die("yeah you mad"); ?>