I have searched just about every key word about it that came to mind, and I know there have been similar questions but this is not a duplicate because they do not work for me (not the exact setup I need or just not functioning).
I'm running XAMPP on my Windows 10 PC (Apache and mysql), haven't yet configered much in the files but have a genreal understanding of whats going on.
The thing I want is either an allow/deny
block in the .htaccess
file located in the htdocs folder (viewable root) or what'd be better, a domain rewrite block that:
- Denies all direct access attempts to files located in the viewable root
Exempt:
- All files named
index.php
in whatevery (sub)folder they may be - Or if the access attempt is from the server itself (the issue with most other solutions is that
.css|.js|.png
and other files my.php
files need would get blocked out and even includes of other*.php
files would be blocked)
I have tried many solutions but all of them failed at the points I listed above! If there are any working ones I appreciate your help, if not let me know.
-RmOL