# Disable block user on Direct messages

**URL:** <https://forums.rocket.chat/t/disable-block-user-on-direct-messages/12549>\
**Category:** Community Support\
**Created:** [November 8, 2021, 10:47pm UTC](https://forums.rocket.chat/t/disable-block-user-on-direct-messages/12549 "2021-11-08T22:47:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsanabria](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@jsanabria](https://forums.rocket.chat/u/jsanabria)\
**Post date:** [November 8, 2021, 10:47pm UTC](https://forums.rocket.chat/t/disable-block-user-on-direct-messages/12549/1 "2021-11-08T22:47:05Z")

</div>

### Description

I want to disable the option or the button to block users in direct messages

- Version of Rocket.Chat Server: 3.18.1
- Operating System: Ubuntu 18.04
- Deployment Method: snap
- Number of Running Instances: 1
- NodeJS Version: v12.22.1
- MongoDB Version: 3.6.14
- Proxy: nginx
- Firewalls involved:

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [November 9, 2021, 11:57am UTC](https://forums.rocket.chat/t/disable-block-user-on-direct-messages/12549/2 "2021-11-09T11:57:20Z")

</div>

Hi! Welcome to our forums!

Unfortunately I was not able to find a way to disable the block at system level.

However, there is a “hacky” way to just hide the button for users, so they’ll not be able to block each other easily.

**You need to add a custom css.**

Go to Admin \> Layout \> Custom Css, and add the following:

```auto
button[title="Block"]{
display:none;
}

```

Let me know if that helps.

Thanks!

---

<div class="post-metadata">

**Author:** ![jsanabria](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@jsanabria](https://forums.rocket.chat/u/jsanabria)\
**Post date:** [October 24, 2022, 4:40pm UTC](https://forums.rocket.chat/t/disable-block-user-on-direct-messages/12549/3 "2022-10-24T16:40:53Z")

</div>

Hi,

I have a new problem on this topic, in the mobile application if the button to block a user can be displayed. How could I remove that option on a mobile phone?

Thanks

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [November 7, 2022, 5:51pm UTC](https://forums.rocket.chat/t/disable-block-user-on-direct-messages/12549/4 "2022-11-07T17:51:49Z")

</div>

Hi! That’s not possible with the mobile 😬

The CSS change will only affect desktop and browser versions.
