in reply to Run Perl on the Server Locally

Wouldn't you be better off using a firewall to stop access to your webpages from the "outside" ? Firewalls let you distinquish between clients coming from the "trusted" internal net, and those coming from the outside.