# 주민번호등 민감 개인정보의 필터 기능

**URL:** https://community.sendbird.com/t/topic/5170
**Category:** JavaScript
**Tags:** react-js
**Created:** [July 26, 2022, 11:13am UTC](https://community.sendbird.com/t/topic/5170 "2022-07-26T11:13:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Co\_Hangilro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/co_hangilro/32/2730_2.png) [@Co\_Hangilro](https://community.sendbird.com/u/Co_Hangilro)
#### Post date: [July 26, 2022, 11:13am UTC](https://community.sendbird.com/t/topic/5170/1 "2022-07-26T11:13:41Z")

</div>

채팅창에서 욕설 및 모역적인 단어를 필터링하는 기능을 확인했습니다.  
한국에서 채팅 기능을 사용하는데 있어, 전화번호나 주민번호 같은 특정 패턴을 가진 번호의 배열을 필터가 가능한지 문의 드립니다.

예) 13자리의 연속된 숫자의 차단  
000-0000-0000 또는 000.0000.0000 또는 000 0000 0000 등 전화번호를 연상하게 하는 숫자의 조합 등을 필터가능한지

---

<div class="post-metadata">

### Author: ![ScottKim](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/scottkim/32/3330_2.png) [@ScottKim](https://community.sendbird.com/u/ScottKim)
#### Post date: [August 5, 2022, 6:09am UTC](https://community.sendbird.com/t/topic/5170/3 "2022-08-05T06:09:49Z")

</div>

안녕하세요.

대시보드에서 Regex로 등록하면 입력이 차단됩니다.  
/^\d{3,3}-\d{3,4}-\d{4}$|^\d{13,13}|^\d{3,3} \d{3,4} \d{4}$/  
regex는 Replace with asterisks(\*)와 동시에 적용하지 못합니다.

많은 입력 제한을 적용하려면 클라이언트 앱에서 구현하는 것이 좋을 수 있습니다.
