# 匿名モードによるスパム対策

**URL:** https://meta.discourse.org/t/protect-spam-via-anonym-mode/227569
**Category:** Support
**Tags:** anonymous-mode
**Created:** [2022 年 5 月 20 日午前 5:30 UTC](https://meta.discourse.org/t/protect-spam-via-anonym-mode/227569 "2022-05-20T05:30:55Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2022 年 5 月 20 日午前 9:18 UTC](https://meta.discourse.org/t/protect-spam-via-anonym-mode/227569/5 "2022-05-20T09:18:48Z")

</div>

その情報はデータベースに保存されており、投稿の背後にいる実際のユーザーを取得するために次のデータエクスプローラークエリを使用できます。IPアドレスを使用してユーザーを見つけることは正確ではありません。

```plaintext
-- [params]
-- int :topic_id
-- int :post_number

SELECT u.id AS user_id, p.id AS post_id
FROM users u
LEFT JOIN anonymous_users ua ON ua.master_user_id = u.id
LEFT JOIN posts p ON ua.user_id = p.user_id
WHERE p.topic_id = :topic_id AND p.post_number = :post_number

```

---

_[View the full topic](https://meta.discourse.org/t/protect-spam-via-anonym-mode/227569)._
