To prevent my files from being accessed, I've set up an .htaccess
that only allows the user to redirect through the login page. The problem is that I don't know how I allow access to the directory, since the folder is opened through a require_once
Example - index.php
<?php
require_once("filterLoginPage.php");
?>
I've tried this method, which seemed logical because the folder is opened through the index.php - but whenever I'm loading the folder URL through localhost, the localhost still gives me a 403 ERROR.
My .htaccess
<Limit GET POST>
order deny,allow
deny from all
allow from 127.0.0.1
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
Order deny,allow
Deny from all
<Files "index.php">
Allow from all
</Files>
<Files "filterLoginPage.php">
Allow from all
</Files>