aioseo_bad_bot_list

aioseo_bad_bot_list

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.7.7

apply_filters('aioseo_bad_bot_list') is found 1 times:

  • /app/Common/Tools/BadBotBlocker.php line 375
    	private function isBadBot() {
    		$botList = aioseo()->options->deprecated->tools->blocker->custom->enable
    			? explode( "\n", aioseo()->options->deprecated->tools->blocker->custom->bots )
    			: $this->botList;
    		$botList = apply_filters( 'aioseo_bad_bot_list', $botList );
    		if ( ! empty( $botList ) ) {
    			if ( ! isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
    				return false;
    			}
    			$ua  = ! empty( $_SERVER['HTTP_USER_AGENT'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ) : '';
    			$uas = $this->prepareList( $botList );