Searching the forum here I found this feature if I do in .htaccess
:
<Files *.php>
deny from all
</Files>
<Files "meuFicheiro.php">
Order Allow,Deny
Allow from all
</Files>
Libero access to the file meuFicheiro.php
and block access to all site .
However, consider the case that we have multiple directories and subdirectories and in some of them there are files named
meuFicheiro.php
Ex:
/
/meuFicheiro.php
/ficheiros/meuFicheiro.php
/paginas/meuFicheiro.php
/paginas/ficheiros/meuFicheiro.php
However, I want to release ONLY access to the meuFicheiro.php
file that is in the root leaving the others blocked for access.
How to do it?