Prevent Download of a Video

Discussion in 'Web Design and Development' started by MrCommunistGen, Feb 27, 2006.

  1. macrumors regular


    Does anyone know of a way to prevent the download of a video that you have posted on a website? I'm asking for a friend of a friend and don't really have any of the specific details about the situation. :eek:

    Any help would be appreciated.

  2. Moderator


    Staff Member

    Unless you (or your friend's friend) want to set up a streming server, I guess making a flash version, and hiding the source file (which I've never actually done, so I cannot help with details) is the best way to go.
  3. macrumors regular

    I don't know much about video and Flash, but a few days ago I wanted a song from a website that appeared to be embedded in a Flash file. I looked at the source, downloaded the .swf, opened in Flash Pro. Flash Pro then gave me an error saying it couldn't find the .mp3 file and gave me a path. I then reconstructed the http:// path opened up Terminal and used the curl command to download the .mp3 file.

    Well the point is that I was able to access media the content creator probably didn't want me to access, or else they would have given a download link on the page.

    If someone wants the video file, they will get it.

    You might want to look into having the web-server look at where the request for the file is originating from. If it comes from your domain through the Flash file, then permit access, otherwise, issue a 403 forbidden error.

  4. reh
    macrumors 6502a

    That's easily circumvented too.
  5. macrumors regular

    Well nevermind then.

    I guess I'll stick with what i said before, If they want it, they will get it.

  6. macrumors regular


    I'm aware of that...

    I know about downloading Flash files... I do it all the time for some internet cartoons I watch. I already passed on the knowledge that if someone WANTS the vid, they're probably going to get it. The person is working for a non-profit organization and is using the video as a fundraiser... I'm just not sure how they're actually putting the video up, (streaming vs download vs ??). My guess it that they want to prevent the average user (who would probably be using Windows) from being able to right click the vid and hit "save as"

    Also: Streaming server? What would this entail?

  7. macrumors G3


    if you put the acutal file referenced above the top www/ directory, you can stop downloads because there is no way of getting to the file unless you're the webserver or have vaild FTP access. note that this doesn't work with all hosts - if it doesn't, viewing the page in a web browser will show an invalid link.

    for example, when you log in to your ftp server, you'll see www/, and maybe a few other files or folders.

    create a directory, for example, movies/ and then link from the html page (movie.html for example) and just make sure if the file is

    that the reference is to

    the first ../ will move up one directory to www/. the second will move to the root directory. from here you navigate to the movies directory and
  8. macrumors 603


    Apple's had some movies which seemed difficult to download.

    I believe they were movies which opened a URL to to a second movie with the actual video content. The URL obviously isn't visible in the source, though perhaps some router log file might reveal it.

    If the movie itself isn't self-contained, that might work too.
  9. macrumors 603


    Of course, if it was actually a QuickTime movie, then I'd just wait for it to load and click "Save Movie". If it was a streaming QuickTime, I'd find it in the cache.

Share This Page