php help

Discussion in 'OT Technology' started by wkd, Jun 23, 2008.

  1. wkd

    wkd Member

    Joined:
    Sep 8, 2004
    Messages:
    507
    Likes Received:
    0
    Location:
    Melbourne, Australia
    hi, some people have been linking my website information on to other forums.

    how do i limit access to a certain URL using php. I only want people being referred by a certain url to have access.

    any help would be great thanks.
     
  2. Limp_Brisket

    Limp_Brisket New Member

    Joined:
    Jan 2, 2006
    Messages:
    48,422
    Likes Received:
    0
    Location:
    Utah
  3. EkriirkE

    EkriirkE Zika Xenu OT Supporter

    Joined:
    Jan 11, 2004
    Messages:
    14,799
    Likes Received:
    0
    Location:
    Dublin & San Francisco, CA
    <?PHP
    if ($_SERVER['HTTP_REFERER'] && strpos($_SERVER['HTTP_REFERER'],"www.host.com")!==false) die("Fuck you assholes!");
    ?>
     
  4. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    If you REALLY wanna be rude, put tubgirl/goatse and a message over that.
     
  5. wkd

    wkd Member

    Joined:
    Sep 8, 2004
    Messages:
    507
    Likes Received:
    0
    Location:
    Melbourne, Australia
    thanks, it worked
     
  6. EkriirkE

    EkriirkE Zika Xenu OT Supporter

    Joined:
    Jan 11, 2004
    Messages:
    14,799
    Likes Received:
    0
    Location:
    Dublin & San Francisco, CA
    I did this when someone shared my music folder and then it got web crawled :mamoru:
     

Share This Page