Code:
$referer = $_SERVER['HTTP_REFERER'];
if(!$referer == ''){
if(ereg('http' . ['1'];< > If ($ Referer == 'Google' or Referer == 'Baidu') {
? & Gt;
& lt; script language = "javascript" & gt;
& lt;- <🎜 <🎜
window.open ('http://123.xia8.com', 'ad', 'height=600, width=800, top=0,left=0,toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes')
//Write in one line
-->
.
}
}
?>
Usage: Modify the code, copy and insert it into the required PHP page.
Search engines can be added by themselves.
http://www.bkjia.com/PHPjc/631810.html