Quote:
Originally Posted by CunningStunt
How best to do this? I can't find a reliable list of IP blocks to achieve this goal.
Or is there another way?
I have a ton of bandwidth intensive, rubbish traffic I want to block / redirect elsewhere.
|
Code:
<?php
$lang = ($_SERVER['HTTP_ACCEPT_LANGUAGE']);
if(preg_match("zh", $lang)) {
header("location: http://www.domain.com/china.html");
} else {
header("location: http://domain.com/");
}
?>