This is not really related to swfobject directly, so Google will be your friend for this question.
with a term like "protect flv from direct download" you will find links like: http://flowplayer.org/forum/2/16058 which go through the sort of thing you are after. I don't think .htaccess is the right direction of travel... Aran On Thu, Aug 6, 2009 at 12:20 PM, Alistair <[email protected]> wrote: > > Hi > > I am having problems protecting my .flv files from direct download. > > I want the video to be viewable in the SWFObject player displayed in > my PHP page. But I don't want the user being able to access them > directly via the URL. > > I have added a .htaccess file in the video directory as follows > > # no one gets in here! > deny from all > > This stops the download but also stops the video from playing in the > SWFObject > > I have tried adding > allow from localhost > allow from 127.0.0.1 > > but no joy. > > > The SWFObject code is as follows > > <script type='text/javascript'> > > var s1 = new SWFObject('applications/ > player.swf','player','640','380','9'); > > s1.addParam('allowfullscreen','true'); > > s1.addParam('allowscriptaccess','always'); > > s1.addParam('flashvars','file=../video/ > gtv.flv&displayclick=fullscreen&title=Site > Title&icons=false&fullscreen=true&autostart=true&skin=applications/ > nacht.swf'); > > s1.write('flashtest'); > > </script> > </div> > > The video file plays in the player fine if I take away .htaccess. > > Is there a best practice for protecting your video content from direct > download? > > > Alistair > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
