PDA

View Full Version : protecting members outside domain


playa
05-05-2001, 12:50 PM
to save some bandwidth i adding galleries on another domain for a paysite,,

can someone show me how to set
.htaccess file so the page will only load from the secure members area

Pirate
05-05-2001, 01:03 PM
AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC]
RewriteRule /* http://redirecturl [R,L]

playa
05-05-2001, 01:20 PM
thanks