update .htaccess

This commit is contained in:
maxpozdeev 2025-02-21 22:18:46 +03:00
parent 8e926b1208
commit ac1df904ca
3 changed files with 18 additions and 0 deletions

View file

@ -11,6 +11,19 @@
# In Nginx set something like this:
# Deny access to some files and folders
#location ~ ^/(db|includes)/ {
# deny all;
#}
#location ~ /\.ht {
# deny all;
#}
#location ~* ^/ext/.*\.(json|md)$ {
# deny all;
#}
# Optional
# location /api/ {
# rewrite ^/api/(.*) /api.php/$1 last;
# }

5
src/ext/.htaccess Normal file
View file

@ -0,0 +1,5 @@
<FilesMatch "\.(json|md|MD)$">
Order deny,allow
Deny from all
</FilesMatch>

0
src/ext/index.html Normal file
View file