.htaccess

Discussion in 'Programming' started by Sojobo, Oct 2, 2007.

  1. #1
    I have a .htaccess restriction file used for preventing hotlinking.

    But I have been wondering how can I limit the file download to the users only when they are logon to the site.
     
    Sojobo, Oct 2, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    HTTP authentication or sending requests to files to a server side script that acts as the controller (through .htaccess and mod_rewrite) and sending a forbidden status if the user is not logged in.
     
    krt, Oct 2, 2007 IP