Weedpacket wrote:You can find the IP the request is originating from (or at least that of the proxy forwarding the request) in $_SERVER['REMOTE_ADDR']. Compare that with the IPs in your list.
yes i knew that, but what i meant was that how to DO that comparison? eg. if i have a range of addresses 192.168.0.0 - 192.168.0.254 and the users addr is 192.168.0.128, how do i do the actual comparison?