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 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')) Link to comment https://forums.phpfreaks.com/topic/86777-solved-ip/#findComment-443516 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.