если есть cloudflare и php, то так
$countries_to_block = array( 'IN', 'CN', 'PK', 'RU' );
if ( in_array( $_SERVER['HTTP_CF_IPCOUNTRY'], $countries_to_block ) ){
header( 'HTTP/1.1 301 Moved Permanently' );
header( 'Location:
https://domain.com/page.html' );
exit;
}