Fix robots.txt
All checks were successful
Build and Publish Docker Image / build (push) Successful in 23s
All checks were successful
Build and Publish Docker Image / build (push) Successful in 23s
This commit is contained in:
@@ -23,6 +23,35 @@ replyByEmail = false
|
|||||||
# mainSections = ["section1", "section2"]
|
# mainSections = ["section1", "section2"]
|
||||||
# robots = ""
|
# robots = ""
|
||||||
|
|
||||||
|
robots = [
|
||||||
|
"AdsBot-Google",
|
||||||
|
"Amazonbot",
|
||||||
|
"anthropic-ai",
|
||||||
|
"Applebot",
|
||||||
|
"Applebot-Extended",
|
||||||
|
"AwarioRssBot",
|
||||||
|
"AwarioSmartBot",
|
||||||
|
"Bytespider",
|
||||||
|
"CCBot",
|
||||||
|
"ChatGPT",
|
||||||
|
"ChatGPT-User",
|
||||||
|
"Claude-Web",
|
||||||
|
"ClaudeBot",
|
||||||
|
"cohere-ai",
|
||||||
|
"DataForSeoBot",
|
||||||
|
"Diffbot",
|
||||||
|
"FacebookBot",
|
||||||
|
"Google-Extended",
|
||||||
|
"GPTBot",
|
||||||
|
"ImagesiftBot",
|
||||||
|
"magpie-crawler",
|
||||||
|
"omgili",
|
||||||
|
"Omgilibot",
|
||||||
|
"peer39_crawler",
|
||||||
|
"PerplexityBot",
|
||||||
|
"YouBot",
|
||||||
|
]
|
||||||
|
|
||||||
disableImageOptimization = false
|
disableImageOptimization = false
|
||||||
disableImageOptimizationMD = false
|
disableImageOptimizationMD = false
|
||||||
disableTextInHeader = false
|
disableTextInHeader = false
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{{ if hugo.IsProduction }}
|
|
||||||
{{ range $robot := .Site.Params.robots }}
|
{{ range $robot := .Site.Params.robots }}
|
||||||
User-agent: {{ $robot }}
|
User-agent: {{ $robot }}
|
||||||
Disallow: /
|
Disallow: /
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ else }}
|
|
||||||
User-agent: *
|
|
||||||
Disallow: /
|
|
||||||
{{ end }}
|
|
||||||
Reference in New Issue
Block a user