# Display Reason for Automatic Blocks by System

**URL:** https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702
**Category:** Feature
**Created:** [May 5, 2016, 2:48am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702 "2016-05-05T02:48:08Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![TimeDoctor](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@TimeDoctor](https://meta.discourse.org/u/TimeDoctor)
#### Post date: [May 5, 2016, 2:48am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/1 "2016-05-05T02:48:08Z")

</div>

I’ve got a user who just messaged me because he was banned. Here’s what the logs page says about him: (bottom entry)

 ![](https://global.discourse-cdn.com/meta/original/3X/6/0/60a6e1019552d6cfe9d54e27edf6db166d940c4e.png)

Nothing shows up in screened emails or screened ips for why this user might be banned. What cases are there where a reason wouldn’t show up in one of these places?

From my searching it looks like the only one is that they copy and pasted text from another document to insert into a post too quickly.

---

<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: [May 5, 2016, 4:47am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/2 "2016-05-05T04:47:38Z")

</div>

Check that users private messages and it should be clear. This would only affect a new user.

---

<div class="post-metadata">

### Author: ![TimeDoctor](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@TimeDoctor](https://meta.discourse.org/u/TimeDoctor)
#### Post date: [May 5, 2016, 5:08am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/3 "2016-05-05T05:08:48Z")

</div>

The only PMs the new user has are the default welcome message and then a generic account blocked message?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 5, 2016, 5:29am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/4 "2016-05-05T05:29:58Z")

</div>

> [@TimeDoctor](#):
>
> a generic account blocked message

That’s what the member is calling a “ban”

You should be able to go to his Admin Users page and un-block him.

---

<div class="post-metadata">

### Author: ![TimeDoctor](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@TimeDoctor](https://meta.discourse.org/u/TimeDoctor)
#### Post date: [May 5, 2016, 5:32am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/5 "2016-05-05T05:32:52Z")

</div>

Ban or block, I want to know why the system decided to do this for sure and without digging further than I have. It should be available on the “Staff actions” page.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 5, 2016, 5:35am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/6 "2016-05-05T05:35:59Z")

</div>

My guess is because they are a New user (i.e. they didn’t spend any time looking around) and they went straight to posting. And because they copy-pasted instead of spending the three seconds or more typing, they failed the rate limit test.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [May 5, 2016, 5:47am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/7 "2016-05-05T05:47:44Z")

</div>

I’m with @TimeDoctor here. There shouldn’t be a need to “guess” why the system blocked a user, new or not. If the system initiates a block, there needs to be details in the logs so staff knows what is going on.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 5, 2016, 5:52am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/8 "2016-05-05T05:52:00Z")

</div>

Yes, a type of “you failed New member Rate Limiting” message would be better than a generic “You’ve been blocked” for the rare times it happens to a legit member.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [May 5, 2016, 5:52am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/9 "2016-05-05T05:52:57Z")

</div>

While custom PMs for auto-blocking would be nice, I am talking (and I believe @TimeDoctor is too) about the staff logs, not the PM.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [May 5, 2016, 8:34pm UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/10 "2016-05-05T20:34:46Z")

</div>

