
July 31st, 2008, 12:04 PM
|
|
Registered User
|
|
Join Date: Jul 2008
Posts: 1
Time spent in forums: 19 m 9 sec
Reputation Power: 0
|
|
|
Htaccess protected videos
Hello everybody ..
First of all, really nice and helpful place. I have been reading this forum for a while now and finally decided to register because you guys are awesome ..
I found lots of htaccess leech protect posts here and I got it working fine. But, i cannot find answer for my question.
I have a video web site. Windows media web player plays all videos on my site. Well, I want people to watch videos but not download them. Reason: really big files and I cannot afford bandwidth right now.
I have a following htaccess file on my server:
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
RewriteRule .*\.(mp3|mpeg|mpg|ram|rm|wma|wav|asx|wmv|avi|mov|r ar|exe)$ http://www.mydomain.com/ [R,NC]
The htacces protection works fine. Nobody can download any videos, but If i use the file my Web media player won't play any videos because of htaccess. Soonest i remove the htaccess file, my videos are playing just fine.
So, my question is:
How can I use the htaccess but allowed the web media player to play it?
Thanks guys.
Last edited by DamirT : July 31st, 2008 at 12:10 PM.
|