Compose an X-Robots-Tag response header the way Google actually parses it — a global directive line for every crawler, plus optional per-bot lines (Googlebot: noindex, nofollow) that override the global one when the bot's user agent matches. Handles unavailable_after in RFC 822 & ISO 8601, the numeric limits max-snippet / max-image-preview / max-video-preview, and the newer indexifembedded. Also parses an incoming header dump and shows what each bot would see. Nothing leaves your browser.
Prefix the header value with a case-insensitive user-agent token & a colon. Bots that match take the specific line and ignore the global one; other bots stay on the global line.
index, follow — the default; setting it does nothing new.noindex, nofollow. If both none and any positive directive are present, the more restrictive wins.max-snippet and max-video-preview.noindex, allow indexing of content embedded via <iframe> in a page that is indexed.0 = none, -1 = unlimited.0 = a still, -1 = unlimited.noindex, index is noindex.