From 3961268744867949766239f8d3bd7a4f97cbb0c1 Mon Sep 17 00:00:00 2001 From: neptune Date: Sun, 25 Apr 2021 19:19:36 -0400 Subject: Prohibido Tor --- cgi/weabot.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cgi/weabot.py b/cgi/weabot.py index 8a9f82e..a54fd2b 100755 --- a/cgi/weabot.py +++ b/cgi/weabot.py @@ -403,10 +403,10 @@ class weabot(object): def make_post(self, ip, boarddir, parent, trap1, trap2, name, email, subject, message, file, file_original, spoil, oek_file, password, noimage, mobile): _STARTTIME = time.clock() # Comment if not debug - #if hostIsBanned(ip): - # raise UserError, "Sufijo de host en lista negra." - #if addressIsTor(ip): - # raise UserError, "Proxy prohibido." + if hostIsBanned(ip): + raise UserError, "Sufijo de host en lista negra." + if addressIsTor(ip): + raise UserError, "Proxy prohibido." # open database OpenDb() @@ -414,9 +414,9 @@ class weabot(object): # set the board board = setBoard(boarddir) - #if board["dir"] not in ["world"]: - # if addressIsProxy(ip) or addressIsBannedCountry(ip) or not addressIsES(ip): - # raise UserError, "Proxy prohibido en esta sección." + if board["dir"] not in ["world"]: + if addressIsProxy(ip) or addressIsBannedCountry(ip) or not addressIsES(ip): + raise UserError, "Proxy prohibido en esta sección." # check length of fields if len(name) > 50: -- cgit v1.2.1-18-gbd029