Created
February 18, 2024 17:19
-
-
Save Mixaill/c652869be34d8ffce41abe00298c6641 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /home/mastodon/live/ | |
| mkdir -p ./~temp | |
| wget --no-cache https://raw.githubusercontent.com/disposable-email-domains/disposable-email-domains/master/disposable_email_blocklist.conf -O ./~temp/email.list | |
| domains="$(cat ./~temp/email.list)" | |
| domains="${domains//$'\n'/ }" | |
| RAILS_ENV=production bin/tootctl email-domain-blocks add $domains | |
| rm -r ./~temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment