Files
photoprism/pkg/http/header/robots.go
2025-11-22 16:14:43 +01:00

20 lines
551 B
Go

package header
// RobotsRule represents a robots.txt directive rule.
type RobotsRule = string
// RobotsTag controls how pages are indexed and crawled by search engines:
// https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag#xrobotstag
const (
RobotsTag = "X-Robots-Tag"
)
// Standard Robots header values.
const (
RobotsAll RobotsRule = "all"
RobotsNone RobotsRule = "noindex, nofollow"
RobotsNoIndex RobotsRule = "noindex"
RobotsNoFollow RobotsRule = "nofollow"
RobotsNoImages RobotsRule = "noimageindex"
)