mirror of
https://github.com/neocities/neocities.git
synced 2025-06-16 17:34:39 +02:00
switch disposable email blacklist to more updated one
This commit is contained in:
parent
aa4d277bab
commit
3c62b7be22
1 changed files with 2 additions and 1 deletions
3
Rakefile
3
Rakefile
|
@ -45,7 +45,8 @@ end
|
||||||
|
|
||||||
desc 'Update disposable email blacklist'
|
desc 'Update disposable email blacklist'
|
||||||
task :update_disposable_email_blacklist => [:environment] do
|
task :update_disposable_email_blacklist => [:environment] do
|
||||||
uri = URI.parse('https://raw.githubusercontent.com/martenson/disposable-email-domains/master/disposable_email_blocklist.conf')
|
# Formerly: https://raw.githubusercontent.com/martenson/disposable-email-domains/master/disposable_email_blocklist.conf
|
||||||
|
uri = URI.parse('https://raw.githubusercontent.com/disposable/disposable-email-domains/master/domains.txt')
|
||||||
|
|
||||||
File.write(Site::DISPOSABLE_EMAIL_BLACKLIST_PATH, Net::HTTP.get(uri))
|
File.write(Site::DISPOSABLE_EMAIL_BLACKLIST_PATH, Net::HTTP.get(uri))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue