diff --git a/modules/aioseop_bad_robots.php b/modules/aioseop_bad_robots.php index 975d65335..bf3f6d198 100644 --- a/modules/aioseop_bad_robots.php +++ b/modules/aioseop_bad_robots.php @@ -216,6 +216,11 @@ function filter_bad_botlist( $botlist ) { * @param string $msg */ function blocked_message( $msg ) { + + if ( ! $this->option_isset( 'track_blocks' ) ) { + return; // Only log if track blocks is checked. + } + if ( empty( $this->options["{$this->prefix}blocked_log"] ) ) { $this->options["{$this->prefix}blocked_log"] = ''; }