Domain blacklist implementation to prevent retail customers from registration
Context
In order to prevent retail customers from the registration to app.diabolocom.ai and the use AI APIs, a domain blacklist is implemented, meaning a list of email domains that cannot sign up and have access to app.diabolocom.ai
The main idea is to make sure that only professional email addresses are allowed to use the AI app and APIs, that should be linked to Business customers behind.
Domain Blacklist
The domain blacklist was inspired by Hubspot B2B Solution blacklist, that is implemented to block feature access and published on Hubspot Knowledge website.
Source : https://knowledge.hubspot.com/forms/what-domains-are-blocked-when-using-the-forms-email-domains-to-block-feature
The blacklist contains 4773 domains.
Implemented Feature
A user, that has an email address in the domain blacklist, is prevented from registration to app.diabolocom.ai and receives an error.
Also, an existing user cannot update the email address to a new email, if the new provided email is in the domain blacklist : an error is raised.