aboutsummaryrefslogtreecommitdiff
path: root/cgi/weabot.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/weabot.py')
-rwxr-xr-xcgi/weabot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py
index 29770f4..398ebfa 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -356,6 +356,9 @@ 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 addressIsUS(ip):
+ raise UserError, "Host en lista negra."
+
# open database
OpenDb()