How can I prevent/make it hard to download my flash video?

后端 未结 9 1782
执笔经年
执笔经年 2020-12-05 21:45

I want to at least prevent normal users to download my flash video.

What\'s the best way to do it?

Create a httphandler, add a token (e.g. timeid), set the c

相关标签:
9条回答
  • 2020-12-05 22:35

    I have a solution that i'm gonna try for myself (as I have the same worries) but I know that it includes a lot of extra time and work...

    Solution: using flash compress the video into an swf file. Before compressing add some AS code to the movie for authentication. suggestions for authentication:

    1 test url 2 create a dedicated flash player that has handshake code checked by the video.swf

    I like #2 better, and as an extra measure, you can overlay an id code over the video, so if someone captures the video using screen recording software, you'd at least be able to track the original source of the copied video.. and exact suitable retribution...

    0 讨论(0)
  • 2020-12-05 22:35

    Simply you can't prevent it. But..you can make it difficult. Here some ideas come in my mind

    1 First of all add your identifier to the video (always someone can download it)

    2 The hard way... Add Ajax call back to server to check a random generated key that it will stored in the session every N seconds. After every post back clear the buffer of the player and start the video from were i was (using javascript). Use again JavaScript prevent the video source from downloading by "view source".

    3 Handle all your videos in urls like http://www.example.com/viewvideo/1 OR ../?id=1. Add blank image overlay with transparent background. Serve the original video and a blank video somewhere on the page with normal extension and style attribute "display:none". (will create problems to some download helpers)

    4 Everytime you serve a video CHECK if the request is from a browser (ie check UserAgent)

    5 Cookie with some random value combined with the id of the video. Check it client-side and server side and then serve the video.

    6 On focusout event hide the video with javascript. put a resume button in the flash and leave the frame unchange (like pause but with no original video in buffer).

    7 Combine those methods

    these are random generated ideas, not tested neither i say that guaranties no video downloading.

    0 讨论(0)
  • 2020-12-05 22:37

    in my answer you cant stop image/video theft but you can make harder for normal users but you can't make it harder for the programmers like us( i mean thiefs that knows little web programming) there are some tricks you can try:-

    1.) Using flash as youtube and many others sites like http://www.funnenjoy.com does .

    2.) Div overlaping or background pic setting (but users with little sense can easily save all resources by opening inspect element or other developer option).

    3.) You can disable right click and specific keys like CTRL + S and others possibles with JAVASCRIPT but main drawback is that if user disable JAVASCRIPT our all tricks fail down.

    4.)Save image in none online directories(if you have full access to web server) and read that files with server side languages like PHP every time when image / video is required and change image id time to time or create script that can automatically change ID after every access.

    5.)Use .htaccess in apache to prevent linking of your images by others sites. you can use this site to automatically generate .htacess http://www.htaccesstools.com/hotlink-protection/

    0 讨论(0)
提交回复
热议问题