I'm trying to limit access to .php
files through HTTP, allow only to index.php.
I should allow access to .php
files only through POST
and require
.
I did the following:
location ~ ^((?!index\.php).)*$ {
allow 127.0.0.1
deny all;
}
This blocks all files except index.php
, however it blocks also POST
queries..
Any ideas?