2022-04-18, 09:56 AM
So the idea here is to make plugin that will do one of these two scenarions when user want to download attachment from the server.
1. If user clicks on attachment name - User will be redirected to download page and wait X amount of seconds before downloading the file and as soon as file starts downloading, that link will become invalid to prevent hotlinking.
2. Next to the attachment name, there will be "Download" button, and when user clicks on it, the button will dissapear and timer of X seconds will start on the place where that button was. When timer runs out, download will be started. Again, some kind of hotlink protection would be nice here.
1. If user clicks on attachment name - User will be redirected to download page and wait X amount of seconds before downloading the file and as soon as file starts downloading, that link will become invalid to prevent hotlinking.
2. Next to the attachment name, there will be "Download" button, and when user clicks on it, the button will dissapear and timer of X seconds will start on the place where that button was. When timer runs out, download will be started. Again, some kind of hotlink protection would be nice here.