I want to control the access to a folder on my website. The folder contains index.html
and a lot of other stuff, so I can't restrict access based on a verification on the index.php file, because people can still access placing index.html
on the end of the url.
I searched about some solutions, but I'm very new to PHP, so I didn't understand very well.
I know I can place a .htaccess
file that blocks access to the folder. But can this rule be conditional based on a Session?
I read something about using cookies to block, can this be conditional in .htaccess
file?
Also, the folder I want to block have subfoders, does .htacess rules extends to the subfolders as well?