Wrong client ip address: $REMOTE_ADDR!
It's not in the UofT ip range."; exit(); } if(isset( $HTTP_GET_VARS["ip"]) ) { $ip=$HTTP_GET_VARS["ip"]; if(! preg_match("/^128.100|^142.150|^192.75.254|^142.151|^192.12.174|^192.12.175|^192.12.176|^192.12.177|^192.12.178|^192.12.179|^192.12.180|^192.12.181|^192.12.182|^192.12.183|^192.41.201|^192.55.194|^192.68.55|^192.75.177|^192.82.128|^192.82.129|^192.82.130|^192.82.131|^192.139.73|^192.139.206|^192.139.207|^198.96.61/",$ip) ) { echo "Wrong ip address!"; exit(); } }else { $ip=$REMOTE_ADDR; } echo ""; echo "IP : $ip
"; $UserAgent=getenv("HTTP_USER_AGENT"); echo "User-Agent : $UserAgent "; echo ""; ?>