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
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 12-17-2002, 05:50 PM   #1
Snake Doctor
I'm Lenny2 Bitch
 
Snake Doctor's Avatar
 
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
Snake Doctor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 06:28 PM   #2
Mr.Fiction
Confirmed User
 
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
Here is a movie poster for Lord of the Rings:
Mr.Fiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 06:31 PM   #3
Snake Doctor
I'm Lenny2 Bitch
 
Snake Doctor's Avatar
 
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
Snake Doctor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 06:32 PM   #4
Madball
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.
Madball is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 06:32 PM   #5
Mr.Fiction
Confirmed User
 
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
Quote:
Originally posted by Lenny2
Well that wasn't very funny, but at least you bumped my thread
I'll try harder next time. Sorry.
Mr.Fiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 06:40 PM   #6
eRock
Confirmed User
 
eRock's Avatar
 
Join Date: Apr 2001
Location: Chi-town
Posts: 3,112
Quote:
Originally posted by Lenny2
Well that wasn't very funny, but at least you bumped my thread
Ah well...and here I was on the same wavelength as Mr. Fiction. That's the first thing that popped into my mind...an actual; poster from a movie. He got a chuckle outta me.
__________________
Swiftwill Hosting
eRock is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 07:55 PM   #7
missnglnk
Confirmed User
 
Join Date: Aug 2001
Location: New York, NY
Posts: 131
Quote:
Originally posted by Madball
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.
They can if you properly set the cookie domain value. If set to '.domain.com', it will allow all subdomains, if set to 'domain.com', it will only allow that domain, and if set to 'blah.domain.com', it will only allow that subdomain.
__________________
--
cat: .signature: No such file or directory
missnglnk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 09:01 PM   #8
SpaceAce
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
SpaceAce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 09:12 PM   #9
Snake Doctor
I'm Lenny2 Bitch
 
Snake Doctor's Avatar
 
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
Quote:
Originally posted by missnglnk


They can if you properly set the cookie domain value. If set to '.domain.com', it will allow all subdomains, if set to 'domain.com', it will only allow that domain, and if set to 'blah.domain.com', it will only allow that subdomain.
This is the javascript I'm using to set the cookie (without the opening and closing javascript tags)

// 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
Snake Doctor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 09:20 PM   #10
m0rph3us
Confirmed User
 
Join Date: Mar 2001
Location: Principality of Sealand
Posts: 2,033
Quote:
Originally posted by Lenny2


This is the javascript I'm using to set the cookie (without the opening and closing javascript tags)

// 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.
you can't have domainB read domainA's cookie.
__________________
<font size="2" face="Tahoma"><a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Get paid $25 per signup</a> listing over <a href="http://galleries.18blowjobs.com/hosted.html" target="_blank">100 free hosted video galleries</a> - <a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Check it</a> » </font>
m0rph3us is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 09:25 PM   #11
Undutchable
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?
Undutchable is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2002, 11:09 PM   #12
Morgan
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.
__________________
PornstarPlatinum.com | TransErotica.com
Morgan 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



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.