I guess this must be a very common solition, but I've not found a good solution to it yet.
I work at a University and we (leagally) allow students to download software from out web site. This downloads should of course not be available to anyone, and I've tried various ways of restricting it, but the perfect solution is yet missing.
It's simple. All files are in the download folder. If you're not logged in, you shouldn't be able to access the download folder, nor any files in it.
Some files are HUGE, so downloading via "download.php" would lead to a timeout. Changing this timeout is possible, but it doesn't feel like a good solution.
If possible, I want the ordinary Apache Indexing of the download folder and the download itself handeled outside php, but I'll appreciate any solution you may suggest.