From 388c7cfed4b7c6ee87c8ee8b56d8023406ad31d2 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 20 Feb 2024 14:49:47 +0900 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 879383d..8da109e 100644 --- a/server.py +++ b/server.py @@ -172,7 +172,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url): # convert to text text = data.decode(client_encoding, errors='ignore') - # check ID with VowelRatio10 strategy + # check ID with K-Anonymity strategy pattern = r'\b(?:(?<=\/@)|(?<=acct:))([a-zA-Z0-9]{10})\b' matches = list(set(re.findall(pattern, text))) if len(matches) > 0: @@ -190,7 +190,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url): return ratio > 0.2 and ratio < 0.7 filtered = not all(map(vowel_ratio_test, matches)) - # check an attached images (Not-CAPTCHA strategy) + # check an attached images (check images with Not-CAPTCHA strategy) if not filtered and len(matches) > 0 and truecaptcha_userid != '': def webp_to_png_base64(url): try: