<?php
	$host= isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : "";
	preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
	$hostname= isset($matches[0]) ? $matches[0] : "";
	if(stristr($host,"click.mywebsearch.com.au")){
		$redirecturl="http://mywebsearch.com.au";
		header("Location: $redirecturl");
	} else {
		$redirecturl="http://validclick.net/";
		header("HTTP/1.1 301 Moved Permanently"); 
		header("Location: $redirecturl");
	}
	if(stristr($host,"64.182.127.215"))
	{
		$redirecturl="http://www.nbcsearch.com";
		header("Location: $redirecturl");
	} elseif (stristr($host, "205.144.163.203")){
		$redirecturl="http://www.namimedia.com";
		header("Location: $redirecturl");
	} elseif (stristr($host, "cheapstuff")){
		$redirecturl="http://cheapstuff.com/?d=1";
		header("Location: $redirecturl");
	} elseif (stristr($host, "rateit")){
		$redirecturl="http://rateit.com/?d=1";
		header("Location: $redirecturl");
	} elseif (stristr($host, "leisure")){
		$redirecturl="http://leisure.com/?d=1";
		header("Location: $redirecturl");
	} elseif (stristr($host, "items")){
		$redirecturl="http://items.com/?d=1";
		header("Location: $redirecturl");
	} elseif (stristr($host, "yield")){
		$redirecturl="http://yield.com/?d=1";
		header("Location: $redirecturl");
	} else {
		$redirecturl="http://www.".$hostname;
	}
?>
<HEAD><TITLE><?=$hostname?></TITLE>
    <meta name="google-site-verification" content="GByUoNfDBLt8i8E1uUhTEWd2d0ojufTdU0jsn52rUus" />
    <meta name="msvalidate.01" content="BB8FD1D0D693C164E0E92F0F370CF821" />
</HEAD>
<HTML>
<FRAMESET ROWS=*>
<FRAME SRC="<?=$redirecturl?>">
</FRAMESET>
<NOFRAMES><BODY>
<!--Alternate content when frames are not supported.-->
This Web site uses frames. If supported by your browser,
enable the feature. If not, consider updating your browser
to one that is frame-compliant. Otherwise,
<A HREF="<?=$redirecturl?>">
click here to enter</A>.
</BODY></NOFRAMES>
</HTML>

