$bot_category
The $bot_category variable indicates the category of a bot making the request.
Type
string
Possible values
search_engineai_crawlercrawlermonitoringscraper
Example
location / {
if ($is_bot) {
set $cache_key "bot:$bot_category:$request_uri";
proxy_set_header X-Bot-Category $bot_category;
}
proxy_cache_key $cache_key;
proxy_pass http://backend;
}