"Maldiv" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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?

One way is to store all your download files outside of the webroot and/or
protect the directory with .htacces. Then use PEAR's HTTP_Download to serve
the files as a download to the user:
http://pear.php.net/package/HTTP_Download

Hope this helps. Regards,

Torsten Roehr

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

Reply via email to