Hi @avcodewizard,
I came across this package, and it looks pretty promising, but upon diving into the code, I realized it doesn't actually block any visitors because it has a hard-coded IP address that is always used to retrieve the country.
|
$country = @$this->getLocationInfo('49.36.212.0')['data']['country']??null; |
Hi @avcodewizard,
I came across this package, and it looks pretty promising, but upon diving into the code, I realized it doesn't actually block any visitors because it has a hard-coded IP address that is always used to retrieve the country.
block-by-country/src/Middleware/BlockCountry.php
Line 14 in 1f15839