How to block adsense from showing on certain pages.

Discussion in 'AdSense' started by steveinid, Nov 23, 2011.

  1. #1
    I have a forum where I used to run adsense. Somebody posted some pics that the adsense team thought was inappropriate so they stopped serving ads to my website. I've cleaned up the website and am ready to start running ads again. Before I appeal to adsense to get the ads running I want to ensure this doesn't happen again. I have a thread going that is over 30 pages long where these photos were posted. That thread is the only one going that might be a problem. I asked that they stop posting inappropriate photos but I can't guarantee it won't happen again. So, to keep on top of the situation, I want to prevent ads from showing up on that thread only. How do I do that? Robots.txt?.htaccess?

    I posted this in the Google adsense help forum but got no response.


    Any help would be appreciated.
     
    steveinid, Nov 23, 2011 IP
  2. cujo

    cujo Well-Known Member

    Messages:
    638
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    170
    #2
    Perhaps some PHP/Perl coding in spots (ie. header, body, footer) where the ads normally show? ie. if then else statements on showthread.php for example

    if ($thread !=2336234) {
    adsense code
    }

    My coding sucks and I am just guessing of course
     
    cujo, Nov 24, 2011 IP
  3. nirajkum

    nirajkum Active Member

    Messages:
    815
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #3
    well put another ads on pages which does not have proper pictures ..
     
    nirajkum, Nov 24, 2011 IP
  4. wonay

    wonay Well-Known Member

    Messages:
    468
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    140
    #4
    You could hire someone to check your site content and photos every single day and remove anything wrong before the spiders and pandas get you.
     
    wonay, Nov 24, 2011 IP
  5. thetechnologytimes

    thetechnologytimes Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    @steveinid Just simply generate your robots.txt file through the Google webmaster tools, that's ll be very easy for u.. and upload to your root directory :)
     
    thetechnologytimes, Nov 24, 2011 IP