T
T
TechNOIR2019-05-23 15:52:29
Apache HTTP Server
TechNOIR, 2019-05-23 15:52:29

Apache. How to prohibit opening *.txt files in the root of the site?

Good afternoon.
How to prohibit opening *.txt files in the root of the site?
Through .htaccess?
I try

<Files "*.txt"> 
  deny from all 
</Files>

But site.com/test.txt still opens(
Thanks for the reply 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