A while ago I needed to restrict a page to only on campus users - which led to this small script in PHP:
http://pastebin.unl.edu/13
The script checks the remote users IP and determines if it is within the set of allowed IP ranges. Most people just check for an address beginning with 129.93, but the university has some extension offices using other IP ranges outside of that.
The network masks for UNL IP addresses are:
129.93.0.0/16
65.123.32.0/19
64.39.240.0/20
216.128.208.0/20
I will update this if I hear that anything has changed.
I figured this might be useful for some others to use.

