问题
Is it possible to find out if an email is disposable or not without relying on black list, is there any difference between the DEA mail servers and legitimate email servers that can be used to differentiate, maybe in the network communication, inside headers or any possible thing ?
回答1:
I run the service Validator.pizza. I've seen a lot of different domains and I tried to automate this too, but there's no better way than blacklists, because they have the same config as any legitimate email provider.
回答2:
There is a lot of big disposable email providers who add new domain names on a regular basis, thus making any blacklist outdated very fast. If you want to keep on top of this you should be checking each known to you provider for newly added domain names and blacklist them as they appear. There is also the chance that you might miss few small new providers on the 100th page in your search results for example.
On the other hand you can use third party managed service provider like Antideo that will do the boring manual check for you so you can spend your time on something more useful.
That being said there is no silver bullet to solve your problem, but if you don't mind using a third party like the one above your JavaScript validation code in your registration form could be as simple as that:
$.getJSON('http://api.antideo.com/email/u3888411@mvrht.net', function(result){
if(result.disposable) {
// do not proceed with registration email is likely to be disposable
} else {
// proceed with user registration
}
})
Or if you do the validation on the backend (recommended) here is what your PHP code would look like:
$request = file_get_contents('http://api.antideo.com/email/u3888411@mvrht.net');
$response = gzdecode($request);
$result = json_decode($response);
if($result->disposable) {
// do not proceed with registration email is likely to be disposable
} else {
// proceed with user registration
}
Disclaimer: I have helped creating the Antideo API
回答3:
I am using DeBounce email validation tool. This service offers free disposable API detection with no limitations. I think this service will resolve your problem.
More information about free API: https://debounce.io/free-disposable-check-api/
来源:https://stackoverflow.com/questions/44682141/is-there-any-possible-way-to-detect-a-disposable-email-address-dea-server