Results 1 to 9 of 9

Thread: Iframe and Google ads

  1. #1
    Join Date
    Jun 2006
    Posts
    42
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Iframe and Google ads

    Is there a way to block or remove google ads inside this iframe code

    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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2006
    Posts
    42
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    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
    Last edited by glucarelli; 02-14-2007 at 08:17 PM. Reason: Link to image

  4. #4
    Join Date
    Jun 2006
    Posts
    42
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Any advice ?

  5. #5
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    I guess you should contact Google, and discuss this with them ?

  6. #6
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Do you have PHP enabled? If so...
    Code:
    <?php
    $all = file_get_contents("thispage.htm");
    $filter = str_replace('<iframe frameborder="0" bordercolor="#FFFFFF" scrolling="no" width="100&#37;" height="1050" src="http://www.kamone.net/webmaster/ptv.php"></iframe>','',$all);
    die($filter);
    ?>
    - Mike

  7. #7
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ah, yes, a function named
    Code:
    die()
    How amusing.

  8. #8
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    die() rewrites the current file from point of execution. Example:
    Code:
    <html>
    <head>
    </head>
    <body>
    <?php die("test"); ?>
    </body>
    </html>
    would output:
    Code:
    <html>
    <head>
    </head>
    <body>
    test
    - Mike

  9. #9
    Join Date
    Jun 2006
    Posts
    42
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Quote Originally Posted by mburt View Post
    Do you have PHP enabled? If so...
    Code:
    <?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 ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •