[PHP] Password protected downloads

2004-06-13 Thread Maldiv
Hello,

I want to make a password protected download possibility on my site. I know
how can I handle normal user login, but how can I protect a download from
guests?
I mean if user navigate to www.demo.com/mydownload.zip than he can download
the file without login. How can I prevent this downloads?

Thanks for your help!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Password protected downloads

2004-06-13 Thread raditha dissanayake
Maldiv wrote:
Hello,
 

hi
I want to make a password protected download possibility on my site. I know
how can I handle normal user login, but how can I protect a download from
guests?
 

This question has been often asked in the past, the archives are rich 
with solutions. One solution is NOT to create a direct download link but 
to deliver the file via a php script (fpassthru) that can check login 
status. Another is to use .htpasswd protection you will find lots of 
details in the archives.

--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php