django-banish icon indicating copy to clipboard operation
django-banish copied to clipboard

How to unban an IP address?

Open sankaet opened this issue 11 years ago • 6 comments

Hey guys, is there a way to unban an ip address?

sankaet avatar Sep 28 '14 13:09 sankaet

You can delete the banishment object in the django admin UI, right?

groovecoder avatar Jan 15 '15 15:01 groovecoder

@groovecoder right, but you also need to reset a cache.

Anton-Shutik avatar Jan 15 '15 15:01 Anton-Shutik

@Anton-Shutik there's a post_save signal handler on Banishment objects that should update the cache ... at least for ip-address bans Is it not working? I just tested this locally and it seemed to work fine.

groovecoder avatar Jan 15 '15 16:01 groovecoder

@groovecoder Yeah, but will it remove banishment from cache when deleting Banishment model instance ? So, for instance I have ip-address banned '42.42.42.42'. Will it be unbanned after just deleting Banishment object from admin ?

Anton-Shutik avatar Jan 16 '15 07:01 Anton-Shutik

@Anton-Shutik that's exactly how it worked for me. As soon as I deleted the banishment object from the admin site, I was able to get back to my site from the IP address. At the very least, you should verify this and close this issue if it already works.

groovecoder avatar Jan 16 '15 13:01 groovecoder

Anyone been able to reproduce this bug? Or can we close it?

groovecoder avatar Feb 12 '15 15:02 groovecoder