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

support to ban by visiter not users #42

Closed
badrshs opened this issue Jun 14, 2019 · 2 comments
Closed

support to ban by visiter not users #42

badrshs opened this issue Jun 14, 2019 · 2 comments

Comments

@badrshs
Copy link
Contributor

badrshs commented Jun 14, 2019

Hi, Does this package support ban visiter ??? no user here , I want to ban the visiter based on his ip address.
So I will have additional table related to the ip address im going to block

thank you for helping :)

@antonkomarev
Copy link
Member

antonkomarev commented Jun 14, 2019

Hi @badrshs! This question was raised before: #20
Since Bannable model is polymorphic - IP address model could be banned. Just write your middleware to check for it.
It's not an optimal way how to solve IP address bans, but if application is small it's a viable option.

@badrshs
Copy link
Contributor Author

badrshs commented Jun 14, 2019

haaa , good idea , I didnt think about that 😁😁

thanks

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

No branches or pull requests

2 participants