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
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.
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
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.