View Full Version : Iframe and Google ads
glucarelli
02-14-2007, 05:37 PM
Is there a way to block or remove google ads inside this iframe code
<iframe frameborder="0" bordercolor="#FFFFFF" scrolling="no" width="100%" height="1050" src="http://www.kamone.net/webmaster/ptv.php"></iframe>
Why ?
Great page but very often google ads link to "Buy **** movies" wich is very annoying on a site where childrens goes :rolleyes:
djr33
02-14-2007, 06:24 PM
I'd assume you can set your preferences in google's options. They allow adult content filtered searching, so I'd assume they'd offer options on the ads.
...Or just don't put them on your page. Heh. Not all that complex. Google didn't j ust magically do it. You added the code to your page, so remove them.
If you at times need the page in an iframe and want the ads removed but not other times when it's not in an iframe (though I have no clue how this could possibly relate to kids), not sure if you'll have any luck there.
Note that if there is any thought of finding a way to trick the system, you won't... you don't get paid by google for having the ads on your page, but rather for people clicking them. So if you find a way to hide them, no one will click them, so there's no point in having them at all.
I also find it difficult to believe that **** is actually advertised on your site if it is 'clean' in nature. I'd think google would have more sense than that.
glucarelli
02-14-2007, 06:32 PM
It's not my page so i don't control anything inside this iframe.
This piece of code is a service offered to webmasters for having in their site tv programs.
I was searching for a long time this kind of code and found this very well made,unfortunatly sometime google ads inside this iframe link to adult site who sell **** dvd :(
Here is the link of a snapshot,you will see what i'm talking about :
Snapshot (http://img61.imageshack.us/img61/525/20070214211149bq0.jpg)
glucarelli
02-19-2007, 10:38 AM
Any advice ?
chechu
02-19-2007, 10:41 AM
I guess you should contact Google, and discuss this with them ?
mburt
02-19-2007, 11:08 AM
Do you have PHP enabled? If so...
<?php
$all = file_get_contents("thispage.htm");
$filter = str_replace('<iframe frameborder="0" bordercolor="#FFFFFF" scrolling="no" width="100%" height="1050" src="http://www.kamone.net/webmaster/ptv.php"></iframe>','',$all);
die($filter);
?>
Shotgun Ninja
02-19-2007, 02:15 PM
Ah, yes, a function named
die()
How amusing.
mburt
02-19-2007, 07:13 PM
die() rewrites the current file from point of execution. Example:
<html>
<head>
</head>
<body>
<?php die("test"); ?>
</body>
</html>
would output:
<html>
<head>
</head>
<body>
test
glucarelli
02-19-2007, 10:02 PM
Do you have PHP enabled? If so...
<?php
$all = file_get_contents("thispage.htm");
$filter = str_replace('<iframe frameborder="0" bordercolor="#FFFFFF" scrolling="no" width="100%" height="1050" src="http://www.kamone.net/webmaster/ptv.php"></iframe>','',$all);
die($filter);
?>
Thanks for the answer,PHP is enabled but i don't understand what i have to do with this code, i've writed this code in a file called test.php , launched it and nothing happen ?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.