How do I add a huge list of throwaway email providers to the email blacklist without using a browser?

AI-generated summary

The discussion addresses how to efficiently add a large list of disposable email providers to Discourse’s email blacklist without using a browser, as the UI crashes when pasting thousands of entries. anon67292109 shares a list of over 1,500 domains and notes that Chrome crashes during the import process. uwe_keim suggests using an API or CSV export from external services like mogelmail.de for automated imports, while pfaffman and joebuhlig propose using the API or creating a plugin.

codinghorror and j.jaffeux confirm that mass importing settings via the UI is not currently supported, though they acknowledge the need for such a feature for settings with many entries. markersocial expands on the request, suggesting features to prevent existing accounts with blacklisted emails from posting and to bulk delete such accounts. dalerka reiterates the technical issue, freezing their PC, and asks for a core setting to periodically query public repos for updates.

pfaffman argues that most communities rely on built-in spam tools like Akismet rather than massive blacklists, recommending a plugin for external list loading. codinghorror suggests filtering to the top 100 domains as a workaround. dalerka requests a data-backed list of the most abusive domains, but codinghorror recommends manually auditing signups to add specific services. Finally, users clarify that the setting is named Blocked email domains (NateDhaliwal), and pfaffman points to a meta thread for more information on handling disposable emails.

here’s a list of throwaway email providers to block using the “email domains blacklist” feature:

http://pastebin.com/raw/A8VmXUe3

i converted to tab delimitation for pasting into the discourse admin area but there are a little over 1,500 so chrome throws this error a few times and then crashes:


the blacklist is from this github with 26 contributors: disposable-email-domains/index.json at master · ivolo/disposable-email-domains · GitHub and was most recently updated 2 days ago.

for the email blacklist to be effective it needs to contain a lot of entries.

The guys at www.mogelmail.de maintain a huge list of fake email providers and also provide an API (and a csv export IIRC).

Maybe there is some way to regularly import this automatically into Discourse?

This feature would be great to have!

Can probably do it via the API.

Seems ripe for a plugin. :wink: Throw a bounty on it in Marketplace?

Does this work on current Discourse @j.jaffeux?

No we still can’t mass import settings though the UI, I can work on it if you want. The solution would also solve the re-ordering through drag/drop problematic.

The specific case listed does make sense, when you have a site setting that may need 100+ entries. Not a high priority though.

Would be great if the email blacklist feature also prevented existing accounts with these emails from being able to keep posting.

Would also be really great if there was an easy option from the user panel to bulk delete user accounts (and their content) that already have accounts created with email domains on the blacklist. This way, moderators would be able to make such actions without SSH access and custom queries.

I tried to add the pipe-delimited list of bad domains from the source mentioned above, and it is still freezes my PC.
I think this is pretty important for most communities with open registrations.
Is there any workaround to add thousands of domains to the blacklist?

Perhaps checking against these domains (eg. periodically querying some public repo for updates) should be a core setting for Discourse?

I think that most communities do just fine with akismet and the other built in spam tools to identify suspect usersand don’t need such a list.

If you’d like to have a way to, say, load a blacklist of email domains from some external list you’ll need a plugin.

The workaround is to filter to the top 100 :wink:

Can someone please share the list of 100 most popular/abusive disposable email services/domains?

Most articles on the web list max. ~20 repeating the well known, but those services also use hidden/less known (alternative) domains.

I did mach the mailinator.com et al. with similar domains on public lists, but that’s intuition-based, not data-backed.

Audit your signups, and manually add any services you see entered there. That’s what I would recommend.

How do you edit this blacklist? Where is the setting?

I think it’s the Blocked email domains site setting.

If you want to add a lot you might be interested in Indisposable Email - block disposable email domains