<?php //get the remote host IP $szRemoteIP = $_SERVER['REMOTE_ADDR']; //this is the array holding the allowed IP's list; $arrAllowedIPs = array("192.168.0.1", "192.168.2.3", "192.168.63.22", "127.0.0.1", "10.10.192.102"); if (!in_array($szRemoteIP, $arrAllowedIPs)) { //if […]
↧