Hello all,
I am trying to fix a problem. I administer a number of free hosting sites. We allow users to upload multimedia files, but we don't allow hotlinking to these files from outside our network.
I am trying to use mod_rewrite rules and php to require an in-between page before end users can download the multimedia file....
If the referrer is either blank, or not from freesite.com, then I want the url:
to redirect to:
On this hotlink.php page, there will be some advertising, and a link "Click here to download mysong.mp3"
This way, we atleast have the chance to recoup the bandwidth cost for this mp3 (or other binary file).
Can anyone help? Point me to a how-to, or other forum posts from people with similar situations?
Thank you very much for any assistance.
Sincerely,
Jon Wade
I am trying to fix a problem. I administer a number of free hosting sites. We allow users to upload multimedia files, but we don't allow hotlinking to these files from outside our network.
I am trying to use mod_rewrite rules and php to require an in-between page before end users can download the multimedia file....
If the referrer is either blank, or not from freesite.com, then I want the url:
to redirect to:
On this hotlink.php page, there will be some advertising, and a link "Click here to download mysong.mp3"
This way, we atleast have the chance to recoup the bandwidth cost for this mp3 (or other binary file).
Can anyone help? Point me to a how-to, or other forum posts from people with similar situations?
Thank you very much for any assistance.
Sincerely,
Jon Wade