R
R
Roman2015-05-13 16:02:31
PHP
Roman, 2015-05-13 16:02:31

Is it possible to disable all files in a folder?

It is necessary to make all files absolutely inaccessible in a directive, for example, in /include.
Can this be done using htaccess?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Hinex, 2015-05-13
@emtecif

Create .htaccess in include folder and write theredeny from all;

P
PO6OT, 2015-05-14
@woonem

you can create a .htaccess file in the main folder of the site (if it doesn’t exist) and enter there:

<Location /include>
Order Deny,Allow
Deny from all
</Location>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question