Jump to content

Recommended Posts

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.

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.