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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: protecting

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    315
    Thanks
    0
    Thanked 0 Times in 0 Posts

    protecting

    Hi, i'm making a site for a starting DJ, but when i put a song of him online, everybody is able to download it (by looking at the source code and following the url that leads to the .mp3 file. Is there a way to encode it so it's not possible om some other way to make sure people can't rip the music file of the site?
    Help would be greatly appreciated !
    THANX in advance !

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Put it in a password protected directory.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    Registered User
    Join Date
    Sep 2005
    Posts
    315
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That won't help, cause it's meant to work this way:
    People can listen the song, but not download it. If you put it in a password protected map they can't listen it, until they put in the password, but if they put in the password to hear it, they will also be able to download it, or am i wrong?

  • #4
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Use a flash player and use this .htaccess in the mp3 directory.

    Code:
    Order Deny,Allow
    Deny from all
    Allow localhost

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    If they can listen to it they can dowload it. Decide whether you want to allow people to do both or neither.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    Regular Coder Element's Avatar
    Join Date
    Jul 2004
    Location
    Lynnwood, Washington, US
    Posts
    855
    Thanks
    2
    Thanked 2 Times in 2 Posts
    You could use what Kurashu suggested. You could even have the player open a dynamic PHP file with the song opened in it, and if a user access that file, it won't open the music. For example, if they went to the file you could simply do something like:

    PHP Code:

    if($_SERVER['HTTP_USER_AGENT']) {
      die(
    "Blah");

    Don't know if it would work, never tried it.

  • #7
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    If someone can listen to the file, they can record it.
    There are things can stop some people, but nothing to make it impossible.

  • #8
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    Putting it in a playlist will stop a lot of people. It's just a plaintext file with the extension .m3u and the url location of your mp3 in it. It'll stop some direct downloads because it tends to get set up to launch automatically in their mp3 players and I don't think a lot of people realize the format is human readable.

  • #9
    Regular Coder Element's Avatar
    Join Date
    Jul 2004
    Location
    Lynnwood, Washington, US
    Posts
    855
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Thats obvious, but with ALL web design, no matter the purpose you always assume users are regular surfers. I mean if they go out of there way and desperatley want the song illegally then there is not much to stop them, you just have to assume your viewers regular surfers, so you limit what you can a and hope everything works out.

    My friend usually made his own Java player that had the song list built in, so that way they don't see any songs in the applet or anything, but once again if they really wanted to they could use a download manager to download the jar files if you don't have the right APACHE configurations.

  • #10
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by GJay
    If someone can listen to the file, they can record it.
    There are things can stop some people, but nothing to make it impossible.
    True, you can get almost anything if you really want it. But using a flash player and .htaccess file (with a deny from all except localhost) will stop most of anything short of hacking the server or recording it (in which case, you have ambient sound to deal with).

    I'm sure using my method will protect the DJ well enough.

  • #11
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Kurashu
    (with a deny from all except localhost)
    Wouldn't the flash plug-in/player connect from the users PC?
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #12
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Element
    Thats obvious, but with ALL web design, no matter the purpose you always assume users are regular surfers. I mean if they go out of there way and desperatley want the song illegally then there is not much to stop them, you just have to assume your viewers regular surfers, so you limit what you can a and hope everything works out.
    NO NO NO!

    You assume all users are malicous users, and think about ways that you can get round it, for example if you need to stop people spamming you brainstorm ideas. Assuming all users are regular users is very dangerous and is also something that will severly hold you back.

  • #13
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Everything that a person sees in their web browser comes from their computer having been downloaded there first. 99.9999% of visitors will respect your ownership of what you have there and will not try to steal it. There is nothing you can do to stop the other .0001% from taking anything from your site that they decide that they want.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #14
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by felgall
    Everything that a person sees in their web browser comes from their computer having been downloaded there first. 99.9999% of visitors will respect your ownership of what you have there and will not try to steal it. There is nothing you can do to stop the other .0001% from taking anything from your site that they decide that they want.
    I think those figures are a bit misleading but my point is that you cant assume anything. Some sites will get much more in the way of troublesome users compared to other sites. My point is that if you assume all your users are malicious you will write something much more secure than if you assume 1/10,000 people are malicious.

  • #15
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by marek_mar
    Wouldn't the flash plug-in/player connect from the users PC?
    Yeah, but the flash script would access the data serverside. Deny would block the entry of the browser but not the flash script which resides on the server, which is allowed due to allow localhost.

    I'm pretty sure this'd work.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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