# Spam-Filter basierend auf Schlüsselwörtern im Nachrichteninhalt?

**URL:** https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861
**Category:** Support
**Created:** [11. Februar 2019 um 19:25 UTC](https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861 "2019-02-11T19:25:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![DrBB](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@DrBB](https://meta.discourse.org/u/DrBB)
#### Post date: [11. Februar 2019 um 19:25 UTC](https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861/1 "2019-02-11T19:25:38Z")

</div>

One of the most persistent types of spam we get is a foreign language (Indonesian?) come-on for some kind of abortion pill. Since this is always always always garbage and unwanted, and uses terms that are unique to this particular spam that don’t correspond to any English words, I’ve been trying to see if there isn’t some way to automatically delete or blacklist such messages without pestering Admins to do it. I can blacklist certain emails and ISPs, but the originating spammers aren’t consistent so that doesn’t seem to work. This would be a matter of deleting anything with the terms “obat” or “aborsi” or “obat aborsi” in the content (they usually occur in the subject as well as the body text). Is this doable?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [11. Februar 2019 um 19:49 UTC](https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861/2 "2019-02-11T19:49:00Z")

</div>

There are a few options - you can block, auto-flag or require-approval on posts which contain certain words:

> [@Automatic Actions based on post content (Watched Words)](https://meta.discourse.org/t/automatic-actions-based-on-words-found-in-posts/66878):
>
> New for 1.9 is the ability to take some actions based on watched words found in a post. Block the post at the time it is submitted. User sees a message saying they’ve used a word that’s not allowed. Flag the post as inappropriate, but allow it to be submitted. Censor the words, which replaces the censored\_words site setting being removed by this feature. Require Approval of the post, hiding it until staff reviews it. add a Link to a word Replace words in posts with other words Tag the post aut…

---

<div class="post-metadata">

### Author: ![DrBB](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@DrBB](https://meta.discourse.org/u/DrBB)
#### Post date: [11. Februar 2019 um 20:59 UTC](https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861/3 "2019-02-11T20:59:56Z")

</div>

YES! That is exactly what we’re looking for. I’ll take it to the admin team and hopefully get it implemented by the senior staff. THANKS!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [12. Februar 2019 um 02:04 UTC](https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861/4 "2019-02-12T02:04:00Z")

</div>

If you are not running the Akismet plugin, you will have a bad time with this kind of stuff. I _STRONGLY_ recommend you install and use the Akismet plugin!

There is a reason this plugin defaults on for all our hosting.

---

<div class="post-metadata">

### Author: ![DrBB](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@DrBB](https://meta.discourse.org/u/DrBB)
#### Post date: [12. Februar 2019 um 02:23 UTC](https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861/5 "2019-02-12T02:23:51Z")

</div>

> [@codinghorror](#):
>
> If you are not running the Akismet plugin

We are. These things come up as flagged; it’s just that it’s unique (and annoying) enough that I was hoping for a way to filter it straight to trash.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [12. Februar 2019 um 02:35 UTC](https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861/6 "2019-02-12T02:35:41Z")

</div>

And you’ve reported all these as spam in the proper manner, so Akismet gets trained.. and it’s not flagging them as spam?

> [@Discourse Akismet](https://meta.discourse.org/t/discourse-akismet-anti-spam/109337):
>
> discourse2Summary Discourse Akismet allows you to fight spam with [Akismet](https://akismet.com/), an algorithm used by millions of sites to combat spam automatically.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-akismet](https://github.com/discourse/discourse-akismet)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)Features What does it do? Akismet helps keep your site free of spam by automatically scanning all posts from new users. Scanned posts that Akismet flags as spam are immediately removed f…

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [23. März 2019 um 07:06 UTC](https://meta.discourse.org/t/spam-filter-on-message-content-keywords/108861/12 "2019-03-23T07:06:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
