Skip to content

REQ_BOT

Jurek Muszyński edited this page Dec 20, 2021 · 3 revisions

bool REQ_BOT

Description

Determines whether request comes from a bot. Node++ maintains a list of keywords like bot or scanner and the list of all popular bots. If the request comes from a bot, user session is not created. You can also use this to better estimate number of visits to your site.

You can disable this with NPP_DONT_FLAG_BOTS.

Returns

Returns true if request is from a bot, otherwise false.

Example

if ( !REQ_BOT )
    ++real_visits;
Clone this wiki locally