Forum Moderators: phranque
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^http://server1.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://server2.com.*$ [NC]
RewriteCond %{HTTPS} [OR]
RewriteCond %{HTTP_REFERER}!^https://server3.com.*$ [NC]
RewriteRule ^.*$ - [F]
Thanks for any input
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^http://server1.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://server2.com.*$ [NC]
RewriteCond %{HTTPS} .[OR]
RewriteCond %{HTTP_REFERER}!^https://server3.com.*$ [NC]
RewriteRule ^.*$ - [F]
I was missing the " . " in the 4th line.
I do have another question while on the rewrite topic -- which variable should I be testing for if I want to grant access to this same area, if it is being redirected from another server (specifically an IIS server)? I tried the HTTP_FORWARDED but no luck.