Forum Moderators: coopster

Message Too Old, No Replies

Download Page Manager

Redirect hot-linked files to a download page

         

glj12

11:03 pm on May 31, 2011 (gmt 0)

10+ Year Member



Hey all,

I run a database that contains files that may be hot-linked and downloaded directly. I currently use PHP AutoIndexer. I wanted to know if there is a way (a script that may be available) where if an individual clicks on a direct link to a file, that it would be automatically directed to a download page, to commence downloading.

Ideas?

Many thanks in advance!
--glj12

coopster

2:40 pm on Aug 31, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, glj12.

You could contain all the requests in a single folder and write your own handler to process the requests. The real question is, why? The direct request would be logged in your access log, the file will be delivered no matter what -- I am just not seeing any reason for the intermediate processing handler here?

anupamrekha

7:23 pm on Jan 27, 2012 (gmt 0)

10+ Year Member



Hi,
Storing downloadable files in database is generally not a good idea, you can rather store files in a folder on the server and restrict direct access using .htaccess.

Thanks,
Anu

[edited by: eelixduppy at 9:28 pm (utc) on Jan 27, 2012]
[edit reason] no self promotional links, please [/edit]