drath Posted February 12, 2010 Share Posted February 12, 2010 I want to deny all outside traffic to a specific flash file on my website using .htaccess, except it doesn't seem to work. I think the problem is with flash itself, because I am trying to include the flash file from another flash file using this method: http://www.ilike2flash.com/2009/11/load-external-swf-in-as3.html. Here's what I am doing: <Files flash.swf> order allow,deny deny from all allow from domain.com allow from 127.0.0.1 allow from 55.55.55.55 allow from 55.55.55.0/17 </Files> I've tried allowing from the domain name, localhost, the actual domain IP, and then even the DNS IP, all of them do not allow the file to be included. When I use the statement, the other flash file is not getting loaded and continues to try to "read" from the domain, rather than a normal 404 that would be thrown on a normal file using this method. And yes, it does get loaded properly without the .htaccess statement used above. Maybe there's a PHP solution to get around this .htaccess issue, but still keep the functionality that I need. Quote Link to comment https://forums.phpfreaks.com/topic/191906-deny-allow-htaccess-flash-load-possibility/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 12, 2010 Share Posted February 12, 2010 Media, like a SWF file are requested by the browser and the server, well serves (hence the name) those files to the browser for display. You put a link to the media on your page, the page is requested by the browser, the browser then makes a http request for any media on that page. If the media on your page then requests other media from the server, that is just another http request that the server handles from the browser. What exactly are you trying to accomplish? Quote Link to comment https://forums.phpfreaks.com/topic/191906-deny-allow-htaccess-flash-load-possibility/#findComment-1011510 Share on other sites More sharing options...
drath Posted February 12, 2010 Author Share Posted February 12, 2010 Users loads flash.html which loads flash.swf, which then loads flashinclude.swf (inside flash.swf itself using the method linked). I don't want users to be able to go to "domain.com/flashinclude.swf" directly. Quote Link to comment https://forums.phpfreaks.com/topic/191906-deny-allow-htaccess-flash-load-possibility/#findComment-1011514 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.