Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Renaming a folder for each download

Tags:

php

download

EDIT: We allow our product download after submitting a simple form.

To avoid the owners of "illegal websites" learning where our product downloads are located, I was thinking about renaming the download folder after every download.

How can I do this in PHP?

like image 905
abenci Avatar asked Dec 10 '22 08:12

abenci


1 Answers

Instead, verify an authenticated session and then stream the download via PHP.

Then if any illegal website tries to download your file, they will find they need to be authenticated first.

like image 106
alex Avatar answered Dec 11 '22 22:12

alex