Hello,
Is there a way to only allow for example German IP adresses? I know this is possible with CloudFlare but I don't use it anymore as I use now HyperFilter.
Anyone an idea?
Hello,
Is there a way to only allow for example German IP adresses? I know this is possible with CloudFlare but I don't use it anymore as I use now HyperFilter.
Anyone an idea?
Try using
Code:<?PHP $country = geoip_country_name_by_name($_SERVER['REMOTE_ADDR']); $country = strtolower($country); if ($country != ("germany")){header("Location: http://myhotelurl/blocked"); exit();} ?>
Hopefully that will work.
Change "myHotelUrl" to your hotel url, and /blocked to what ever page you want to take them to.
Last edited by Alex Be; 23-12-14 at 02:47 PM.
This works, http://ip-api.com/docs/