How to protect downloadable files in a remote directory from non-premium users (in php?)
问题 Im building a "premium" section of my site and Im in a need to give download access to files in a remote directly (on a different server), to users with special privileges (accounts stored in mysql db). My site is coded in php/mysql so a php solution would be great. 回答1: direct all download links to a php file that'll do all the credential checking. you can call the file download.php pass along parameters via cookies, get, post, session, or whichever manner you verify privileges. once