block more user-agents.

This commit is contained in:
fiatjaf
2024-09-26 10:17:28 -03:00
parent a252707ab5
commit 567fdbb619
2 changed files with 28 additions and 3 deletions

View File

@@ -7,7 +7,23 @@ import (
func renderRobots(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "max-age=3600")
fmt.Fprintf(w, `User-agent: *
fmt.Fprintf(w, `
User-agent: Amazonbot
Disallow: /
User-agent: SemrushBot
Disallow: /
User-agent: meta-externalagent
Disallow: /
User-agent: DataForSeoBot
Disallow: /
User-agent: dotbot
Disallow: /
User-agent: *
Allow: /
Sitemap: https://%s/npubs-archive.xml