mirror of
https://github.com/9001/copyparty.git
synced 2026-11-21 12:16:33 +00:00
evict basic-browser from crawlers
This commit is contained in:
1 parent
b39ff92f34
commit
9270c2df19
1 file changed
+1
-1
@@ -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