Re: How to limit source IP in PHP

From: Date: Thu, 13 Sep 2012 16:16:00 +0000
Subject: Re: How to limit source IP in PHP
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-319060@lists.php.net to get a copy of this message
On 09/12/2012 07:02 PM, Daniel Brown wrote:
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.
     That's correct.  However, that doesn't mean you can't put in a
feature request at https://bugs.php.net/ to see if it can be included in a future release.
PHP handler is triggered depending on the request (ie: GET /dir/file.php) The HTTP transaction stil has to be initiated fisrt then. The TCP connection has been opened before the HTTP gets to Apache. No chance PHP could change the binding IP. Filing the request is IMHO technically irrelevant. -- RMA.

« previous php.general (#319060) next »