shage Posted January 19, 2008 Share Posted January 19, 2008 $ip = $_SERVER['REMOTE_ADDR']; { if($ip!="74.151.19.99"){ die(); } im trying to only allow 2 ips, but cant figure out how to allow the second ip, any ideas thank you Quote Link to comment https://forums.phpfreaks.com/topic/86777-solved-ip/ Share on other sites More sharing options...
Daniel0 Posted January 19, 2008 Share Posted January 19, 2008 if($ip == 'ip1' || $ip == 'ip2') OR if(in_array($ip, array('ip1', 'ip2')) Quote Link to comment https://forums.phpfreaks.com/topic/86777-solved-ip/#findComment-443516 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.