One Filthy Word at a Time:
www.theFilthyFilter.com






Implementation Examples:
ASP .NET Web Service: http://www.thefilthylist.com/api/thefilthyfilter_Free_Classic.asmx
        
        using System;
        using System.Collections.Generic;
        using System.Web;
        using System.Web.UI;
        using System.Web.UI.WebControls;
        using filthyClient.com.thefilthylist.www;

        namespace filthyClient
        {
            public partial class _Default : System.Web.UI.Page
            {
                protected void Page_Load(object sender, EventArgs e)
                {
                    theFilthyFilter_Free_Classic filter = new theFilthyFilter_Free_Classic();

                    string exampleAuthArgs = "{'authKey':'YourApiKey','url':'www.YourWebsite.com'}";

                    string filthyText = "Unsanitized String";

                    bool containsBadWord =  filter.checkWord(exampleAuthArgs, filthyText);

                    string sanitizedText =  filter.cleanReplace(exampleAuthArgs, filthyText);

                }
            }
        }
        

       
        //Submit text, response will return true or false
        
        //BOOLEAN: checkWord(authKey,textstring)
        //RETURNS: {'isFilthy':'true || false'} 
        
        $.post("http://www.theFilthyList.com/api/tfl_Free.aspx", { 
checkWord: 'true', cleanText: '{ \'authKey\': \'YourApiKey\', \'textstring\': \'YourFilthyWord\' }'
},function(data) { alert(data); }); //Submit a block of text less than 2000 characters and bad words //will be replaced with Astericks ******** //STRING: cleanReplace(authKey,textstring) //RETURNS: {'cleantext':'YourCleanText'} $.post("http://www.theFilthyList.com/api/tfl_Free.aspx", {
cleanReplace: 'true', cleanText: '{ \'authKey\': \'YourApiKey\', \'textstring\': \'YourFilthyWords\' }'
},function(data) { alert(data); });

    
        //Submit text, response will return true or false
        
        //BOOLEAN: checkWord(authKey,textstring)
        //RETURNS: {'isFilthy':'true || false'} 
        
        var url:String = "http://www.theFilthyList.com/api/tfl_Free.aspx";
        var request:URLRequest = new URLRequest(url);
        var variables:URLVariables = new URLVariables();
        variables.checkWord = true;
        variables.cleanText: '{ \'authKey\': \'YourApiKey\', \'textstring\': \'YourFilthyWord\' }'
        request.data = variables;
        
        //example usage
        var loader:URLLoader = new URLLoader();
        loader.addEventListener(Event.COMPLETE, onComplete)  
        loader.load(request); 
        
        //Submit a block of text less than 2000 characters and bad words 
        //will be replaced with Astericks ********
        
        //BOOLEAN: cleanReplace(authKey,textstring)
        //RETURNS: {'cleantext':'YourCleanText'} 
        
        var url:String = "http://www.theFilthyList.com/api/tfl_Free.aspx";
        var request:URLRequest = new URLRequest(url);
        var variables:URLVariables = new URLVariables();
        variables.cleanReplace = true;
        variables.cleanText: '{ \'authKey\': \'YourApiKey\', \'textstring\': \'YourFilthyWords\' }' 
        request.data = variables;
        
        //example usage
        var loader:URLLoader = new URLLoader();
        loader.addEventListener(Event.COMPLETE, onComplete)      
        loader.load(request); 
        
        function onComplete (e:Event):void{ 
        var d = e.target.data;
        }