Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-28-2011, 07:09 PM   PM User | #1
steve421
New to the CF scene

 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
steve421 is an unknown quantity at this point
Security Issue

I hope this is in the right section.

i run a few high school athletic sites and just over the past few months they have been going over there bandwidth, they use a mp3 file and after some research i found out that that file is being downloaded thousands of times from foreign sites, almost all from China. Is there anything i can do to stop this, besides removing the audio file? Is there a way to only allow the audio file to be played if its called by some specific code?
steve421 is offline   Reply With Quote
Old 08-28-2011, 08:39 PM   PM User | #2
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
The same principles people use the block image hotlinking could be used to block direct access to your mp3 file. Is this file played from some player on the website?

I haven't tried the output of this tool but it looks like it should work: http://www.htaccesstools.com/hotlink-protection/ Assuming you are on an Apache host. Just use mp3 as the extension instead of the defaults they have in there.
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Old 08-28-2011, 10:07 PM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Also, there is a site with a lot of stupid htaccess tricks including some security improvements. Additionally to hotlink protection you can establish password protection so in case anybody is accessing the file right from your domain you can ask for password.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:55 AM.


Advertisement
Log in to turn off these ads.