Skip to content

Commit 77edd51

Browse files
authored
Update production.txt
1 parent 73edfc4 commit 77edd51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/nginx/sites/production.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,11 @@ location ~* ^/(?!topics/feed/?$|feed/?$).+/(feed|atom|rss2)/?$ {
430430

431431
location ~* \.php$ {
432432

433+
## allow only valid wordpress php entry points ##
434+
if ($uri !~ ^/(index\.php|wp-login\.php|wp-comments-post\.php|wp-signup\.php|wp-activate\.php|wp-admin/.*\.php)$) {
435+
return 444;
436+
}
437+
433438
## rate limiting for php requests ##
434439
limit_req zone=php_second burst=@LIMIT_REQUESTS_PHP_SECOND_BURST nodelay;
435440
limit_req zone=php_minute burst=@LIMIT_REQUESTS_PHP_MINUTE_BURST nodelay;

0 commit comments

Comments
 (0)