Correct redirect exception IP check

This commit is contained in:
Cathy J. Fitzpatrick
2013-06-03 03:39:01 -05:00
parent bf53eed51c
commit e7d2579772

View File

@@ -53,7 +53,7 @@ RewriteCond %{ENV:SCRIPT_URL} ^/(lobby/?)?$
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?:\/\/([a-z0-9-]+.)?(pokemonshowdown\.com|appjs)
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
RewriteCond %{REMOTE_ADDR} !^173\.252\.196\.254$
RewriteCond %{HTTP:X-Forwarded-For} !^173\.252\.196\.254$
RewriteRule .* - [E=LOBBY_REDIRECT:1]
RewriteCond %{ENV:LOBBY_REDIRECT}%{ENV:P_SUFFIX} =1