I need to prevent direct access of all the php files but allow only files pass.php
how can i do that
<Files ~ ".php$">
Order allow,deny
Deny from all
Allow from 127.0.0.1
</Files>
the code only allow access to localhost.
now what if i want to allow access only to
https://www.eexample.com/record/pass.php
is it like this
<Files ~ ".php$">
Order allow,deny
Deny from all
Allow from https://www.example.com/record/pass.php
</Files>