I see on IPB everything is done through the index.php file - does that mean it's going to be harder to do this with IPB? Or is the registration part easy to find and add my lines of code to it. Or is there a better solution (hooks, plugins etc) that can stop the registration?
$ip=$_SERVER['REMOTE_ADDR'];
$country = geoip_country_code_by_name($ip);
if ($country!="GB"){
header('Location: http://www.link to an error page');
exit;
}
It's vital this ONLY aborts on attempts to register and does not interfere with guests viewing the rest of the forum. In its current form this also only works at the start of the page (as it outputs a header to redirect).












