This document provides instructions on how to modify the zero-site-protector.php file in order to implement geolocation blocking, which allows you to block access to your website from specific countries by adding their IP range to the GEOLOCATION_DATA array and adding them to the GLOBAL_GEOLOCATION_BLACKLIST array.
// Before blocking, you must add the IP range of the country you want to block here.
define("GEOLOCATION_DATA", array(
"WORLD" => array("192.345.67.0", "192.345.67.255"),
// "AF" => array("41.77.128.0", "41.77.191.255"),
// "AL" => array("31.147.0.0", "31.147.255.255"),
// "DZ" => array("41.248.0.0", "41.255.255.255"),
// ... more country codes and ranges ...
));
// You can block access from a country using data from GEOLOCATION_DATA here.
define("GLOBAL_GEOLOCATION_BLACKLIST", ["WORLD"]);