I'm testing redirects if ip addresses aren't matching:
if($_SERVER['REMOTE_ADDR'] != "192.168.1.1"){ header("Location: http://www.somesite.com"); exit; }
How do I put multiple ip addresses in there without making it too long.
I tried doing it this way, and it works, but it's way too long, and I'm sure there's a better way. Especially if I have many ip's.
if($_SERVER['REMOTE_ADDR'] != "192.168.1.2" || $_SERVER['REMOTE_ADDR'] != "192.168.1.1"){ header("Location: http://www.somesite.com"); exit; }