antonioribeiro / firewall

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

Is it possible to view the attack/activity log in an admin panel? #94

Open feltoxXx opened 7 years ago

feltoxXx commented 7 years ago

Hi, this is not an issue but a doubt... Is it possible to view the attack/activity log in an admin panel?

daniel-farina commented 6 years ago

I have the same question. I will install it and let you know.

antonioribeiro commented 6 years ago

Since the application may be dealing with lots of requests (hundreds of thousands), it's important for Firewall to be really fast, that's why it is not persisting visitors, only blacklisted/whitelisted IPs (if you prefer database). When someone hits your app, the hit record (ip address or country) is stored in cache, in a way we cannot really "list" them, can we list cache items in Laravel? And they have a TTL, so the cache is responsible for getting rid of the old visitors.

We could, of course, build a list, store it in cache (or even in database), but in what format (serialized array, json, binary list...)? How would we remove the old ones from the list? Always in a way it will not impact the app performance even if we have millions of visitors.