Password protect just one downloadable file???

Discussion in 'PHP' started by 123GoToAndPlay, Feb 2, 2007.

  1. #1
    How would I password protect a downloadable file?

    Besides, the .htaccess solution to protect a folder is there any other solution?

    grt
     
    123GoToAndPlay, Feb 2, 2007 IP
  2. technoguy

    technoguy Notable Member

    Messages:
    4,369
    Likes Received:
    306
    Best Answers:
    0
    Trophy Points:
    205
    #2
    If you are using php then use login script to restrict particular link or page
     
    technoguy, Feb 2, 2007 IP
  3. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use the <FILES> directive to block access also to specific files:
    <Files ~ "^somefile.ext">
    Order allow,deny
    Deny from all
    </Files>
    http://httpd.apache.org/docs/2.0/mod/core.html#files

    HTH, cheers! :)
     
    picouli, Feb 2, 2007 IP