diff --git a/daemon_get.py b/daemon_get.py index 0c61907e9..c640d6968 100644 --- a/daemon_get.py +++ b/daemon_get.py @@ -386,6 +386,8 @@ def daemon_http_get(self) -> None: # contradictory browsers within the user agent indicate # malevolent intent if check_mixed_user_agent(ua_str): + print('GET HTTP contradictory browsers within user agent ' + + str(self.headers)) http_400(self) return diff --git a/daemon_post.py b/daemon_post.py index a5519b465..b72a82893 100644 --- a/daemon_post.py +++ b/daemon_post.py @@ -286,6 +286,8 @@ def daemon_http_post(self) -> None: # contradictory browsers within the user agent indicate # malevolent intent if check_mixed_user_agent(ua_str): + print('POST HTTP contradictory browsers within user agent ' + + str(self.headers)) http_400(self) return diff --git a/scripts/invalid b/scripts/invalid index e5b1b5143..fb8f5fa0e 100755 --- a/scripts/invalid +++ b/scripts/invalid @@ -1,2 +1,2 @@ #!/bin/bash -journalctl -u epicyon | grep "invalid header\|invalid characters\|leech bounced\|LLM scraper\|suspicious\|bad path\|not wordpress\|attempt to access passwords\|GET Unknown request" +journalctl -u epicyon | grep "invalid header\|invalid characters\|leech bounced\|LLM scraper\|suspicious\|contradictory browsers\|bad path\|not wordpress\|attempt to access passwords\|GET Unknown request"