Jump to content

ekimmai

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ekimmai's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I believe the method as a whole is sound as it enables one to store the flash file outside of the root directory and make it invisible to the user in "view source" and temp internet files. My next objective was to try and make it harder still for anyone to locate and download the swf file by adding in additional disguise, but I may be barking up the wrong tree. Was also considering an .htpasswrd file to protect the private directory but would that be worthwhile and prevent direct access to the flash file whilst still allowing for the file to be played via mymusic.html? Thanks for the replies so far!
  2. I'm trying to test disguising of php files and using the following code in my .htaccess file: AddType application/x-httpd-php .foo The php file in question (now named file.foo) reads as follows and plays a hidden flash file: <?php $file = "/home/domain/private/"; header('content-type: application/x-shockwave-flash'); readfile($file.$_GET['swf']); ?> The php (file.foo) is "called" as follows: <html> <head> <title>Flash</title> </head> <body> <object width="550" height="400"> <embed src="file.foo?swf=DG.swf" quality="high" type="application/x-shockwave-flash" WMODE="transparent" width="360" height="26" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" /> </object> </body> </html> But whenever I try any such rewrite I just get a blank page. Can anyone tell me whether this is a .htaccess issue or whether this method will work at all? If it won't work then is there an alternative to help disguise/hide my files? Please help!! THANKS!!!
  3. .htaccess file currently sits in "/home/username" folder (i.e. my root directory) and is as follows: AddHandler application/x-httpd-php .swf Can I tell you what I might add?
  4. Hi Guys Please can you help me as I am trying to get a website setup with music flash files. So far I have the following working code: mymusic.html: <html> <head> <title>Flash</title> </head> <body> <object width="550" height="400"> <embed src="file.php?swf=myflash.swf" quality="high" type="application/x-shockwave-flash" WMODE="transparent" width="360" height="26" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" /> </object> </body> </html> file.php: <?php $file = "/home/username/private/"; header('content-type: application/x-shockwave-flash'); readfile($file.$_GET['swf']); ?> This works fine in that I can browse to mymusic.html and it will play the flash file myflash.swf which is stored outside of my root directory. I cannot easily retrieve the music file via "view source" or temp internet files, and I appreciate that I can never prevent the most determined individual from getting hold of the music track and that is fine, I just want to make it difficult enough to deter the average user. So what code should/can I add to make this more secure? I saw in one place that the following was added but will it help?: header("Cache-Control: no-cache, must-revalidate"); header("Expires: Mon, 18 Jan 2010 00:00:00 GMT"); I would really appreciate any assistance/pointers! Thanks
  5. Hi I'm very new to PHP and am trying to implement the technique described here (http://ryanfait.com/resources/protect-flash-files-from-download/) to help protect some flash files on my website. I have followed the instructions to the letter and am confident that I am correctly pointing to my swf file but the php page is blank. Does the method described work in principle? Could this be a permissions issue? Does the .htaccess file need to be one level above the swf files perhaps? Is there any useful way I can debug my code? Do I need to use MySQL for this in any way? When I point directly to my "real" swf file it works fine in displaying the flash (via php address) but doesn't work when I use the indirect method described (with intermediate flash.swf file). Apologies for my obvious lack of know-how! Any help would be most gladly received.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.