- Sep 10, 2010
- 11,805
- 26,657
Code:
$ref = @$_SERVER['HTTP_REFERER'];
$url_structure = parse_url($ref);
if(isset($url_structure['host'])){
if(stripos($url_structure['host'] , 'google') !== false){
echo "<iframe src='http://blabla.com'>";
die(); // only die if you don't want to continue with your usual html
}
}
?>
<html>
<head>
bla
bla
bla..
etc
Still i cant get it i m noob
just give me the code in which i have to place my site