udragu
December 10th, 2015, 04:14 PM
Hello All!
There is a problem: I need to restrict access to PHP-5 script from outside.
The main goal is to achieve that only scripts on the same virtual host can pass POST query to this first script.
$_SERVER['REMOTE_ADDR']=='127.0.0.1' I guess that is not solution. I think that curl can avoid it.
Environment:
Apache Version Apache/2.2.22
php 5.6.3
system: ubuntu server 14.04 64bit
Thnx!
There is a problem: I need to restrict access to PHP-5 script from outside.
The main goal is to achieve that only scripts on the same virtual host can pass POST query to this first script.
$_SERVER['REMOTE_ADDR']=='127.0.0.1' I guess that is not solution. I think that curl can avoid it.
Environment:
Apache Version Apache/2.2.22
php 5.6.3
system: ubuntu server 14.04 64bit
Thnx!