B2C sign up and disposable email addresses

Louis 0 Reputation points
2023-07-08T18:13:59.33+00:00

Dear Community,

Do you perhaps know of a solution to prevent sign-up to Azure B2C from a disposable / hide my email service such as [https://www.1secmail.com/]

Thank you

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TP 126.4K Reputation points Volunteer Moderator
    2023-07-08T19:26:48.5366667+00:00

    Hi Louis,

    What you could do is send the email address to your own REST API and it would check the address using one of the email validation services that can detect disposable addresses. If your service gets a result back that the address is fake/disposable, then you would return an error response which would block the sign-up.

    It appears that below sample code be modified to do what you need:

    https://github.com/azure-ad-b2c/rest-api

    To find an API service that can detect disposable addresses, if you search the web for "email validation api service disposable" you will get multiple to choose from.

    Please click Accept Answer if the above was useful.

    Thanks.

    -TP


  2. dashanan13 930 Reputation points
    2023-07-09T17:08:05.7266667+00:00

    Hei @Louis Coetzee

    Thank you for contacting Microsoft community.

    The kind of domains you refer to provide an email address for a limited time, ranging from a couple of minutes to a couple of hours.

    The whole purpose of such email addresses is to enable the user to bypass immediate email validation.

    Most people end up using most famous ones and this here gives an opportunity to manually identify these top domains.

    A google search for "disposable email domains database" will lead to several sources that have similar lists.

    One example is this GITHUB repo here

    It is possible to use these domains to create a custom API or a precondition that responds when a user inputs an email that matches the identified email domains.

    The following thread has a discussion that deals with similar issue, here

    Please mark this as answer if it helped.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.