antonioribeiro / firewall

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

How do I test firewall blocker? #110

Open Flakturm opened 6 years ago

Flakturm commented 6 years ago

I've included "fw-block-attacks" in the route middleware in web.php. Now how do I test it and know it actually works?

Thanks.

almi9 commented 5 years ago

hi if you work on localhost, write that command php artisan firewall:blacklist 127.0.0.1

you should allowed database on config/firewall.php 'use_database' => true,

if you can't access that means you are blocked, you can remove your IP from phpmyadmin in firewall table

Flakturm commented 5 years ago

Hi, I am talking about attacks like too many request. How do I test it?

jimcouts commented 5 years ago

Hi, I am talking about attacks like too many request. How do I test it?

Create yourself or use a DDoS script?

joeseld commented 5 years ago

Hi, Is there's a way to test it if it's working now? I also encounter this issue. I tried using Postman's runner but it won't block the IP after 50 requests.

iamRahul1973 commented 3 years ago

What i did, was reduced the frequency from 5o to 10 in the config and accessed the protected route (with block-attacks middleware) more than 10 times and my ip got blacklisted