Click to See Complete Forum and Search --> : using htacess


Richiedude
03-18-2007, 09:39 AM
Is there a way to use htaccess to prevent all domains, except mine (or any one I specify, from playing & accessing or downloading flash video files (flv)??

ray326
03-18-2007, 03:20 PM
Yes. I think you'll need to do a URL rewrite rule for that.

Richiedude
03-19-2007, 07:30 AM
Seems all examples of htaccess I have searched for DO NO WORK w/preventing hotlinking FLV files that are served into a SWF player - it ends up blocking them as well even on my domain.

I tried this also:
<Limit GET>
order deny,allow
deny from all
allow from 1.2.3.4
</Limit>

w/1.2.3.4 being the IP of my dedicated server. I cannot serve FLV files into an SWF even from my domain.

SO - Is there a solution to preventing holinking of FLV files using htacess so that MY domain can play & serve them via SWF files but NO OTHER DOMAIN can play them, download them or steal them?????

Richiedude
03-21-2007, 03:39 PM
Anyone? Bueller? Hello?

ray326
03-21-2007, 10:39 PM
This sounds like it's going to take both Flash and Apache knowledge. I have none of the former so I don't know what an FLV is let alone how it's used by a SWF object.

cuttyfranks
03-19-2011, 07:07 PM
Looks like I'm about 4 years too late, but in case anyone stumbles upon this on a search like I did, the following code seemed to have worked for me in the htaccess file, although a new set of problems pertaining another issue has risen...


AddType video/x-flv .flv
AddType application/x-shockwave-flash .swf

will address the other issue if I have no luck searching for the thread.

good luck!