Using the IsInSubnet method allows you to write and validate the script ONCE, and then the only changes are to the data - subnets, URLs, and Subnet/URL map. Ideally, these three items could be read from an INI file so the code never again needs to be changed.

When you mess with IP addresses as strings and do InStr() tests, you need to keep changing your code to accommodate changes to your network.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D