• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Disallowed emails

thomas1

Active member
#1
I was wondering if there is any way to mass import disallowed email addresses instead of entering them one by one through the ACP?

Thanks in advance.
 

Walter

Well-known member
#3
Importing them via SQL is quite easy.
All you have to keep in mind is to insert the last address manually to rebuild the cache.
 

AlexT

Well-known member
#4
To use within the xF framework:

Code:
$bademails = array('0815.ru', '0clickemail.com', '2008-onlines.info', 'ag.us.to', 'agedmail.com', 'alsado.com', 'anonymbox.com', 'bestfreemall.info', 'bofthew.com', 'bspamfree.org', 'buffemail.com', 'bugmenot.com', 'cashette.com', 'cust.in', 'dbunker.com', 'deadaddress.com', 'dingbone.com', '@discardmail.*', 'dispostable.com', 'dodgit.com', 'dontreg.com', 'dontsendmespam.de', 'e4ward.com', 'eyepaste.com', 'fakeinbox.com', 'filzmail.com', 'fixmail.tk', 'freeideasearch.info', 'fromru.com', 'fudgerub.com', 'gawab.com', 'gelitik.in', 'getonemail.com', 'golfilla.info', '@guerrillamail.*', 'guerrillamailblock.com', 'i.ua', 'incognitomail.net', 'jetable.org', 'klassmaster.com', 'lawlita.com', 'lookugly.com', 'mailcatch.com', 'maileater.com', 'mailexpire.com', 'mailforspam.com', 'mailin8r.com', '@mailinator.*', 'mailinator2.com', 'mailtrash.net', 'marketingops.com', 'megabox.ru', 'meltmail.com', 'mfsa.ru', 'mobi.web.id', '@mytrashmail.*', 'noclickemail.com', 'nospam4.us', 'nospamfor.us', 'nowmymail.com', 'onewaymail.com', 'onlinehealthclub.org', 'pisem.net', 'pleasantphoto.com', 'pookmail.com', 'quickinbox.com', 'rambler.ru', 'reitkopf.com', 'res8.info', 'sharklasers.com', 'smellfear.com', 'sogetthis.com', 'spam.la', 'spam4.me', 'spamavert.com', '@spambog.*', 'spamgourmet.com', 'spamherelots.com', 'spamhereplease.com', 'spamhole.com', 'spamspot.com', '@tempemail.*', 'tempemail.co.za', 'tempinbox.com', 'temporaryemail.net', 'temporaryinbox.com', 'thisisnotmyrealemail.com', 'topadult20.info', 'topmeds20.org', 'tradermail.info', 'trashdevi.de', 'trashdevil.com', '@trash-mail.*', 'trashymail.com', 'veryrealemail.com', 'web-err.com', 'wwwnew.eu', 'xoxma.net', '@yopmail.*');
 
$optionModel = XenForo_Model::create('XenForo_Model_Banning');

foreach ($bademails as $bademail)
{
    $optionModel->banEmail($bademail);
}