[Need WP PHP CODER]

Status
Not open for further replies.

akwin4565

Junior Member
Joined
Dec 1, 2013
Messages
134
Reaction score
7
---- THREAD CLOSED 06/17/2014 ----
Hi I need a wordpress php coder for my website.
Firstly I have an iframe in my site and wanted that iframe to be visible only if it comes from google.
The code I found by googling is below:

$referer = $_SERVER['HTTP_REFERER'];
$url = "google.com";
if(eregi($url,$referer)) {

I don't know where should I keep my iframe.If you can do it I would hire you.
 
Code:
if (strpos($_SERVER['HTTP_REFERER'],'google') !== false) {
    echo '<iframe src="http://www.site.com"></iframe>';
}
 
Hi,

You can also try this.

$refere_array=explode('.', $_SERVER['HTTP_REFERER']);

if(in_array('google', $refere_array)){
echo '<iframe src="YOUR_PATH"></iframe>';
}

catch me on skype if you still have any problem?
 
Iframe not loading when I pass through google help
 
this is totally different from what I need
 
It's better to block Googlebot using an .htaccess file however you can achieve similar results using PHP:

Code:
if (!strpos($_SERVER['HTTP_USER_AGENT'],"Googlebot"))  {
 // content here won't be crawled and indexed by Google
}
 
Last edited:
Hi
I am Wordpress developer
can fix your problem
check PM :)
 
Status
Not open for further replies.
Back
Top