# Private message keyword scanner

**URL:** https://meta.discourse.org/t/private-message-keyword-scanner/107155
**Category:** Plugin
**Created:** [1월 22, 2019, 6:54오전 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155 "2019-01-22T06:54:06Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [1월 22, 2019, 6:54오전 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/1 "2019-01-22T06:54:07Z")

</div>

**Updated on 07.03.2023 and tested for 3.0 stable.** A new feature is included! A chat scanner. The same keywords set for your PM scan will trigger text inside chat conversations. However, to avoid lots of notifications, the chat scanner will send grouped reports after an X amount of time.

Update: [FIX: compatibility issues with Discourse v 2.2](https://github.com/worldismine/PM-Scanner/commit/32c3336845e9ce19c62319df720816e4a5756f84)

First, let me say that I am no developer, I only sponsored this work. I will not be able to support this in any way, but I will work with any potential contributors. I am just posting this plugin here to give back to the community.

## Background

This plugin may sound a tad controversial so let me explain why was this developed. Our discourse forum is a community marketplace. We facilitate sales of virtual items. This business model is plagued with scammers and conmen, who try to take advantage of our buyers/sellers. We try to stop them before they act, and they usually start working their victims via PMs. This is where we try to monitor malicious activity and stop them in their tracks, and this is why a PM scanner comes in handy.

## Plugin Description

The PM scanner scans all PMs sent on your Discourse instance and checks the body of text against a set of keywords you can enter in the settings. If a keyword is found, it sends a notification to all admins.

## Plugin Uses

This is a great plugin for keeping users in check who think that going private means that they can break your rules (scamming/spamming/being offensive/harassing). It could also be used for marketing purposes if your forum is e-commerce related.

# Plugin Features

Nothing much to write about. It adds an extra setting where you can enter the keywords in your admin panel, and that’s it. The rest is automatic, every time a word is triggered you will get a notification to the PM link (see image below). The plugin also ignores admin messages (basically, admins PM’s aren’t scanned). Also, the plugin only scans while a PM is being sent. There is no way to scan previous, unscanned messages.

## Plugin Issues

Currently, it also scans usernames. So, if a user has a word that is entered in your scanner settings, it will trigger the notification every time he/she posts a PM. Not a big issue, but its there.

## Plugin Repo

[https://github.com/worldismine/PM-Scanner](https://github.com/worldismine/PM-Scanner)

## Plugin Screenshots

 ![A](https://global.discourse-cdn.com/meta/original/3X/d/c/dca35ded27406bae0bc8dec142e09f63ade995b8.jpeg) ![Capture](https://global.discourse-cdn.com/meta/original/3X/e/e/ee10eb6aed3b36d393293fba4bfc643a8dd14b58.jpeg)

This is my second contribution to the community! A big thanks to the Discourse team and all the developers on this site.

---

<div class="post-metadata">

### Author: ![DNSTARS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnstars/32/100957_2.png) [@DNSTARS](https://meta.discourse.org/u/DNSTARS)
#### Post date: [10월 5, 2019, 4:51오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/6 "2019-10-05T16:51:22Z")

</div>

실제로 관리 패널에서 일반적으로 플래그가 지정된 감시 단어와 이 기능은 어떤 차이가 있나요? 공개된 텍스트를 스캔하지 않는다고 가정하면, 다르게 관찰된 경우가 아니라면 보고 방식에 큰 차이가 없을 것 같아서요. 🙂

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [10월 5, 2019, 5:05오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/7 "2019-10-05T17:05:34Z")

</div>

플래그가 지정된 감시 단어는 공개 게시물에서만 작동하지 않나요? 그리고 그것은 비속어를 차단하는 용도로 설계된 것 아닌가요? 저는 그 기능을 자세히 살펴본 적이 없습니다. 이 플러그인은 개인 메시지를 스캔하며, 키워드가 감지되었거나 관리자에게 알림이 전송되었다는 사실을 사용자에게 알리지 않습니다.

---

<div class="post-metadata">

### Author: ![DNSTARS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnstars/32/100957_2.png) [@DNSTARS](https://meta.discourse.org/u/DNSTARS)
#### Post date: [10월 5, 2019, 5:11오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/8 "2019-10-05T17:11:29Z")

</div>

아니요, 그건 어디에서나 작동하는 거예요. 그리고 사용자가 원하는 목적에 맞게 조정하도록 "설계"되어 있죠. 저는 사용자가 무언가가 _실제로_ 플래그가 되었다는 사실을 알리는 것이 사용자와 스태프 간의 신뢰를 더 높인다고 생각합니다.

우리는 사람들이 여기서 막으려는 일을 하지 못하도록 다양한 감시 표현을 사용하고 있어요. 가끔 이에 대한 질문을 받기도 하는데, 사람들이 우리가 어떤 것을 스크리닝하는지, 왜 그렇게 하는지 대략적인 수준에서 알고 싶어 합니다.

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [10월 5, 2019, 5:30오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/9 "2019-10-05T17:30:36Z")

</div>

그렇다면 제 플러그인은 쓸모없는 건가 😃 당신의 방식을 한번 살펴보겠습니다. 그러니까 개인 메시지에서 특정 키워드 세트를 감지하면 모든 관리자에게 알림을 보낼 수 있다는 뜻인가요?

---

<div class="post-metadata">

### Author: ![DNSTARS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnstars/32/100957_2.png) [@DNSTARS](https://meta.discourse.org/u/DNSTARS)
#### Post date: [10월 5, 2019, 8:18오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/10 "2019-10-05T20:18:22Z")

</div>

관리자/로그/감시단어에서 승인/표시/차단/편집 중 상황에 맞게 선택하세요.

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [10월 6, 2019, 10:30오전 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/11 "2019-10-06T10:30:17Z")

</div>

관리자에게 조용히 알림을 보낼 수 있는 옵션은 없으니, 이 플러그인이 꽤나 독특한 것 같네요 😃  
저희는 독특한 비즈니스 모델을 가지고 있어서 업계에 사기꾼이 많아요. 자동 플래깅과/또는 승인 요구를 하게 되면 대화에서 어떤 말을 할 수 있고 어떤 말을 할 수 없는지가 바로 드러나 사기꾼에게 유리해지거든요.

아무튼 이 플러그인은 저 말고는 다른 누군가에게는 쓸모없을 것 같다는 걸 어느 정도 예상하고 있었어요 😛 답변해 주셔서 감사합니다.

---

<div class="post-metadata">

### Author: ![kynic](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kynic](https://meta.discourse.org/u/kynic)
#### Post date: [5월 16, 2021, 12:10오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/18 "2021-05-16T12:10:36Z")

</div>

플러그인 설정을 클릭할 때 이 오류가 발생합니다.

 ![PM_Scanner](https://global.discourse-cdn.com/meta/original/3X/9/7/97c487a97f8c19242b4e19c04217e5472834b908.png)

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [5월 16, 2021, 5:14오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/19 "2021-05-16T17:14:19Z")

</div>

어떤 Discourse 버전을 사용 중이신가요? 제가 업데이트가 몇 개 뒤처져 있어서 그게 원인이 아닐까 싶습니다. 2~3주 안에 이 문제를 해결하고 업데이트가 나오면 이 스레드에 알려드리겠습니다.

---

<div class="post-metadata">

### Author: ![kynic](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kynic](https://meta.discourse.org/u/kynic)
#### Post date: [5월 16, 2021, 8:29오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/20 "2021-05-16T20:29:17Z")

</div>

감사합니다. 최신 버전을 사용 중입니다.

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [5월 25, 2021, 6:56오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/21 "2021-05-25T18:56:30Z")

</div>

2.7.0 안정판으로 업데이트되어 정상 작동합니다.

---

<div class="post-metadata">

### Author: ![kynic](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kynic](https://meta.discourse.org/u/kynic)
#### Post date: [5월 26, 2021, 7:13오전 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/22 "2021-05-26T07:13:02Z")

</div>

업그레이드 페이지에서 업데이트를 받지 못했습니다. 🙁

여기서는 아무것도 변경된 것 같습니다: [GitHub - worldismine/PM-Scanner: Custom PM scanner · GitHub](https://github.com/worldismine/PM-Scanner)

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [5월 26, 2021, 7:56오전 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/23 "2021-05-26T07:56:50Z")

</div>

죄송합니다. 업데이트라고 말씀드린 건 사실 저희 인스턴스를 2.7.0으로 업그레이드했다는 뜻이었어요. PM 스캐너는 여기에서 정상적으로 작동하므로 플러그인 자체는 업데이트가 필요하지 않았습니다. 저희 인스턴스에서는 이렇게 작동합니다:

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/d/2d678269658a0b3b15b5f657ac10bd95d5cae25c.png)

생각할 수 있는 유일한 가능성은 다른 플러그인이 충돌을 일으키고 있다는 것입니다.

---

<div class="post-metadata">

### Author: ![kynic](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kynic](https://meta.discourse.org/u/kynic)
#### Post date: [5월 26, 2021, 11:19오전 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/24 "2021-05-26T11:19:17Z")

</div>

문제는 설정에서 pm scanner를 검색하면 해당 설정 항목들이 표시된다는 것입니다.

하지만 "plugins"를 클릭한 다음 “pm scanner” 설정 "버튼"을 클릭하면 이렇게 표시됩니다.

[![](https://global.discourse-cdn.com/meta/original/3X/9/7/97c487a97f8c19242b4e19c04217e5472834b908.png) ](https://global.discourse-cdn.com/meta/original/3X/9/7/97c487a97f8c19242b4e19c04217e5472834b908.png)

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [5월 26, 2021, 3:25오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/25 "2021-05-26T15:25:01Z")

</div>

두 가지 방법 모두 시도해 봤는데, 내 환경에서는 잘 작동해요. ☹

---

<div class="post-metadata">

### Author: ![kynic](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kynic](https://meta.discourse.org/u/kynic)
#### Post date: [5월 26, 2021, 6:09오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/26 "2021-05-26T18:09:08Z")

</div>

제 최신 버전은 2.8.0.beta1입니다.

혹시 다른 분들도 이걸 볼 수 있나요? 다른 분들 버전에서는 정상 작동하나요? 🙁

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [6월 1, 2021, 6:04오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/27 "2021-06-01T18:04:02Z")

</div>

기다릴 수 있으시다면 2.8에 대한 업데이트를 제공할 예정입니다. 다만 안정판만 사용하므로 시간이 좀 걸릴 수 있습니다.

---

<div class="post-metadata">

### Author: ![kynic](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kynic](https://meta.discourse.org/u/kynic)
#### Post date: [1월 14, 2023, 5:44오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/28 "2023-01-14T17:44:38Z")

</div>

안녕하세요, 3버전에 맞게 이 부분을 업데이트해 주세요

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [1월 14, 2023, 7:13오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/29 "2023-01-14T19:13:11Z")

</div>

약 2~3주 내에 처리하겠습니다.

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [3월 6, 2023, 11:54오후 UTC](https://meta.discourse.org/t/private-message-keyword-scanner/107155/30 "2023-03-06T23:54:48Z")

</div>

**3.0 안정 버전에서 업데이트 및 테스트 완료.** 새로운 기능이 추가되었습니다! 채팅 스캐너입니다. 개인 메시지 스캔에 설정한 동일한 키워드 세트가 채팅 대화 내 텍스트를 감지합니다. 다만, 알림이 너무 많이 발생하지 않도록, 채팅 스캐너는 특정 시간(X)이 지난 후 그룹화된 보고서를 전송합니다.

[다음 페이지](https://meta.discourse.org/t/private-message-keyword-scanner/107155.md?page=2)
