# Restrict user to share Phone and Email over the message

**URL:** <https://community.hivepress.io/t/restrict-user-to-share-phone-and-email-over-the-message/12152>\
**Category:** Messages\
**Tags:** messages\
**Created:** [September 11, 2024, 9:41am UTC](https://community.hivepress.io/t/restrict-user-to-share-phone-and-email-over-the-message/12152 "2024-09-11T09:41:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manas](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/e8c25b/32.png) [@manas](https://community.hivepress.io/u/manas)\
**Post date:** [September 11, 2024, 9:41am UTC](https://community.hivepress.io/t/restrict-user-to-share-phone-and-email-over-the-message/12152/1 "2024-09-11T09:41:58Z")

</div>

Is there any code snippet to restrict user to share Email or Phone number in messages in order to restrict the vendor and user direct connection ?

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [September 12, 2024, 8:16am UTC](https://community.hivepress.io/t/restrict-user-to-share-phone-and-email-over-the-message/12152/3 "2024-09-12T08:16:12Z")

</div>

Split this topic on September 12, 2024, 8:16am UTC

A post was merged into an existing topic: [Best way to block email in messages](https://community.hivepress.io/t/best-way-to-block-email-in-messages/388)

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [September 12, 2024, 8:16am UTC](https://community.hivepress.io/t/restrict-user-to-share-phone-and-email-over-the-message/12152/4 "2024-09-12T08:16:21Z")

</div>

Closed on September 12, 2024, 8:16am UTC


