Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 514b8ac72a
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (11 sloc) 0.384 kb
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'occupywallst.settings'
from occupywallst import models as db
for username in sys.argv[1:]:
print "glining:", username
user = db.User.objects.get(username=username)
for ip in set([c.ip for c in user.comment_set.all()]):
if ip:
os.system('sudo ufw insert 1 deny from ' + ip)
Jump to Line
Something went wrong with that request. Please try again.