From 22c382ff68276283a43c6dac530dcb42701fc81c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 Jan 2021 23:22:14 +0000 Subject: [PATCH] Robots header options --- daemon.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/daemon.py b/daemon.py index 1973958f8..f9758b666 100644 --- a/daemon.py +++ b/daemon.py @@ -526,7 +526,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Host', callingDomain) self.send_header('WWW-Authenticate', 'title="Login to Epicyon", Basic realm="epicyon"') - self.send_header('X-Robots-Tag', 'noindex') + self.send_header('X-Robots-Tag', 'noindex, nofollow, noarchive, nosnippet') self.end_headers() def _logout_headers(self, fileFormat: str, length: int, @@ -538,7 +538,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Host', callingDomain) self.send_header('WWW-Authenticate', 'title="Login to Epicyon", Basic realm="epicyon"') - self.send_header('X-Robots-Tag', 'noindex') + self.send_header('X-Robots-Tag', 'noindex, nofollow, noarchive, nosnippet') self.end_headers() def _logout_redirect(self, redirect: str, cookie: str, @@ -553,7 +553,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Host', callingDomain) self.send_header('InstanceID', self.server.instanceId) self.send_header('Content-Length', '0') - self.send_header('X-Robots-Tag', 'noindex') + self.send_header('X-Robots-Tag', 'noindex, nofollow, noarchive, nosnippet') self.end_headers() def _set_headers_base(self, fileFormat: str, length: int, cookie: str, @@ -571,7 +571,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Cookie', cookieStr) self.send_header('Host', callingDomain) self.send_header('InstanceID', self.server.instanceId) - self.send_header('X-Robots-Tag', 'noindex') + self.send_header('X-Robots-Tag', 'noindex, nofollow, noarchive, nosnippet') self.send_header('X-Clacks-Overhead', 'GNU Natalie Nguyen') self.send_header('Accept-Ranges', 'none') @@ -657,7 +657,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Host', callingDomain) self.send_header('InstanceID', self.server.instanceId) self.send_header('Content-Length', '0') - self.send_header('X-Robots-Tag', 'noindex') + self.send_header('X-Robots-Tag', 'noindex, nofollow, noarchive, nosnippet') self.end_headers() def _httpReturnCode(self, httpCode: int, httpDescription: str, @@ -677,7 +677,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Content-Type', 'text/html; charset=utf-8') msgLenStr = str(len(msg)) self.send_header('Content-Length', msgLenStr) - self.send_header('X-Robots-Tag', 'noindex') + self.send_header('X-Robots-Tag', 'noindex, nofollow, noarchive, nosnippet') self.end_headers() if not self._write(msg): print('Error when showing ' + str(httpCode))