Re: How to limit source IP in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 13/09/2012 18:16, Mihamina Rakotomandimby ha scritto:
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.


You are speaking about incoming connections, I suppose.

I'm speaking about connections started from within PHP.

Regards,

Tonino


--
------------------------------------------------------------
        Inter@zioni            Interazioni di Antonio Nati
   http://www.interazioni.it      tonix@xxxxxxxxxxxxxx
------------------------------------------------------------


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux