How can I prevent visitors from downloading my stuff?

15 replies
I noticed that when I upload an mp3 file to my site anyone who goes to the url for it can download it via right clicking. How can I make it so that visitors can only listen to the file and not be able to download it?

Thanks for your kind help in advance everyone.
#downloading #prevent #stuff #visitors
  • Profile picture of the author cevin
    Try google "html disable right click on my page".
    There is a code to lock the right click on your website.
    I wish I had the code to post it here...
    Signature
    Service computer at AthensPC. Fast laptop repair, qualified technicians, technical support via internet and online computer lessons.
    {{ DiscussionBoard.errors[2741726].message }}
    • Profile picture of the author jminkler
      Originally Posted by cevin View Post

      Try google "html disable right click on my page".
      There is a code to lock the right click on your website.
      I wish I had the code to post it here...
      this is NOT how you protect content, it's only javascript, anyone can turn that off!
      {{ DiscussionBoard.errors[2774544].message }}
  • Profile picture of the author caesargus
    Just because you disabled the right click option does not disable the ability o download the file.

    You can enable password protection or setup a masked URL. So that if it is not part of a page load then it will not allow the download at all. There are options to limit how the file is interacted with, But disabling the right click option will not secure your files.

    If it was me... I would make a masking script that would create a unique key in the database and verify if it has been used. If it has been used then the link is invalid.
    {{ DiscussionBoard.errors[2741824].message }}
    • Profile picture of the author Eddieheli
      Why would you want to do this?
      I always download mp3s then I can put them on my Ipad or Iphone and listen to them on the train.
      If you limit people to only listen online, it means they can only do so when they are at their computer with internet access in a position to listen.
      What if they are in a public place?
      Let them download it and listen at their convenience, they are more likely to listen to what you have to say, and maybe even come back for more.
      You are just potentially cutting off a major part of your market.
      Signature

      Eddieheli -
      "Forget about all the reasons why something may not work. You only need to find one good reason why it will." ~ Dr. Robert Anthony

      {{ DiscussionBoard.errors[2742085].message }}
  • Profile picture of the author copypilot
    you need to have some type of expiring key system in php that will only release the files from a secret location(secured with a .htaccess file) via header functions.

    This is what I did with CopyPilot's file download system, it is somewhat complicated, so ask me about specifics if you would like to know more.
    {{ DiscussionBoard.errors[2752123].message }}
    • Profile picture of the author JoeBurton
      Thanks everyone

      To caesargus and copypilot, could you please explain how to take the measures you've suggested?
      {{ DiscussionBoard.errors[2752355].message }}
  • Profile picture of the author theIMgeek
    Joe, the things that have been suggested by caesargus and copypilot, as far as I understand, are not quite what you're looking for.

    They are talking about protecting access to the page, but still allowing people to download the file.

    It sounds like what you need is a flash based audio player that can play the audio on the page, but not reveal the actual file location.

    Example: Web Wow Tools - Put Streaming Audio On Your Website

    -Ryan
    Signature
    FREE WSO: Protect and Automatically Deliver Your Digital Products

    Ask the Internet Marketing Geek
    <-- Happy to help with technical challenges
    MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
    {{ DiscussionBoard.errors[2753167].message }}
    • Profile picture of the author caesargus
      This is probably a better solution for you since the flash based audio player can prevent your download from being visible (from source code or from the player) ...

      I'm about to board a plane, but you can also look for a .htaccess script that might prevent the user from downloading the file without a referer ... I'd have to do some research to create the exact script to do what you're looking for.

      Originally Posted by RJP View Post

      Joe, the things that have been suggested by caesargus and copypilot, as far as I understand, are not quite what you're looking for.

      They are talking about protecting access to the page, but still allowing people to download the file.

      It sounds like what you need is a flash based audio player that can play the audio on the page, but not reveal the actual file location.

      Example: Web Wow Tools - Put Streaming Audio On Your Website

      -Ryan
      {{ DiscussionBoard.errors[2773880].message }}
  • Profile picture of the author NetMan
    Originally Posted by JoeBurton View Post

    I noticed that when I upload an mp3 file to my site anyone who goes to the url for it can download it via right clicking. How can I make it so that visitors can only listen to the file and not be able to download it?

    Thanks for your kind help in advance everyone.
    Wimpy Website Audio and Video might be exactly what you're looking for

    Best regards,

    Andre Foisy
    {{ DiscussionBoard.errors[2755894].message }}
  • Profile picture of the author deepakg
    Try this script for disabled right click on your webpage

    Code:
    <script language=JavaScript> 
    <!-- 
    
    //Disable right mouse click Script 
    //By Maximus (maximusatnsimail.com) w/ mods by DynamicDrive 
    //For full source code, visit http://www.dynamicdrive.com 
    
    var message="Function Disabled!"; 
    
    /////////////////////////////////// 
    function clickIE4(){ 
    if (event.button==2){ 
    alert(message); 
    return false; 
    } 
    } 
    
    function clickNS4(e){ 
    if (document.layers||document.getElementById&&!document.all){ 
    if (e.which==2||e.which==3){ 
    alert(message); 
    return false; 
    } 
    } 
    } 
    
    if (document.layers){ 
    document.captureEvents(Event.MOUSEDOWN); 
    document.onmousedown=clickNS4; 
    } 
    else if (document.all&&!document.getElementById){ 
    document.onmousedown=clickIE4; 
    } 
    
    document.oncontextmenu=new Function("alert(message);return false") 
    
    // --> 
    </script>]
    {{ DiscussionBoard.errors[2770880].message }}
    • Profile picture of the author Silke
      The right click javascript doesn't stop downloading.
      If I just disable scripting I will be able to download anyway by right clicking.
      {{ DiscussionBoard.errors[2772505].message }}
  • Profile picture of the author ecashbot
    There are numerous scripts that can do that. You can use this meta tag also which you can find at Ecashbot.com site:

    <meta name="MSSmartTagsPreventParsing" content="TRUE" />
    {{ DiscussionBoard.errors[2774038].message }}
    • Profile picture of the author NetMan
      Originally Posted by ecashbot View Post

      There are numerous scripts that can do that. You can use this meta tag also which you can find at Ecashbot.com site:
      Huh???

      That tag has nothing to do with the present topic, it is to prevent Micorsoft to eventually parse its own links though IE on our web pages...
      {{ DiscussionBoard.errors[2774518].message }}
  • Profile picture of the author meganmatthew
    You must be a kind of final a central system that the php file only free in a secret location varmistettu. htaccess file via the header faction file. This is what I did to copy the download system of a pilot, is a bit tricky, it is a best source to get best idea.
    {{ DiscussionBoard.errors[2775607].message }}
    • Profile picture of the author havabutchers
      Hi everyone,

      I'm new to the awesome Warrior Forum and this is my first post, so be gentle

      If you want to stop people downloading your stuff, the best bet IMHO is to first take it out of the document root for your site e.g. move from /foo/bar/public_html/musicfiles to /foo/bar/notforpublicconsumption/musicfiles

      Then use an embedded flash player such as MP3 Player (not a personal recommendation just number 2 in google :S) to play ur music files.

      Hope this was some help, if you need a hand with any coding PM me, my rates are very reasonable, especially for warriors.

      Matt
      {{ DiscussionBoard.errors[2781951].message }}

Trending Topics