Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I would like to use adsense on my website. This website is filled by users (they put comments and links). Of course, adsense (and others I guess) does not want to put ads on pages containing illegal/adult content or links that points to that.

So, I want to track these bad contents the most easily possible : Is there a program or a web service to do that ?

share|improve this question
1  
Why don't you just moderate all your comments so you don't have to bother with the spammers? –  Anagio Jul 4 '12 at 15:04

1 Answer 1

up vote 0 down vote accepted

The only way to be sure is to filter/moderate the content.

An alternative solution is to rely on antispam filters, such as Akismet, to validate the user input. Whenever a content is published, make sure to send the content to Akismet and check for Akismet response to determine if it's ham or spam.

About filtering adult content, you can also implement a very simple filter in your site using a blacklist. List "blocked" words somewhere and check for the presence of any of the words every time a content is published.

Of course, you can chain all these filters altogether.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.