-
Notifications
You must be signed in to change notification settings - Fork 2
REQ_BOT
Jurek Muszyński edited this page Dec 20, 2021
·
3 revisions
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 true if request is from a bot, otherwise false.
if ( !REQ_BOT )
++real_visits;