in reply to Re^2: Discriminating between local and remote IP's
in thread Discriminating between local and remote IP's

For this reason I wanted to have the server check to see if the request was received via the local area NIC or the NIC with the internet connection.

Can't be done using perl. The best you can do is look at the IPs.

I suggest creating a whitelist of all the "trusted" IPs as a bunch of CIDR blocks (using Net::CIDR as someone else suggested), then checking connections against that.

  • Comment on Re^3: Discriminating between local and remote IP's