added Drupal

This commit is contained in:
Szekeres Bálint
2018-07-26 13:24:00 +02:00
parent f64fd9d036
commit b622b0fd9a
7 changed files with 74 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
# Drupal: deny private files
location ~ ^/sites/.*/private/ {
deny all;
}
# Drupal: deny php in files
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
# Drupal: deny php in vendor
location ~ /vendor/.*\.php$ {
deny all;
}<span ng-if="isLimitReq()">
# Drupal: throttle user functions
location ~ ^/user/(?:login|register|password) {
limit_req zone=login burst=2 nodelay;
try_files $uri /index.php?$query_string;
}</span>