Skip to Content
Menu

is_bot()

Detect bot/crawler traffic.

PHP March 16, 2017

Usage

PHP
nebula()->is_bot()

Parameters

This function does not accept any parameters. Is this incorrect?

Additional Notes

This function requires the library Device Detection for advanced detection, but works with very basic functionality without it.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

    Located in /libs/Utilities/Device.php on line 323.

    No Hooks

    This function does not have any filters or actions available. Request one?
    PHP
            public function is_bot(){
                if ( !empty($this->get_bot_identity()) ){
                    return true;
                }
    
                return false;
            }
    

    Override

    This function can not be short-circuited with an override filter. Request one?