Skip to content

REQ_BOT

Jurek Muszyński edited this page Sep 8, 2018 · 1 revision

bool REQ_BOT

Description

Determines whether request comes from a bot. Silgy 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.

Returns

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

Example

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