diff options
author | neptune | 2021-04-25 19:19:36 -0400 |
---|---|---|
committer | neptune | 2021-04-25 19:19:36 -0400 |
commit | 3961268744867949766239f8d3bd7a4f97cbb0c1 (patch) | |
tree | 5f75c822fcd4c57c2cb179a5507d4599b05049e9 | |
parent | 8d56b3b9645559429f589d450373075ffa201be7 (diff) | |
download | weabot-3961268744867949766239f8d3bd7a4f97cbb0c1.tar.gz weabot-3961268744867949766239f8d3bd7a4f97cbb0c1.tar.xz weabot-3961268744867949766239f8d3bd7a4f97cbb0c1.zip |
Prohibido Tor
-rwxr-xr-x | cgi/weabot.py | 14 |
1 files 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: |