Re: How to limit source IP in PHP

From: Date: Wed, 12 Sep 2012 15:38:24 +0000
Subject: Re: How to limit source IP in PHP
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-319047@lists.php.net to get a copy of this message
Il 12/09/2012 17:21, Daniel Brown ha scritto:
On Wed, Sep 12, 2012 at 10:18 AM, Tonix (Antonio Nati) <tonix@interazioni.it> wrote:
Is PHP able to 'force' binding IP? I hoped there was an external directive I did not see, but probably this is a PHP lack.
     Not at all.  Essentially, PHP is an interface to underlying
software, OS commands, and APIs. You'd have to configure the system to bind requests, as PHP does not presently have that capability (and, to my knowledge, there's no plan to change that).
So, the answer is no, PHP is not able to do that. There is an (heavy) BASEDIR directive for disk, but nothing equivalent (and simpler) for IP. Regards, Tonino -- ------------------------------------------------------------ Inter@zioni Interazioni di Antonio Nati http://www.interazioni.it tonix@interazioni.it ------------------------------------------------------------

« previous php.general (#319047) next »