FWIW, I had this happen on my site this week, and for a longtime email-only user (a trusted staff colleague of mine, in fact) who was surprised and a bit annoyed to get the automated message below from me in response to a post. I wrote in [another topic about email only users needing an automatic pathway to full citizenship](https://meta.discourse.org/t/create-an-automatic-pathway-to-tl1-and-tl2-for-email-only-users/43676).

In the case of this automated email, it says “multiple community members flagged this post before it was hidden” which in this case I know is not true. She was just still a TL0 new user (because she rarely logs in) and hit a linking threshold that triggered the automatic flagging.

So some more granularity in the _reason_ given for the flagging would be helpful. Both for the user trying to post and for moderators trying to help users caught in this predicament. I am not sure at all how best to do this (maybe templates with a dedicated spot to insert the reason?) and it’s not been a big issue yet on my site - we very rarely get flagged posts.

 ![](https://global.discourse-cdn.com/meta/original/3X/0/e/0eaf4d057c92b2b4c1f6f257d6e7e6f669f90db3.png)

---

<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: [May 5, 2016, 8:38pm UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/11 "2016-05-05T20:38:43Z")

</div>

Your issue is completely unrelated to this topic – the blocked pm says blocked.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 5, 2016, 9:41pm UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/12 "2016-05-05T21:41:19Z")

</div>

> [@codinghorror](#):
>
> the blocked pm says blocked.

It also says “by a staff member” which feels a bit incorrect (though system _does_ have a reputation to maintain after all), but otherwise looks good to me.

```
subject_template: "Account temporarily blocked"
text_body_template: |
Hello,

This is an automated message from %{site_name} to inform you 
that your account has been temporarily blocked as a precautionary 
measure.

Please do continue to browse, but you won't be able to reply or 
create topics until a [staff member](%{base_url}/about) reviews your
account. We apologize for the inconvenience.

For additional guidance, please refer to 
our [community guidelines](%{base_url}/guidelines).

```

---

<div class="post-metadata">

### Author: ![probus](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@probus](https://meta.discourse.org/u/probus)
#### Post date: [May 6, 2016, 6:49am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/14 "2016-05-06T06:49:23Z")

</div>

This has come up before..

[https://meta.discourse.org/t/who-is-banning-my-users/42628/](https://meta.discourse.org/t/who-is-banning-my-users/42628/)

> [@Users Automatically Blocked by System](https://meta.discourse.org/t/users-automatically-blocked-by-system/41579):
>
> I have noticed that the system automatically blocks some new users. These appear to be normal users who don’t have the same IP as anyone else and in most cases haven’t posted a single thing. Why are these users blocked?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [May 6, 2016, 7:04am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/15 "2016-05-06T07:04:24Z")

</div>

Looking back in time, it seems this has come up many time before. Interestingly, it seems @zogstrip put in a fix 2 months ago when I reported it (totally forgot I reported this 😆).

> [@User blocked for no apparent reason](https://meta.discourse.org/t/user-blocked-for-no-apparent-reason/41251):
>
> So…the other day (well, 14 days ago, but I forgot…) we noticed that a user on Stonehearth was blocked, and we can’t figure out why! For the Discourse devs, here is the PM where we discussed the randomly blocked user: [http://discourse.stonehearth.net/t/did-anyone-block-a-user-lately/20556?u=jomaxro](http://discourse.stonehearth.net/t/did-anyone-block-a-user-lately/20556?u=jomaxro) Both moderators (myself and @8bitcrab) and admins (@sdee and @brad) on the site checked the logs, and we confirmed on Slack that no-one initiated the block manually. No posts appeared for approval …

> [@User blocked for no apparent reason](https://meta.discourse.org/t/user-blocked-for-no-apparent-reason/41251/5):
>
> I checked and what @codinghorror described is what happened. User was automatically blocked because they were identified as a fast typer (ie. they copied and pasted something).
> 
> It was unfortunately not logged, so I fixed it 😉

[https://github.com/discourse/discourse/commit/f15d463eb8a73edd180ec0d6f3eff15187eded51](https://github.com/discourse/discourse/commit/f15d463eb8a73edd180ec0d6f3eff15187eded51)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 6, 2016, 10:46am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/16 "2016-05-06T10:46:07Z")

</div>

I don’t think his commit added a message, see (there is no message parameter)

> <https://github.com/discourse/discourse/blob/f15d463eb8a73edd180ec0d6f3eff15187eded51/lib/new_post_manager.rb#L85-L87>

---

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [May 7, 2016, 11:56am UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/17 "2016-05-07T11:56:11Z")

</div>

This crops up from time to time on our instance, too. The log shows a new user as being blocked, but there is nothing to indicate why.

There was one this morning when I logged in. I can see that he has three private topics, so presumably the System has PM’d him, but as a moderator, I have no access to those messages. I did what I usually do in the absence of other information and unblocked him. Does the system then send him another message to let him know his account has been unblocked? I ask because I’m not aware of any of the new members I’ve unblocked returning to post, so I’m concerned that they’re giving up and going elsewhere.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 7, 2016, 5:41pm UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/18 "2016-05-07T17:41:40Z")

</div>

> [@TechnoBear](#):
>
> Does the system then send him another message to let him know his account has been unblocked?

Now that all text can be edited:

```
subject_template: "Account unblocked"
text_body_template: |
Hello,

This is an automated message from %{site_name} to inform
you that your account has been unblocked after staff review.

You can now create new replies and topics again. Thank you 
for your patience.

```

---

<div class="post-metadata">

### Author: ![bradydowling](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bradydowling/32/121138_2.png) [@bradydowling](https://meta.discourse.org/u/bradydowling)
#### Post date: [May 10, 2016, 2:42pm UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/19 "2016-05-10T14:42:41Z")

</div>

I also came on here a month or so ago to find out why my users had been blocked. Now I know it’s usually because of copy/pasting so I don’t bother checking the logs (so it’s possible this is implemented and I haven’t noticed it) but block reasoning would be really helpful.

---

<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: [May 10, 2016, 11:46pm UTC](https://meta.discourse.org/t/display-reason-for-automatic-blocks-by-system/43702/20 "2016-05-10T23:46:13Z")

</div>

I made the copy quoted above the actual _correct_ copy from the `server.en.yml` file because it was super 🐛ing me that it was the old, bad copy being pasted in as images..
