|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Feb 2001
Location: atlanta, GA
Posts: 6,432
|
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 |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Apr 2002
Location: Club Drunk
Posts: 2,734
|
Hard Task..
You need to use cookies or some other method
__________________
SIGS ARE GAY 98055668 icq |
|
|
|
|
|
#3 | |
|
Confirmed User
Join Date: Feb 2001
Location: atlanta, GA
Posts: 6,432
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Drunk and Unruly
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
|
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! ) 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. |
|
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: Los Angeles, California
Posts: 139
|
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> |
|
|
|
|
|
#6 |
|
Macdaddy coder
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
|
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
__________________
MacDaddy Coder. |
|
|
|
|
|
#7 | |
|
Confirmed User
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
|
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 |
|
|
|
|
|
|
#8 |
|
Macdaddy coder
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
|
yes but i serve 600 meg movies, so i really dont want them to get downloaded if the user only watches for 5 minutes ..
![]()
__________________
MacDaddy Coder. |
|
|
|
|
|
#9 |
|
Confirmed User
Join Date: Feb 2001
Location: atlanta, GA
Posts: 6,432
|
so its not a matter of configuring the .htaccess
|
|
|
|