antonioribeiro / firewall

Firewall package for Laravel applications
BSD 3-Clause "New" or "Revised" License
1.39k stars 163 forks source link

Proposal/Improvement: Allow custom Filter/Responder #125

Closed ilkermutlu closed 5 years ago

ilkermutlu commented 6 years ago

I'm planning to use this package for a different purpose: implement custom behavior for whitelisted IPs.

Background:

I'm currently applying middleware to check client IP address and putting some values to the request object depending on if they're listed in allowed IPs or not. My approach has been growing bulky lately. This package seems to do it faster than my approach.

I've tested in a very messy way that, the same thing can be accomplished using this package by altering the behavior of either the Filter or the Responder. I will be testing it against my live application as soon as possible.

Proposal:

I can go ahead and try to implement that if such functionality would be useful to others as well.

Please elaborate.

ilkermutlu commented 5 years ago

Closing this as it seems there is no interest.