![]() |
configuring .htaccess for embedded movies
been trying to figure this out for the longest,, no one seems to know,,,
basically i want to embedd a .WMV video on a webpage on a secure members area... it seems like the video isn't passing a valid refer and it isn't loading.. and also i can't right click to download,, or click it to play,, it gets redirected to the rewrite,, this is my content url and all i have configured in my .htaccess is RewriteCond %{HTTP_REFERER} !^http://www.domain.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://domain.net/.*$ [NC] RewriteRule /*$ http://www.redirect.com/ [L,R] can someone please help,, thanks in advance |
Hard Task..
You need to use cookies or some other method |
Quote:
|
Ask K-Man. He posted this gallery last night. http://www.xxlscreen.com/hard2107t.htm
My Windows Media Player is acting up so I can't play any MPEGs by clicking. I tried to download one of these to watch it and I couldn't (and was oh so frustrated! :sadcrying) I couldn't figure it out from the source code but whatever it is I'd like to know about it so I can use it on my sites. . . . Does anyone know how to uninstall Windows Media Player? It is suspiciously absent from the uninstall programs section in the control panel. Maybe I'll just try to re-install over it. |
What about something like this?
Add this rule to your .htaccess file in your movie directory: RewriteEngine on RewriteOptions inherit RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*yourdomain.com/ [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$) RewriteRule /*$ http://www.yourdomain.com/ [L,R] Or add this one: RewriteEngine on RewriteOptions inherit RewriteCond %{HTTP_REFERER} !^http://yourIPaddress/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$ [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$) RewriteRule /*$ http://www.yoursite.com [L,R] Place the cookie script below between the <head> </head> HTML section of the index.html <SCRIPT LANGUAGE="javascript"> // Calculate the expiration date</font> var expires = new Date ();</font> expires.setTime(expires.getTime() + 1 * 60 * 60 * 1000); document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString(); </SCRIPT> |
Took me a few days to make them stream from my linux boxes. I wrote a streaming server in Perl ... Stream them to an embedded object. The user cannot download them ..
i used this emb code : http://www.kimholland.com/stream.html |
Quote:
There are much much easier shit to do than write streaming servers or having 5-20 lines of mod_rewrite, also, the videos will be cached in the player's memory/temp files and they can simply be renamed. Joe |
yes but i serve 600 meg movies, so i really dont want them to get downloaded if the user only watches for 5 minutes .. :2 cents:
|
so its not a matter of configuring the .htaccess
|
| All times are GMT -7. The time now is 01:53 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123