DENY direct download of file using php

后端 未结 4 2209
情书的邮戳
情书的邮戳 2020-12-15 14:18

I have .doc and .zip files in download directory on my server. whoever visit my site page (download-file.php) only those user should

4条回答
  •  囚心锁ツ
    2020-12-15 14:27

    If you have a dedicated server the easiest and in my opinion the most secure way is to store the files outside of /var/www/

    You can for example create a folder /var/webdocs/ and store them there.

提交回复
热议问题