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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-27-2002, 12:06 AM   #1
playa
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
playa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2002, 12:13 AM   #2
drunkdollars
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
drunkdollars is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2002, 12:18 AM   #3
playa
Confirmed User
 
Join Date: Feb 2001
Location: atlanta, GA
Posts: 6,432
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
playa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2002, 12:24 AM   #4
Pornwolf
Drunk and Unruly
 
Pornwolf's Avatar
 
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.
Pornwolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2002, 07:17 AM   #5
priest
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

&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>

Last edited by priest; 08-27-2002 at 07:25 AM..
priest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2002, 07:47 AM   #6
boldy
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.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2002, 08:37 AM   #7
notjoe
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
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
notjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2002, 08:53 AM   #8
boldy
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.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2002, 09:02 AM   #9
playa
Confirmed User
 
Join Date: Feb 2001
Location: atlanta, GA
Posts: 6,432
so its not a matter of configuring the .htaccess
playa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.