$4 for anti-hotlink php script

Discussion in 'PHP' started by tr1x, Jun 21, 2008.

  1. #1
    I can't find one. Give me one that actually WORKS, and I'll give $4 to your PayPal account. PM me.
     
    tr1x, Jun 21, 2008 IP
  2. King Goilio

    King Goilio Member

    Messages:
    200
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    33
    #2
    what do you want exactly and dose it have to be in PHP because i think i can do it in a .htaccess file?
     
    King Goilio, Jun 21, 2008 IP
  3. King Goilio

    King Goilio Member

    Messages:
    200
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    33
    #3
    I can make one so they have to have visited your main site within that session to get the files will this do?
    This will require
    .htaccess
    PHP
     
    King Goilio, Jun 21, 2008 IP
  4. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #4
    Top of homepage
    <?php
    session_start();
    $_SESSION['in'] = true;
    ?>
    PHP:
    Top of image returner:
    
    <?php
    session_start();
    if($_SESSION['in'] !== true) die(header('Location: index.php'));
    ?>
    PHP:
     
    Danltn, Jun 22, 2008 IP