antonioribeiro / firewall

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

Block IP by country doesn´t work propertly #67

Open mojv opened 7 years ago

mojv commented 7 years ago

Hi

I follow all the steps for the installation, and also enable 'enable_country_search' and 'use_database' and finally I ran the command 'php artisan firewall:blacklist country:co' (I installed geoip/geoip: ~1.14), all of this without any problem, but the thing is that it works with some IP's and with others it doesn't, but the weirdest thing is that with the IP that I have at my home, in the desktop computer the app is being blocked correctly, but when I use my cellphone (that is also connected to the home wirless) the app is not blocked.

I don't know what I am doing wrong.

Thanks in advance

antonioribeiro commented 7 years ago

Your home address might be using a local IP address, you have to make sure you are trying it from a public IP address. But...

Have you tried to install GeoIp2?

I made some tests and added some new things to it, like a command to update the database. Please give it another try.