View Single Post
Old 12-17-2001, 11:29 AM  
Timothy
Confirmed User
 
Join Date: Aug 2001
Posts: 153
Hey thanks Shunga. I got it.


=========================
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain.com/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://111.222.333.444/.* [NC]
RewriteCond %{HTTP_COOKIE} !(^|(.+ *)id=valid(;. *|$)
RewriteRule /* http://www.redirect-domain.com/ [R,L]
=============================

And insert this code in html page, between <head></head>

=============================
<SCRIPT LANGUAGE="javascript">
// Calculate the expiration date
var expires = new Date ();
expires.setTime(expires.getTime() + 6 * 60 * 60 * 1000);
document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();
</SCRIPT>
=============================
Timothy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote