A
A
Anastasia Umnova2021-11-11 13:25:41
htaccess
Anastasia Umnova, 2021-11-11 13:25:41

How to restrict access to xml file for users?

Added xml extension to nginx exceptions.
Added to the htaccess file:

<Files "tracking.xml">
Order deny,allow
Deny from all
</Files>

<FilesMatch ".(xml)$">
Deny from all
</FilesMatch>

On the local server, xampp works, when uploading the htaccess file to the hosting, it doesn't. What other ways can you restrict access to a file?

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