We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68860ac commit 10bf01fCopy full SHA for 10bf01f
1 file changed
wordpress-fail2ban/block-bad-requests/wp-login-bad-request.inc.php
@@ -108,7 +108,8 @@ private function check() {
108
$server_name = isset( $_SERVER['SERVER_NAME'] ) ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST'];
109
110
// block non-static requests from CDN
111
- if ( ! empty( $this->cdn_headers ) ) {
+ // but allow robots.txt
112
+ if ( ! empty( $this->cdn_headers ) && 'robots.txt' !== $request_path ) {
113
$commons = array_intersect( $this->cdn_headers, array_keys( $_SERVER ) );
114
if ( $commons === $this->cdn_headers ) {
115
// workaround to prevent edge server banning
0 commit comments