From 1bce88a78e36507882580f1ae1cae31b5dc682f2 Mon Sep 17 00:00:00 2001 From: BlenderDumbass Date: Fri, 6 Dec 2024 16:24:10 +0200 Subject: [PATCH] Made email protection a tit bit stronger --- icons/download.png | Bin 0 -> 4447 bytes modules/Render.py | 14 ++++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 icons/download.png diff --git a/icons/download.png b/icons/download.png new file mode 100644 index 0000000000000000000000000000000000000000..4309d0e832430fcf3429f95a7c48da130561fd8e GIT binary patch literal 4447 zcmeHLYj6|S6<*;QIdbfPn@P#Tjk=J;ZdvWFw0bQPwj=o=K*nRMwiBRuwGVl*q?M($ zC6iEG95)bX!ZS?>WSAr!7&}0rWx_y0cm#-BC`{eNZfSrago$ZtOq&wVw8lNVl3&xz zWIWUSvou%t?78QB_uTKEd!(y%73HN_x`%WKf@FEh+?CMhDJ^3J--~lW(-$68r4K&R-d735-Ndw)_q2++A*eLBGO}g4|0QupRycOiUl#Sv;YNjDs z(C>g|1o?jGJD`crC+9i_vhvDM--94&p^fyV9&d%-XdnrL$p-#}k)lZ>O_=qhg(gk3 z(FF5rc8x`(Al#;x188@EJFUOZ ztsCsx=>7AyHB`HQW}@It>33)RC@_NcZ83?R6AvPP)`8vHL$_aF(yCekxPfoO6mLoKd$K!EB z++>iV0i3kk?Kok?jYbSCuvkl2W)fI9Hd}#6Vz~Jj8xpR6t+r5%aY~c)XI2Nlj6fFK*_;^6c>t z96RbCX^IBbIGy^u#`n%jI0ToK zqqq~SN7k+ygO%4yyCt?s3D4tpqRRXqeL;;UpvVUx6)OcY@w2+BlQ zfP^ulYCal+OjIz{(y5Lp+d{))fLKP!Qvgu)uol`C?W}Z{y1gzu`ThD|8JXDWVx{m0@uSo@qpR(J`W-II(OJNjgWHH9? zCovPG2S-?06Uzt_(PNSz$C)T!6aXH9D@afE3re4-ZdCq6>v%n{>;e#mkw%O#j}S(s z2*Xng#+8~evSJ7RKb$yJgKC~i%Ga>P4_P>btA*bVYpzg z=w1Svdm?2|#o%_b^*8SYDsGp`-Qq!@s`0Ppa$v@_P&O|B=&6@6)|HZTQ}JW|uv`e|OW; zdk&Vh?*7z#QOY6Ggt)%j*Z&Biy>a1P?UnboojI4i`SHz`uD-o*EjC@MIahF}+5FV9 zc_Bethl=@KbG*5CeFtett6k;B`YR94d;LanO+3=G=2Pq4E;qV=`|KCGpY|8sJ_IBo Oh^M&Rz3<7oHU9;^m<-SW literal 0 HcmV?d00001 diff --git a/modules/Render.py b/modules/Render.py index 350d73a..e0b2ca1 100644 --- a/modules/Render.py +++ b/modules/Render.py @@ -19,6 +19,7 @@ from modules.Common import * KnownCookies = [] +ProbablyHumanCookies = [] RecentArticles = {} RefferedArticles = {} ProblematicRefreshes = [] @@ -809,7 +810,7 @@ def AccountPage(server, account): html = html + '' # Protecting emails and stuff from scrubbers - if server.cookie in KnownCookies: + if server.cookie in ProbablyHumanCookies: # Website @@ -1439,7 +1440,7 @@ def EditorPage(server): petition = article.get("petition", {}) petition_goal = petition.get("goal", "") petition_api = petition.get("api", {}).get("api", "") - petition_api_key = petition.get("api", {}).get("keys", []) + petition_api_key = petition.get("api", {}).get("keys", [""]) petition_api_title = petition.get("api", {}).get("title", "") petition_api_link = petition.get("api", {}).get("link", "") @@ -1569,7 +1570,7 @@ def ArticlePreview(article, Tabs, cookie=""): except: frac = 0 - html = html + ProgressBar(frac) + html = html + '
'+ProgressBar(frac) author = article.get("author", "") if author: @@ -1751,6 +1752,9 @@ def Graph(server, url): with open(Set.Folder()+"/tabs"+url+"/metadata.json", "w") as save: json.dump(article, save, indent=4) + + # If the cookie got all the way here, it is probably loaded by a person + ProbablyHumanCookies.append(server.cookie) send(server, html, 200) @@ -2036,6 +2040,8 @@ def Login(server): # Succesfull authentication else: + ProbablyHumanCookies.append(server.cookie) + account = Accounts[username] if "sessions" not in account: @@ -2336,7 +2342,7 @@ def DoComment(server): # Limiting bots from commenting if not server.cookie: - AccessDenied() + AccessDenied(server) return user = validate(server.cookie)