|
|
@@ -16,6 +16,16 @@ class BxAntispamModule extends BxDolModule
|
|
|
parent::__construct($aModule);
|
|
|
}
|
|
|
|
|
|
+ public function serviceUpdateDisposableDomainsLists ()
|
|
|
+ {
|
|
|
+ $o = bx_instance('BxAntispamDisposableEmailDomains', array(), 'bx_antispam');
|
|
|
+
|
|
|
+ $o->updateList('blacklist', 'https://raw.githubusercontent.com/martenson/disposable-email-domains/master/disposable_email_blacklist.conf');
|
|
|
+
|
|
|
+ // TODO: uncomment after adding interface for whitelisting
|
|
|
+ // $o->updateList('whitelist', 'https://raw.githubusercontent.com/martenson/disposable-email-domains/master/whitelist.conf');
|
|
|
+ }
|
|
|
+
|
|
|
public function serviceIpTable ()
|
|
|
{
|
|
|
$o = bx_instance('BxAntispamIP', array(), $this->_aModule);
|