A
A
Aljo2022-03-18 10:15:02
htaccess
Aljo, 2022-03-18 10:15:02

How to prohibit direct access not only to the category but also to the files?

Hello!

There are several categories on the site, direct access to which must be prohibited, and, accordingly, to files located in these categories. I created a .htaccess

file inside these categories and wrote in it:

order deny,allow
deny from all
allow from 127.0.0.1


When you open this category directly - everything works. issues 403. For example, when opening site.ru/includes

But if, for example, enter site.ru/includes/config.js , then the contents of the file can be easily opened

How to solve this issue? Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question