Email Domain Restriction

Hello Community, I would like to recommend an option that would restrict who submits a form by email domain? For example, only users who have a outlook.com or gmail.com would be able to submit a form.