Need some help to rotate ads

Discussion in 'PHP' started by a4tech, Apr 2, 2013.

  1. #1
    Hello, My website contains adult sexual contents. Now I am wanted to put ads on my website. Is there any way that ads not shown to adult contents. That it scan the page for words like porn, sex, adult, nude.
    The contents that have the above words don't show ads other show.
    I am looking for help.

    Thank You.
     
    a4tech, Apr 2, 2013 IP
  2. ecstacy1119

    ecstacy1119 Greenhorn

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #2
    you can search for the text in the post content before outputting it to the browser

    then create a conditional statement and show or hide ads based on the result of the search
     
    ecstacy1119, Apr 3, 2013 IP
  3. edduvs

    edduvs Well-Known Member

    Messages:
    394
    Likes Received:
    31
    Best Answers:
    3
    Trophy Points:
    160
    #3
    The correct answer to the OP's question is yes. Ad units can and usually do a little bit of research before it sends a request to the ad server for the ad itself. Think about how ad servers deliver relevant ads for your content if not by checking it first.
     
    edduvs, Apr 3, 2013 IP