1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Do NOT load Ad code if page contains certain phrasse

Discussion in 'JavaScript' started by postcd, Sep 9, 2015.

  1. #1
    Please how we can show Advertisement code (example Google Adsense code) only if on that webpage is not phrasses like: sex, porn ?

    // update: here is some solution
     
    Last edited: Sep 9, 2015
    postcd, Sep 9, 2015 IP
  2. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #2
    I thought Google prohibited its ads on entire sites that have any adult content, not just individual pages.

    https://support.google.com/adsense/...0-635774219640327533-3839074565#Adult_content

    That may not necessarily apply to you, depending on what your content is. I just thought I would toss it out in case somebody finds it useful.
     
    billzo, Sep 9, 2015 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #3
    In your serverside script that loads the page you can scan the text that is being sent to the browser and if it's clean then add the ads.

    However... bear in mind what @billzo is saying
     
    sarahk, Sep 9, 2015 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #4
    Yeah, this just sounds fishy to me. The only reason to do it would STILL be a violation of most advertisers terms of service.

    The laugh being porn is typically less sleazy than said advertisers.
     
    deathshadow, Sep 10, 2015 IP