GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   configuring .htaccess for embedded movies (https://gfy.com/showthread.php?t=73986)

playa 08-27-2002 12:06 AM

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

drunkdollars 08-27-2002 12:13 AM

Hard Task..
You need to use cookies or some other method

playa 08-27-2002 12:18 AM

Quote:

Originally posted by drunkdollars
Hard Task..
You need to use cookies or some other method

how do paysites do it then? i didn't know it was complicated,,, i can't even link the movies for downloads

Pornwolf 08-27-2002 12:24 AM

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.

priest 08-27-2002 07:17 AM

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

&lt;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();
&lt;/SCRIPT>

boldy 08-27-2002 07:47 AM

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

notjoe 08-27-2002 08:37 AM

Quote:

Originally posted by boldy
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


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

boldy 08-27-2002 08:53 AM

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:

playa 08-27-2002 09:02 AM

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