![]() |
![]() |
![]() |
||||
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 |
I'm Lenny2 Bitch
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
|
Movie Posters - Can you do this?
Can you use cookies and htaccess to protect movies if the html page where the cookie is set is on a different domain and server than the one the movies are on? (i.e. I have the gallery on one host and the movie files on a cheap ass host)
The cookies and htaccess work for me when I've got all the files on the same domain, but when I try it with the movie files on the other server I get errors in windows media about the file being corrupt. Is this not possible or am I doing something wrong?
__________________
sig too big |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
|
Here is a movie poster for Lord of the Rings:
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
I'm Lenny2 Bitch
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
|
Well that wasn't very funny, but at least you bumped my thread
![]()
__________________
sig too big |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2002
Location: Oslo, Norway
Posts: 748
|
From what I know, a cookie set by domain A can NOT be read by domain B. Not even different subdomains on the same domain. Won't work.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Apr 2001
Location: Chi-town
Posts: 3,112
|
Quote:
__________________
Swiftwill Hosting |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Aug 2001
Location: New York, NY
Posts: 131
|
Quote:
__________________
-- cat: .signature: No such file or directory |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
|
When you set a cookie, you tell the cookie which domains to send itself to. Unless you are operating scripts on both servers, there's really no way for you to do what I think you are talking about.
SpaceAce |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
I'm Lenny2 Bitch
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
|
Quote:
// Calculate the expiration date var expires = new Date (); expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000); document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString(); and this is what's in the htaccess file RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*mydomain.COM(:80)*/ [NC] RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com(:80)*/ [NC] RewriteCond %{HTTP_REFERER} !^http://mydomain.com(:80)*/ [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$) RewriteRule /* http://www.redirecturl.COM [R,L] It works when I put the movies in a subfolder of the directory the html page is in, but it fucks up when I have the movies on another server.
__________________
sig too big |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Mar 2001
Location: Principality of Sealand
Posts: 2,033
|
Quote:
__________________
![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Registered User
Industry Role:
Join Date: Jun 2002
Posts: 2,217
|
Your question is funny in a way. You say you use hotlink protection, and then you think it's weird that you get an error in WMP when you hotlink the movies?
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2002
Location: Corona Del Mar, CA
Posts: 10,520
|
I couldve sworn this thread was about "motion picture posters" as well.
|
![]() |
![]() ![]() ![]() ![]() ![]() |