everytime I download something from some website, I get redirect to a different page than it says that “the download will start in 5 seconds, or click this link”
I’m also building a site now where authenticated users should be able to download some files
I would like to know what are things that need to be considered when building a download page ?
(probably something like anti-bots that would download the same file for 100 times etc.)
It depends on how many users controls do you want to add…
1) You can add a captcha control for every download attempt
2) You can “show” it only when some user (identified by IP) download N files, simply get the IP and add into a database (for history pourpose) with date time, if a user try to download another (or the same) file in less than X time you can show a captcha or block the download.
3) considering what you wrote in the answer I suppose that you know how to create a downloader.php that send the file itself and not the direct link to the file.
Best way I know to protect a file from unauthorized access/download is to put it into a folder not reachable from web, using php to load it and let the user download, or copy it to a temporary directory accessible from web and give the user the tmp link (created dinamically).
In the second case you need to clean the tmp directory once in a while