Forum Moderators: phranque

Message Too Old, No Replies

question about mp3 hotlink

         

caubehandsome

10:46 pm on Dec 7, 2004 (gmt 0)



i have a host for my mp3s,, and i have a forum ( from a different host) how can i made a code that my forum can download the mp3s and the other can not steal it? in my CP of my mp3s host, they have the hotlink protection, i have add the url of my forum but it doesn`t work.. i don`t know why... do they have another way?/ please help me out of this..

jdMorgan

2:31 am on Dec 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



caubehandsome,

Welcome to WebmasterWorld!

The problem is that the players such as Windows Media Player do not provide an HTTP Referer header in their requests. Therefore, any access control based on HTTP_REFERER will fail.

Also, the best you can hope for is that "protecting" your MP3 files means they won't be [i]easy[i] to hotlink to, but that doesn't mean they can't be stolen. Once someone "plays" an MP3, it is in their computer, and can easily be found and saved locally.

You best bet is to write or get a script that sets and checks cookies before allowing access to the pages where your mp3 files are accessible. The script itself should serve the files, which can be placed out of the HTTP-accessible filespace of the server. But these files, once served, can still be saved on the user's computer.

Past that simple level of protection, you'll need to use a streaming media server to actually prevent copies.

Jim

jtdc

2:45 am on Dec 8, 2004 (gmt 0)

10+ Year Member



maybe you don't need the exact URL of the forum added to the cpanel hotlink protect which hosts your MP3 files. instead just put the domain... like

[yourdomain.com...]
[yourdomain.com...]

and not

[yourdomain.com...]