mirror of
https://github.com/9001/copyparty.git
synced 2025-11-01 20:43:42 +00:00
evict basic-browser from crawlers
This commit is contained in:
@@ -3249,7 +3249,7 @@ class HttpCli(object):
|
||||
raise Pebkac(403)
|
||||
|
||||
self.html_head = vn.flags.get("html_head", "")
|
||||
if vn.flags.get("norobots"):
|
||||
if vn.flags.get("norobots") or "b" in self.uparam:
|
||||
self.out_headers["X-Robots-Tag"] = "noindex, nofollow"
|
||||
else:
|
||||
self.out_headers.pop("X-Robots-Tag", None)
|
||||
|
||||
Reference in New Issue
Block a user