Loading an Iframe for a specific domain

Status
Not open for further replies.
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
 
It is more different from previous AND SOME CODES ARE MISSING
 
you both were kidding on me but his code doesnt worked thanks though
 
Sorry to say dude, please go and learn php first. You are the worst n00b I have ever faced. That last piece of code is tested on my own server. In one sentence, you don't deserve my help lol. Wasted my 15 minutes for ya.
you both were kidding on me but his code doesnt worked thanks though
 
Last edited:
Sorry to say dude, please go and learn php first. You are the worst n00b I have ever faced. That last piece of code is tested on my own server. In one sentence, you don't deserve my help lol. Wasted my 15 minutes for ya.

It is not working for me.
What I need now urgently is: iframe must be loaded only through google

Really need it ASAP.
 
Oh, you need it and you need it ASAP?

We have a freelancing section. Go there, hire someone and voila. Your ASAP need is gone.

People here have already given you suggestions on how to do it, if you can't bother fiddling with it yourself, that 's your problem.

Thread closed.
 
Status
Not open for further replies.
Back
Top