How to limit source IP in PHP

From: Date: Wed, 12 Sep 2012 13:53:26 +0000
Subject: How to limit source IP in PHP
Groups: php.general 
Request: Send a blank email to php-general+get-319042@lists.php.net to get a copy of this message
Is there a way to force a PHP script to bind to a prefixed IP? Actually, while you can assign more IPs to Apache for listening, assigning domains to specific IPs, it looks like any PHP script can freely choose which IP to bind. Instead I'd love some domains are permitted to open connections only from the domain IP. In FreeBSD I do it easily, setting up dedicated jails for domains. But how to do it simply using PHP on Linux? Regards, Tonino ------------------------------------------------------------
        Inter@zioni            Interazioni di Antonio Nati
   http://www.interazioni.it      tonix@interazioni.it
------------------------------------------------------------

« previous php.general (#319042) next »