# Limiting country codes for MFA via phone/text in new Universal Login

**URL:** <https://community.auth0.com/t/limiting-country-codes-for-mfa-via-phone-text-in-new-universal-login/139687>\
**Category:** Get Help\
**Tags:** phone-factor, mfa\
**Created:** [July 25, 2024, 4:37pm UTC](https://community.auth0.com/t/limiting-country-codes-for-mfa-via-phone-text-in-new-universal-login/139687 "2024-07-25T16:37:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jennagoldman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jennagoldman/32/12681_2.png) [@jennagoldman](https://community.auth0.com/u/jennagoldman)\
**Post date:** [July 25, 2024, 4:37pm UTC](https://community.auth0.com/t/limiting-country-codes-for-mfa-via-phone-text-in-new-universal-login/139687/1 "2024-07-25T16:37:42Z")

</div>

I found a few posts from 2022 about new Universal Login not supporting configuring a default country code or limiting the list of country codes on the mfa-phone-enrollment screen in new Universal Login. The suggestions back then were to move away from using Universal Login to either classic or a custom page, but it was also stated a backlog item existed for bringing these customizations to Universal Login. Has there been any movement on this front?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 25, 2024, 5:45pm UTC](https://community.auth0.com/t/limiting-country-codes-for-mfa-via-phone-text-in-new-universal-login/139687/3 "2024-07-25T17:45:44Z")

</div>

Hi @jennagoldman,

That’s correct. I can confirm that the New Universal Login still does not allow you to limit the country codes or configure a default country code for MFA phone enrollment. This is mentioned in [this post](https://community.auth0.com/t/can-we-limit-the-allowed-country-codes-for-sms-mfa-enrolment/115218/6).

Although you cannot limit the country codes, you can use a [send phone message action](https://auth0.com/docs/customize/actions/flows-and-triggers/send-phone-message-flow) script to restrict users from performing MFA unless they have a phone number from a valid country by checking `event.message_options.recipient` attribute for the user’s mobile phone number. (Reference: [How to Filter or Lock MFA Mobile Number Country Codes in New Universal Login](https://community.auth0.com/t/how-to-filter-or-lock-mfa-mobile-number-country-codes-in-new-universal-login/88800))

Please let me know if you have any questions.

Thanks,  
Ruebe

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 8, 2024, 5:46pm UTC](https://community.auth0.com/t/limiting-country-codes-for-mfa-via-phone-text-in-new-universal-login/139687/4 "2024-08-08T17:46:11Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
