View Single Post
Old 05-16-2009, 10:37 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,532
Quote:
Originally Posted by CunningStunt View Post
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/"); 
} 
?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote