BOTDEFENSE::client_type

Description

This command returns the type of the client that sent the request.

Warning

Deprecated in BIG-IP Next v20.0.1


Syntax

BOTDEFENSE::client_type

Returns the client type. The returned value is one of the following strings: * bot - if the client was detected as a bot. * mobile_app - if the client is a mobile app using F5 Anti Bot mobile SDK. * browser - if the client is a Web browser. * uncategorized - if the client type could not be determined.

Examples

when BOTDEFENSE_ACTION {
    if {[BOTDEFENSE::client_type] eq "bot"} {
        set log "Request from a Bot on "
        append log "IP [IP::client_addr]"
        HSL::send $hsl $log
        HTTP::redirect "https://www.example.com/honeypot.html"
     }
}