I have a simple question I’ve been trying to solve for a while. So I’m making a website for my Roblox plugin where users will be able to share their creations. The plugin will fetch data from the website, but I need to make sure that the data is text filtered.
Is there a way I can filter text outside of Roblox with an api?
My goal is to filter the text on the website, on the server. I’m trying to avoid filtering it in the plugin to avoid bypasses.
That’s why I’m looking for a good web api.
I’ve already came across this but it has a problem. Using this api can lead to moderation action and if you are not logged in to roblox it does not work.
So basically the website will have it’s own text filter (www.purgomalum.com) for safety. To avoid issues, when the plugin fetches data from the website, it will filter the text on client side with the Roblox chat filter. Of course if someone changes the code of the plugin to remove that filter just to see some unfiltered text, that’s not my problem so I don’t think I can get in trouble.
Thanks for the help, everyone!
EDIT: I just realized that the text filter does not work in Studio, so I can’t filter the text with the plugin. I think I’ll just use PurgoMalum for text filtering. If anyone knows how to filter text with a plugin, please reply!
local function containsProfanity(text)
local url = "https://www.purgomalum.com/service/containsprofanity?text=" .. text
local response = HTTPService:GetAsync(url, true)
return response == "true"
end
if containsProfanity(inputText) then
TranslateRequestEvent:FireClient(player, "Censored")
return
end