Actually, this works:
RewriteEngine On
RewriteCond %{HTTP_COOKIE} !^.*login=pass.*$
RewriteCond %{HTTP_REFERER} !^
http://([a-z0-9-]+\.)*naughtysecrets.co.uk/ [NC]
RewriteRule .*
http://www.naughtycelebs.co.uk/gallery/ [R,L]
BUT, as soon as I change it to this, it stops working:
RewriteEngine On
RewriteCond %{HTTP_COOKIE} !^.*login=pass.*$
RewriteCond %{HTTP_USER_AGENT} ^.*Buddy.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Whacker.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*FileHound.*$
RewriteCond %{HTTP_REFERER} !^
http://([a-z0-9-]+\.)*naughtysecrets.co.uk/ [NC]
RewriteRule .*
http://www.naughtycelebs.co.uk/gallery/ [R,L]
I'm puzzled
