JS to hide certain code acording to the keywords in the domain?
Hi,
I need a piece of code that allows me to hide or show certain code depeding of certain keywords in the URL.
Basically I want to block adsense for all the urls in my site (search engine) that contains words in the URL like sex, drugs and the like to not infridge Google's TOS.
This cannot be done via JavaScript. Even if you used a script to remove the portions of code which contained certain words etc, GoogleBot and other crawlers/spiders would never be affected by those changes, as they don't execute scripts.
The Adsense control panel lets you block certain advertisers and the Google Ad Review Center lets you preview ads before they're shown on your site. You can block ones you don't like by selecting them and providing a reason for the rejection.