From cda663297377c03b0416866f472552874daea442 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Sun, 30 Jan 2022 15:13:00 +0000 Subject: [PATCH] Ignore self calls to nodeinfo --- daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon.py b/daemon.py index 0dcd6da04..8e0b715bd 100644 --- a/daemon.py +++ b/daemon.py @@ -1134,6 +1134,9 @@ class PubServer(BaseHTTPRequestHandler): def _nodeinfo(self, ua_str: str, calling_domain: str) -> bool: if not self.path.startswith('/nodeinfo/2.0'): return False + if calling_domain == self.server.domain_full: + self._404() + return True if self.server.debug: print('DEBUG: nodeinfo ' + self.path) self._update_known_crawlers(ua_str)