View Single Post
Old 07-19-2003, 10:43 AM  
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Using htaccess to eat up outbound clicks with no cookie presented will defeat most of the site suckers. However, it will also defeat legitimate spiders.

*** WARNING: THIS IS UNTESTED ***

RewriteEngine on
RewriteCond %{HTTP_COOKIE} !^.*ttt_cookie.*$
RewriteRule .*ttt-out.php.*$ /nocookies.html

If a surfer loads ttt-out.php and does not present the cookie 'ttt_cookie' (which is normally set when they load the main page), they will be redirected to /nocookies.html
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote