aioseo_good_bot_list

aioseo_good_bot_list

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

See hook in core

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

apply_filters('aioseo_good_bot_list') is found 1 times:

  • /app/Common/Tools/BadBotBlocker.php line 337
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
        'Yahoo! Slurp' => 'crawl.yahoo.net',
        'googlebot'    => '.googlebot.com',
        'msnbot'       => 'search.msn.com',
    ];
    $botList = apply_filters( 'aioseo_good_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 );