Neutrino's Bad Word Filter API detects bad words, swear words, and profanity in given text, and censors it in a variety of different ways.
The Neutrino Profanity Filter block lets you run the API on real-time chat messages, content submissions, and more. Whenever a user publishes text, large or small, the block processes the text for profanity, and either blocks the publishing of the post, or sensors the specific words. After a certain number of violations, you can also block the user's IP address entirely.
IP address blocker blocks specific IP addresses from sending any message once the block detects bad words in messages from that address.
This block makes use of Neutrino API for bad words detection. Once it detects bad words in a message, that message is dropped and the IP address is added to Key Value Store. All further messages are blocked from that IP address. This block can be customized further to change the blocking and unblocking logic.
To learn more about neutrino API and getting keys, visit https://www.neutrinoapi.com/api/bad-word-filter
Publish a message containing a bad word on input channel. Input Channel: ip-address-blocker-channel
{ "text" : "< message to analyze for profanity >" }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.