prevent direct access to json files

This commit is contained in:
Denis Duliçi
2021-02-10 00:40:59 +03:00
parent e251a14106
commit f8ffda26c7
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ server {
}
# Prevent Direct Access To modules/vendor Folders Except Assets
location ~ ^/(modules|vendor)\/(.*)\.((?!ico|gif|jpg|jpeg|png|js|css|less|sass|font|woff|woff2|eot|ttf|svg).)*$ {
location ~ ^/(modules|vendor)\/(.*)\.((?!ico|gif|jpg|jpeg|png|js\b|css|less|sass|font|woff|woff2|eot|ttf|svg).)*$ {
deny all;
}