How to use image files stored in a password protected folder in my site?

Discussion in 'PHP' started by umei1000, May 4, 2008.

  1. #1
    i had stored my images on a password protected folder, inorder to protect it from downloading. how can i use that images on my site?
     
    umei1000, May 4, 2008 IP
  2. misja

    misja Active Member

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    95
    #2
    You shouldn't put your images in a password protected folder but in a folder with a .htaccess mod-rewrite script that checks if the referer is allowed (so it checks if the visitor is on your site). If the visitor is not allowed you can show another deny image instead.

    This script generator seems to be doing that:
    http://isnoop.net/dev/mod_rewrite.php
     
    misja, May 4, 2008 IP