Aller au contenu

$is_bot

Indicates whether the request is made by a bot or crawler.

Type

boolean (1/0)

Possible values

  • 1 (true) - The request is from a bot or crawler.
  • 0 (false) - The request is not from a bot or crawler.

Example

location / {
    proxy_set_header X-Is-Bot $is_bot;
    proxy_pass http://backend;
}