2

Possible Duplicate:
How do you implement a good profanity filter?

I am developing a web application, and do not want people to publish adult (pornographic) content.

So is there a service or a list of words which are porn related?

Or is there another way to filter adult content?

Community
  • 1
  • 1
enesness
  • 3,123
  • 5
  • 31
  • 33
  • 1
    http://stackoverflow.com/search?q=censor+censorship+obscenity – kennytm Mar 07 '10 at 08:55
  • This could have unintended consequences, such as the blocking of sexual health terms, such as "breast cancer" "safe sex" "condom", i also see many blogs that get around this by saying "p0rn" or [s]ex. – kyle k Jun 27 '13 at 00:55

3 Answers3

3

It can't be done, Disney failed.
If you restrict the words that can be used you'll just see things like this:

I want to stick my long-necked Giraffe up your fluffy white bunny

What you need is a good way for users to flag inappropriate content and a mechanism to deal with it swiftly. One way is to automatically hide/remove content if it's been flagged more than X times.

Nifle
  • 11,745
  • 10
  • 75
  • 100
  • I recommend WebPurify for their API profanity filter. They're constantly improving and upgrading their algorithms, so it just gets better over time: http://www.webpurify.com/ – Marshall Γ†on Oct 07 '15 at 03:28
0

Just be aware of the medireview problem when filtering ;-) It is quite easy to make a false positive when using simple text filtering algorithms. Maybe it's even worth considering Bayesian statistical classification approach used in spam filters.

naivists
  • 32,681
  • 5
  • 61
  • 85
0

Yes, here and here. Read: it cannot be done.

devio
  • 36,858
  • 7
  • 80
  • 143