I don't want my Google ads to be displayed on a certain domain when my website is viewed on that said domain.
Are these codes able to prevent that from happening, if so, where do put them?
PHP Code:If(str_replace('www.', '', $_SERVER['server_name']) == $domain)
{
die();
}
PHP Code:function display_adsense()
{
If(str_replace('www.', '', $_SERVER['server_name']) == $domain)
{
return FALSE;
}
else
{
return TRUE;
}
}
PHP Code:if(display_adsense())
echo "adsense code";
}


LinkBack URL
About LinkBacks






Reply With Quote
