Hi folks,
I want to install some sort of a download security system including a download counter. Whenever someone requests a file from the downloads directory I want it to redirected via htaccess to a php script. This script is supposed to redirect directly to the requested file and increment the download counter. I also want to check the referrer if it comes from my domain or if someone is hotlinking the files.
How can I do something like that? Or would that result in an infinite loop?
The download counting is no problem I just need help with the htaccess redirect.
Thanks!
I want to install some sort of a download security system including a download counter. Whenever someone requests a file from the downloads directory I want it to redirected via htaccess to a php script. This script is supposed to redirect directly to the requested file and increment the download counter. I also want to check the referrer if it comes from my domain or if someone is hotlinking the files.
How can I do something like that? Or would that result in an infinite loop?
The download counting is no problem I just need help with the htaccess redirect.
Thanks!
Comment