A
A
Albert Kazan2020-02-21 10:47:46
htaccess
Albert Kazan, 2020-02-21 10:47:46

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

1 answer(s)
V
Vladimir Korotenko, 2020-02-21
@firedragon

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 question

Ask a Question

731 491 924 answers to any question