Zum Inhalt

$is_ai_crawler

Indicates whether the request is from an AI training or search crawler.

Type

boolean (1/0)

Possible values

  • 1 (true) - The request is from an AI crawler.
  • 0 (false) - The request is not from an AI crawler.

Example

location / {
    if ($is_ai_crawler) {
        proxy_set_header X-AI-Crawler "true";
    }
    proxy_pass http://backend;
}