Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Security Issue

  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,479
    Thanks
    6
    Thanked 981 Times in 954 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •