Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to unban an IP address? #16

Open
sankaet opened this issue Sep 28, 2014 · 6 comments
Open

How to unban an IP address? #16

sankaet opened this issue Sep 28, 2014 · 6 comments

Comments

@sankaet
Copy link

sankaet commented Sep 28, 2014

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

@groovecoder
Copy link
Collaborator

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

@Anton-Shutik
Copy link
Collaborator

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

@groovecoder
Copy link
Collaborator

@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.

@Anton-Shutik
Copy link
Collaborator

@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 ?

@groovecoder
Copy link
Collaborator

@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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants