Answer the question
In order to leave comments, you need to log in
How to deny access to all files except index.php and some types?
Of course, you need to leave access to all sorts of pictures, styles and js scripts. You need to prohibit all files and all subdirectories.
Answer the question
In order to leave comments, you need to log in
Forbid listing
Options -Indexes
A scripts, when directly accessed, should redirect to the main page or display a blank screen.
See how it's done in word press
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question