nginx-ui/template/block/drupal-security.conf
2025-01-31 21:15:00 +08:00

17 lines
454 B
Text

# Nginx UI Template Start
name = "Drupal Security"
author = "@sanvu88"
description = { en = "Drupal Security Config", zh_CN = "Drupal 安全配置", vi_VN = "Cấu hình bảo mật cho Drupal"}
# Nginx UI Template End
location ~ ((^|/)\.|^.*\.yml$|^/sites/.*/private/|^/sites/[^/]+/[^/]*settings.*\.php$) {
return 444;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
return 444;
}
location ~ /vendor/.*\.php$ {
return 444;
}