Web Hosting Talk







View Full Version : semi direct link


ti_nhatrang
10-02-2006, 05:53 AM
Hi guys,

I have a few videos, and I would like it to only work if it's accessed through my flash video player... for example:

myflashplayer.swf=http://www.mysite.com/video/filea.flv would only work, even if they embedded it onto another site...

Is there anyway I can restrict in htaccess to have that folder only be able to be accessible by the myflashplayer.swf file?

I know this sounds so confusing, but if you get a glimpse of it, please share your thoughts.

Thanks in advance...

hehachris
10-02-2006, 07:44 AM
try adding this to your .htaccess

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^(http://|https://)(www.)?(yourdomain.com).*$ [NC]
RewriteRule \.(flv)$ - [F]

ti_nhatrang
10-02-2006, 03:33 PM
right, what if I also want them to be able to embedded my videos on their site through my flash player, myflashplayer.swf=http://www.mysite.com/video/filea.flv ... i just don't want them to be accessing the http://www.mysite.com/video/filea.flv alone by itself...