SyntaxFix
Write A Post
Hire A Developer
Questions
An easy solution is to rename all non-index.php files to .inc, then deny access to *.inc files. I use this in a lot of my projects and it works perfectly fine.