It is really annoying to know that half of your users’ emails getting bounced because these sneaky users used some disposable email address to register on your site. Yes, it happens a lot, the only way to stop this from happening again is to block them from ever using those phony emails again.
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 the user email address and compare it with disposable email domains. This way we can block most disposable email address easily. Just make sure to update your list as you find new disposable email domain.