Try Now
More in this section

Forums / Developing with Sitefinity / Profanity filter for content?

Profanity filter for content?

2 posts, 0 answered
  1. Doug
    Doug avatar
    34 posts
    20 Apr 2010
    21 Apr 2010
    Link to this post
    I have done some searching around google but I couldn't turn up any results for this.  Does Sitefinity provide a profanity filter for user submited content either out of the box or by way of an add-in?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    21 Apr 2010
    Link to this post
    Hi Doug Parsosn,

    There is no built-in add in or feature that could track profanity words out of the box. You could create a XML that collects rude words and by using RegularExpression you can match these words in a custom control/module.


    var words = new ArrayList();
    void Page_Load()
        string pathToDoc = server.MapPath("words.xml");
        XmlTextReader reader = new xmlTextReader(pathToDoc );
        while ((reader .Read())) {
            if (reader.NodeType == xmlNodeType.Text) {
    public string CheckString(string value)
        string element;
        string output
        foreach ( element in words ) {
            trace.write("Checking: " + element);
            value= value.Replace(element, "*this is a rude*");
        return value;

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered