Sometimes it is really annoying to know that half of users’ emails bounced from the list, because they used some disposable emails to register on your site. Yes it happens a lot, only way to stop this from happening again is to stop users from signing up using any kind of disposable emails.
I’ve taken the list of some disposable email domains from here and converted it into array, it can also be stored in database if you want.
We will extract the domain from new email address and check if its domain exist in disposable list. This way we can block most disposable email address easily. Just make sure to update your list as you find new disposable email domain.