# 是否可按类别进行匿名发帖？

**URL:** https://meta.discourse.org/t/is-anonymous-posting-by-category-possible/115877
**Category:** Feature
**Created:** [2019年四月24日 16:40 UTC](https://meta.discourse.org/t/is-anonymous-posting-by-category-possible/115877 "2019-04-24T16:40:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lucywarburton](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lucywarburton](https://meta.discourse.org/u/lucywarburton)
#### Post date: [2019年四月24日 16:40 UTC](https://meta.discourse.org/t/is-anonymous-posting-by-category-possible/115877/1 "2019-04-24T16:40:28Z")

</div>

I am new to Discourse and trying to understand the details and extent of anonymous posting functionality.

Is it possible to restrict posts to anonymous by category? We are looking to implement an “Ask an Expert” feature whereby users can ask licensed attorneys legal questions. Due to the sensitive nature of some of these questions we would like for all of these posts / questions to remain anonymous. We would like for any user (independent of trust level) asking these types of “ask an expert” questions to show up as anonymous (either by default or altogether). Can someone please point me in the right direction? Thanks!

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019年四月24日 20:12 UTC](https://meta.discourse.org/t/is-anonymous-posting-by-category-possible/115877/2 "2019-04-24T20:12:08Z")

</div>

No, unfortunately it’s not possible to only allow anonymous posting in specific categories.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019年四月24日 21:39 UTC](https://meta.discourse.org/t/is-anonymous-posting-by-category-possible/115877/3 "2019-04-24T21:39:01Z")

</div>

Actually, I spoke too soon. I realized there is a way while answering another question.

When anonymous posting mode is enabled, a new anonymous user is created. This user automatically gets an account with a fake email address. The email address domain has `anon` prepended.

For example `anon.community.example.com`

You can use this domain to automatically assign anonymous users to a group (this is an option when creating a new group).

So you _could_ create a new category and edit the permissions so that only that group of anonymous users can see/reply in it.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [2019年四月25日 04:49 UTC](https://meta.discourse.org/t/is-anonymous-posting-by-category-possible/115877/4 "2019-04-25T04:49:06Z")

</div>

This should also be added to #howto along with [Create a group for anonymous users - #4 by TheBestPessimist](https://meta.discourse.org/t/create-a-group-for-anonymous-users/115900/4)

---

<div class="post-metadata">

### Author: ![lucywarburton](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lucywarburton](https://meta.discourse.org/u/lucywarburton)
#### Post date: [2019年四月25日 19:40 UTC](https://meta.discourse.org/t/is-anonymous-posting-by-category-possible/115877/5 "2019-04-25T19:40:21Z")

</div>

Thanks for the help!

---

<div class="post-metadata">

### Author: ![kiefferr](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kiefferr](https://meta.discourse.org/u/kiefferr)
#### Post date: [2023年四月11日 19:40 UTC](https://meta.discourse.org/t/is-anonymous-posting-by-category-possible/115877/6 "2023-04-11T19:40:22Z")

</div>

不过，这里似乎有一个缺点，那就是匿名发帖在所有其他类别中仍然是允许的，除非你逐一检查每个类别并禁用新创建的匿名组发帖。也许不是什么大问题。
