# Prevent certain words from being used

**URL:** https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737
**Category:** Ask for Help
**Created:** [March 16, 2022, 7:04pm UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737 "2022-03-16T19:04:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Joe\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_m/32/37348_2.png) [@Joe\_M](https://community.glideapps.com/u/Joe_M)
#### Post date: [March 16, 2022, 7:04pm UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737/1 "2022-03-16T19:04:09Z")

</div>

I have a used goods listing app ( like craigslist) for my local community. I want to prevent certain words from being used within the listing - my goal is to prevent the app from creating listings of illegal sales like guns etc…

---

<div class="post-metadata">

### Author: ![Alex\_x](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alex_x/32/40495_2.png) [@Alex\_x](https://community.glideapps.com/u/Alex_x)
#### Post date: [March 16, 2022, 7:17pm UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737/2 "2022-03-16T19:17:22Z")

</div>

Add a sanitization column checking the content, and show that one to your users.

You can use JS code (your own) or Experimental code (e.g. with a library from [keywords:profanity - npm search (npmjs.com)](https://www.npmjs.com/search?q=keywords:profanity)).

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [March 17, 2022, 12:41am UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737/3 "2022-03-17T00:41:03Z")

</div>

Do you have just some words to prevent from being used? Do you want to prevent them from being created or just hide them from the public?

---

<div class="post-metadata">

### Author: ![Joe\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_m/32/37348_2.png) [@Joe\_M](https://community.glideapps.com/u/Joe_M)
#### Post date: [March 18, 2022, 1:11pm UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737/4 "2022-03-18T13:11:33Z")

</div>

yes, I want to prevent any listing containing any banned(wording I do not want on my app) words from being able to post the listing

Maybe just an error message saying “banned content- can not list”

---

<div class="post-metadata">

### Author: ![Joe\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_m/32/37348_2.png) [@Joe\_M](https://community.glideapps.com/u/Joe_M)
#### Post date: [March 18, 2022, 2:48pm UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737/5 "2022-03-18T14:48:04Z")

</div>

It sounds like you have a good idea, however I am very new to this and would need a more detailed understanding of how to accomplish this, if you could spare the time!

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [March 18, 2022, 11:50pm UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737/6 "2022-03-18T23:50:21Z")

</div>

Do you already have the list of words to be banned? Is it a long list, if you have already constructed it?

---

<div class="post-metadata">

### Author: ![Joe\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_m/32/37348_2.png) [@Joe\_M](https://community.glideapps.com/u/Joe_M)
#### Post date: [March 25, 2022, 1:07pm UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737/7 "2022-03-25T13:07:45Z")

</div>

Yes, I have a list, and it is about 750 words so far.

---

<div class="post-metadata">

### Author: ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)
#### Post date: [March 26, 2022, 5:44am UTC](https://community.glideapps.com/t/prevent-certain-words-from-being-used/39737/8 "2022-03-26T05:44:44Z")

</div>

I found a solution here:

> [@Check for rude names?!](https://community.glideapps.com/t/check-for-rude-names/36841):
>
> Do you know of a way to check users do not adopt a rude user name? In my WORDL app, people enter a user name. Inevitably, there appears someone that enters a profanity. In this case, I would like to hide a button that completes the sign-in. It’s straightforward to check for perfect matches. But I would prefer a safer solution, which scans the name to see if it contains a banned text (vs. 1:1 exact match). AAA = AAA is quite straightforward AAA contains AAA is the challenge My app doesn’t…
