Hi I'm trying to allow users to download files from my servers. Files can be hundreds of MB in size and sometimes even a few GB. This is a closed section of the site and i would like to allow only members to be able to DL the files.
I thought of using a download function that uses headers and readfile() or fread(). This way i can check who is the user and send / not send the file. However, this does not seem to work with such big files. Another idea is to use Apache Mod Rewrite and check that the user has the referrer of the download server. I'm assuming that he will only have this if he had access to a link to the file from the server it's self and such a link will only be provided to members. As far as i can think, you can only fake a referrer by writing your own client. If anyone has any ideas or comments I'll be very happy to get them. Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php