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