跳转至

$bot_name

The $bot_name variable identifies the bot making the request.

Type

string

Possible values

  • Googlebot
  • GPTBot
  • ClaudeBot

Example

location / {
    proxy_set_header X-Bot-Name $bot_name;
    proxy_pass http://backend;
}