If your /etc/hosts.deny file contains:
php: 127.0.0.1
And your code looks like:
<?phpif (!tcpwrap_check('php', $_SERVER['REMOTE_ADDR'])) { die('You are not welcome here'); }?>