Add fail2ban filter
This commit is contained in:
@@ -806,7 +806,10 @@ def add_comment(request, post_id, parent_id):
|
||||
|
||||
# Anti robot !!
|
||||
if request.POST['email'] != '':
|
||||
print 'fucking robot'
|
||||
if 'HTTP_X_REAL_IP' in request.META:
|
||||
print 'Dynastie : fucking robot %s' % (request.META['HTTP_X_REAL_IP'])
|
||||
else:
|
||||
print 'Dynastie : fucking robot %s' % (request.META['REMOTE_ADDR'])
|
||||
return HttpResponseRedirect(ref)
|
||||
|
||||
post = Post.objects.get(pk=post_id)
|
||||
|
Reference in New Issue
Block a user