News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Restrict Email Providers on Registration

Started by Kermit, November 14, 2008, 05:51:53 AM

Previous topic - Next topic

Hristo

Here is a list of disposable email domains I just compiled out of a few available lists, then removed the offline domains (1/3 of all initial urls)

0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
10minutemail.de
10minutemail.net
123-m.com
126.com
139.com
163.com
1pad.de
20minutemail.com
21cn.com
2prong.com
33mail.com
3d-painting.com
6paq.com
6url.com
75hosting.com
7tags.com
99experts.com
9ox.net
PutThisInYourSpamDatabase.com
SpamHereLots.com
SpamHerePlease.com
TempEMail.net
a-bc.net
afrobacon.com
agedmail.com
amiri.net
anonbox.net
anonmails.de
anonymbox.com
antichef.com
antichef.net
antispam.de
antispam24.de
antispammail.de
armyspy.com
asdasd.ru
b2cmail.de
beefmilk.com
binkmail.com
bio-muesli.net
bloatbox.com
bobmail.info
bootybay.de
breakthru.com
brefmail.com
brennendesreich.de
broadbandninja.com
bspamfree.org
buffemail.com
bugmenot.com
bumpymail.com
bund.us
byom.de
c2.hu
card.zp.ua
cellurl.com
centermail.com
centermail.net
chammy.info
cheatmail.de
chogmail.com
choicemail1.com
clixser.com
cmail.com
cmail.org
consumerriot.com
correo.blogos.net
courrieltemporaire.com
cubiclink.com
cust.in
cuvox.de
dacoolest.com
dandikmail.com
dayrep.com
dbunker.com
dcemail.com
deadaddress.com
deadspam.com
deagot.com
dealja.com
delikkt.de
despammed.com
devnullmail.com
dfgh.net
digitalsanctuary.com
dingbone.com
discardmail.com
discardmail.de
disposableaddress.com
disposableinbox.com
dispose.it
disposeamail.com
disposemail.com
dispostable.com
dodgit.com
domozmail.com
donemail.ru
dontreg.com
dontsendmespam.de
dotman.de
drdrb.com
drdrb.net
dump-email.info
dumpandjunk.com
dumpmail.de
duskmail.com
e-mail.org
e4ward.com
easytrashmail.com
einmalmail.de
einrot.com
eintagsmail.de
email60.com
emaildienst.de
emailgo.de
emaillime.com
emailsensei.com
emailtemporanea.com
emailtemporanea.net
emailtemporar.ro
emailtemporario.com.br
emailthe.net
emailtmp.com
emailto.de
emailwarden.com
emailx.at.hm
emailxfer.com
emz.net
ero-tube.org
example.com
explodemail.com
express.net.ua
eyepaste.com
fakedemail.com
fakeinbox.com
fansworldwide.de
fantasymail.de
fastacura.com
fastchevy.com
fastchrysler.com
fastkawasaki.com
fastmazda.com
fastmitsubishi.com
fastnissan.com
fastsubaru.com
fastsuzuki.com
fasttoyota.com
fastyamaha.com
fatflap.com
fightallspam.com
filzmail.com
fivemail.de
frapmail.com
friendlymail.co.uk
front14.org
******ingduh.com
fudgerub.com
garliclife.com
gecicimail.tk
getairmail.com
getmails.eu
getonemail.com
ghosttexter.de
giantmail.de
girlsundertheinfluence.com
gishpuppy.com
goemailgo.com
gotmail.com
gotmail.net
gotmail.org
gotti.otherinbox.com
greensloth.com
gsrv.co.uk
guerillamail.com
guerillamail.org
guerrillamail.biz
guerrillamail.com
guerrillamail.de
guerrillamail.info
guerrillamail.net
guerrillamail.org
guerrillamailblock.com
h8s.org
hacccc.com
haltospam.com
hidemail.de
hmamail.com
hochsitze.com
hotpop.com
hulapla.de
hushmail.com
imails.info
inboxalias.com
inboxclean.com
inboxclean.org
incognitomail.com
incognitomail.net
incognitomail.org
insorg-mail.info
instant-mail.de
ipoo.org
irish2me.com
iwi.net
jetable.com
jetable.org
jnxjn.com
jsrsolutions.com
junk1e.com
keepmymail.com
killmail.com
klassmaster.com
klzlk.com
koszmail.pl
kurzepost.de
lavabit.com
letthemeatspam.com
lifebyfood.com
litedrop.com
lookugly.com
lopl.co.cc
lortemail.dk
lr78.com
lroid.com
maboard.com
mail-filter.com
mail-temporaire.fr
mail.mezimages.net
mail114.net
mail2rss.org
mail333.com
mail4trash.com
mailbidon.com
mailbucket.org
mailcatch.com
maildrop.cc
maileater.com
mailexpire.com
mailin8r.com
mailinater.com
mailinator.com
mailinator.net
mailinator.org
mailinator2.com
mailincubator.com
mailme.ir
mailmetrash.com
mailmoat.com
mailnator.com
mailnesia.com
mailnull.com
mailquack.com
mailscrap.com
mailshell.com
mailsiphon.com
mailslite.com
mailzilla.com
mailzilla.org
makemetheking.com
manybrain.com
mbx.cc
meltmail.com
messagebeamer.de
mezimages.net
mierdamail.com
mintemail.com
mobileninja.co.uk
moburl.com
mt2009.com
mt2014.com
mx0.wwwnew.eu
mycleaninbox.net
mymail-in.net
mypartyclip.de
myphantomemail.com
myspaceinc.com
mytempemail.com
mytrashmail.com
neomailbox.com
nepwk.com
nervmich.net
nervtmich.net
netmails.com
netmails.net
netzidiot.de
neverbox.com
nice-4u.com
no-spam.ws
nobulk.com
noclickemail.com
nomail2me.com
nomorespamemails.com
nospam4.us
nospamfor.us
notmailinator.com
nowmymail.com
nurfuerspam.de
nus.edu.sg
objectmail.com
obobbo.com
oneoffemail.com
onewaymail.com
online.ms
ordinaryamerican.net
otherinbox.com
ovpn.to
pancakemail.com
pcusers.otherinbox.com
pjjkp.com
poczta.onet.pl
politikerclub.de
pookmail.com
privacy.net
privy-mail.com
proxymail.eu
punkass.com
putthisinyourspamdatabase.com
qq.com
quickinbox.com
rcpt.at
recode.me
recursor.net
rmqkr.net
royal.net
rtrtr.com
s0ny.net
safe-mail.net
safersignup.de
safetymail.info
safetypost.de
sandelf.de
schafmail.de
selfdestructingmail.com
sharklasers.com
shiftmail.com
******mail.me
******ware.nl
shortmail.net
sibmail.com
sinnlos-mail.de
skeefmail.com
slaskpost.se
slopsbox.com
smellfear.com
snakemail.com
sneakemail.com
snkmail.com
sofimail.com
sofort-mail.de
sogetthis.com
soodonims.com
spam.su
spam4.me
spamarrest.com
spamavert.com
spambob.net
spambog.com
spambog.de
spambog.ru
spambox.info
spambox.us
spamcannon.com
spamcannon.net
spamcero.com
spamcowboy.com
spamcowboy.net
spamcowboy.org
spamday.com
spamex.com
spamfree.eu
spamfree24.com
spamfree24.de
spamfree24.org
spamgourmet.com
spamgourmet.net
spamgourmet.org
spamherelots.com
spamhereplease.com
spamhole.com
spamify.com
spaminator.de
spaml.com
spaml.de
spammotel.com
spamobox.com
spamoff.de
spamslicer.com
spamspot.com
spamthis.co.uk
spamtroll.net
spoofmail.de
squizzy.de
stinkefinger.net
stuffmail.de
supergreatmail.com
supermailer.jp
superstachel.de
suremail.info
tagyourself.com
talkinator.com
teewars.org
teleworm.com
teleworm.us
temp-mail.org
temp-mail.ru
temp.emeraldwebmail.com
tempalias.com
tempemail.co.za
tempemail.com
tempemail.net
tempinbox.co.uk
tempinbox.com
tempmail2.com
tempmaildemo.com
temporarily.de
temporarioemail.com.br
temporaryemail.us
tempthe.net
thankyou2010.com
throwawayemailaddress.com
tilien.com
tittbit.in
tmailinator.com
tradermail.info
trash-mail.at
trash-mail.com
trash-mail.de
trash2009.com
trashemail.de
trashmail.at
trashmail.com
trashmail.de
trashmail.me
trashmail.net
trashmail.org
trashmail.ws
trashmailer.com
trashymail.com
trillianpro.com
twinmail.de
tyldd.com
upliftnow.com
uroid.com
venompen.com
veryrealemail.com
vidchart.com
viditag.com
vubby.com
w3internet.co.uk
webemail.me
weg-werf-email.de
wegwerf-emails.de
wegwerfemail.de
wegwerfmail.de
wegwerfmail.info
wegwerfmail.net
wegwerfmail.org
wh4f.org
whatiaas.com
whatpaas.com
whatsaas.com
whyspam.me
willselfdestruct.com
winemaven.info
wronghead.com
wuzupmail.net
wwwnew.eu
xagloo.com
xemaps.com
xents.com
xmaily.com
xoxy.net
yeah.net
yep.it
yogamaven.com
yopmail.com
yopmail.fr
yopmail.net
yourdomain.com
za.com
zehnminutenmail.de
zippymail.info
zoaxe.com
zoemail.net
zomg.info


Some of the source lists were too restrictive including entire TLDs and some legit email providers (probably abused by some users, but still legit). Removed the ones I'm familiar with, but there still could be leftovers.

vkash13

I just downloaded this mod, but received these errors. Can anyone help? Using smf 2.0.9

Hristo

If you have other mods installed then probably some of the others have changed a code this one is looking for. Use the parser at mod's page and try to manually install it. Do not forget to back up first.

Westwegoman

Quote from: vkash13 on November 10, 2014, 11:23:00 PM
I just downloaded this mod, but received these errors. Can anyone help? Using smf 2.0.9
Just tried on a fresh install and had the same step fail. :(

Hristo

Indeed it fails. Some of the SMF's updates changed one of the lines the mod searches for.

First backup. Then install with error. Then open ./Sources/Subs-Members.php and:

Find:
// !!! Separate the sprintf?
if (empty($regOptions['email']) || preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $regOptions['email']) === 0 || strlen($regOptions['email']) > 255)


Replace with:
   // Lets restrict some email providers
   if (!empty($modSettings['restricted_provider']))
   {
      $restricted_provider = explode(",", preg_replace("/(\@[^a-zA-Z0-9,])/", "", $modSettings['restricted_provider']));

      foreach ($restricted_provider as $key => $value)
         if (empty($value))
            unset($restricted_provider[$key]);
   }
   else
      $restricted_provider = array();
 


   if (!empty($modSettings['enable_restrict_EmailProvider']) && !empty($modSettings['restricted_provider']))
   {
      foreach($restricted_provider as $provider)
      {         
         preg_match('/' . $provider . '+/i', $_POST['email'], $matches);
   
         if(count($matches) > 0)
            fatal_error(sprintf($txt['restricted'], $regOptions['username']), false);
      }
   }
   
    if (!empty($modSettings['accepted_provider']))
   {
      $accepted_provider = explode(",", preg_replace("/(\@[^a-zA-Z0-9,])/", "", $modSettings['accepted_provider']));

      foreach ($accepted_provider as $akey => $avalue)
         if (empty($avalue))
            unset($accepted_provider[$akey]);
   }
   else
      $accepted_provider = array(); 
   
    if (!empty($modSettings['enable_restrict_EmailProvider']) && !empty($modSettings['accepted_provider']))
   {
      foreach($accepted_provider as $aprovider)
      {         
         preg_match('/' . $aprovider . '+/i', $_POST['email'], $matches);

if(count($accepted_provider) == 1)
{
if(count($matches) == 0)
fatal_error(sprintf($txt['restricted'], $regOptions['username']), false);
}
else
{
if(count($matches) == 0 && !(each($accepted_provider)))
fatal_error(sprintf($txt['restricted'], $regOptions['username']), false);
}
      }
   }
   // !!! Separate the sprintf?
   elseif (empty($regOptions['email']) || preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $regOptions['email']) === 0 || strlen($regOptions['email']) > 255)


Test it to see if it works.

GravuTrad

Any news about the test of the changes provided? I will surely test it cause i really need this option on some professional forums and i don't understand why it isn't naturally in the forum.
Nobody interested to update this mod?
On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

Shambles

FYI, in case anyone's interested.

There's a couple of missing closure tags <i> without </i> (affects the Admin panel)

Code (install2.xml) Select
<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[$txt['restricted'] = 'Sorry, E-mail accounts from that provider cannot be used, we have had members reporting emails not being received when using the E-Mail addresses from your provider,please use an alternative email address.We are sorry for the inconvenience caused by your E-Mail provider.';
$txt['enable_restrict_EmailProvider'] = 'Enable restriction of E-Mail providers <br />on registration';
$txt['restricted_provider'] = 'Which providers should be restricted <br />on registration ? <br /><i> (As an example,for the providers <b><font color="red">hotmail and gmail</font></b> you should write @hotmail.com,@gmail.com) ';
$txt['accepted_provider'] = 'Which providers should be accepted <br />on registration ? <br /><i> (As an example,for the providers <b><font color="red">hotmail and gmail</font></b> you should write @hotmail.com,@gmail.com).<font color="red"><b>Note that either restricted provider or accepted provider list should be empty </b></font>';
]]></add>
</operation>
</file>


Code (Replace with) Select
<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[$txt['restricted'] = 'Sorry, E-mail accounts from that provider cannot be used, we have had members reporting emails not being received when using the E-Mail addresses from your provider,please use an alternative email address.We are sorry for the inconvenience caused by your E-Mail provider.';
$txt['enable_restrict_EmailProvider'] = 'Enable restriction of E-Mail providers <br />on registration';
$txt['restricted_provider'] = 'Which providers should be restricted <br />on registration ? <br /><i> (As an example,for the providers <b><font color="red">hotmail and gmail</font></b> you should write @hotmail.com,@gmail.com)</i> ';
$txt['accepted_provider'] = 'Which providers should be accepted <br />on registration ? <br /><i> (As an example,for the providers <b><font color="red">hotmail and gmail</font></b> you should write @hotmail.com,@gmail.com)</i>.<font color="red"><b>Note that either restricted provider or accepted provider list should be empty </b></font>';
]]></add>
</operation>
</file>






Or, to correct existing installations, edit Themes/default/languages/Modifications.english.php

Code (Find) Select
$txt['restricted_provider'] = 'Which providers should be restricted <br />on registration ? <br /><i> (As an example,for the providers <b><font color="red">hotmail and gmail</font></b> you should write @hotmail.com,@gmail.com) ';
$txt['accepted_provider'] = 'Which providers should be accepted <br />on registration ? <br /><i> (As an example,for the providers <b><font color="red">hotmail and gmail</font></b> you should write @hotmail.com,@gmail.com).<font color="red"><b>Note that either restricted provider or accepted provider list should be empty </b></font>';


Code (Replace) Select
$txt['restricted_provider'] = 'Which providers should be restricted <br />on registration ? <br /><i> (As an example,for the providers <b><font color="red">hotmail and gmail</font></b> you should write @hotmail.com,@gmail.com)</i> ';
$txt['accepted_provider'] = 'Which providers should be accepted <br />on registration ? <br /><i> (As an example,for the providers <b><font color="red">hotmail and gmail</font></b> you should write @hotmail.com,@gmail.com)</i>.<font color="red"><b>Note that either restricted provider or accepted provider list should be empty </b></font>';

GravuTrad

Does all this work with the 2.0.11 version?
On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

longshanks

I have not managed to get this to work with 2.0.11. But it would be a huge help, especially with all the fake hotmail accounts trying to sign up.

Shambles


duncanfraiser

What do I need to do to install this mod for the first time on 2.0.12?


GravuTrad

Thanks for the confirmations. i'll try with hope of no problem signaled in the files.

Regards.
On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

tjbalon

Quote from: Hristo on December 28, 2014, 11:57:19 AM
Indeed it fails. Some of the SMF's updates changed one of the lines the mod searches for.

First backup. Then install with error. Then open ./Sources/Subs-Members.php and:

Find:
// !!! Separate the sprintf?
if (empty($regOptions['email']) || preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $regOptions['email']) === 0 || strlen($regOptions['email']) > 255)


Replace with:
   // Lets restrict some email providers
   if (!empty($modSettings['restricted_provider']))
   {
      $restricted_provider = explode(",", preg_replace("/(\@[^a-zA-Z0-9,])/", "", $modSettings['restricted_provider']));

      foreach ($restricted_provider as $key => $value)
         if (empty($value))
            unset($restricted_provider[$key]);
   }
   else
      $restricted_provider = array();
 


   if (!empty($modSettings['enable_restrict_EmailProvider']) && !empty($modSettings['restricted_provider']))
   {
      foreach($restricted_provider as $provider)
      {         
         preg_match('/' . $provider . '+/i', $_POST['email'], $matches);
   
         if(count($matches) > 0)
            fatal_error(sprintf($txt['restricted'], $regOptions['username']), false);
      }
   }
   
    if (!empty($modSettings['accepted_provider']))
   {
      $accepted_provider = explode(",", preg_replace("/(\@[^a-zA-Z0-9,])/", "", $modSettings['accepted_provider']));

      foreach ($accepted_provider as $akey => $avalue)
         if (empty($avalue))
            unset($accepted_provider[$akey]);
   }
   else
      $accepted_provider = array(); 
   
    if (!empty($modSettings['enable_restrict_EmailProvider']) && !empty($modSettings['accepted_provider']))
   {
      foreach($accepted_provider as $aprovider)
      {         
         preg_match('/' . $aprovider . '+/i', $_POST['email'], $matches);

if(count($accepted_provider) == 1)
{
if(count($matches) == 0)
fatal_error(sprintf($txt['restricted'], $regOptions['username']), false);
}
else
{
if(count($matches) == 0 && !(each($accepted_provider)))
fatal_error(sprintf($txt['restricted'], $regOptions['username']), false);
}
      }
   }
   // !!! Separate the sprintf?
   elseif (empty($regOptions['email']) || preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $regOptions['email']) === 0 || strlen($regOptions['email']) > 255)


Test it to see if it works.

Please note if you use this fix you MUST add another string to the code after the elseif... or users can double-register names/emails.

Replace elseif with:
// !!! Separate the sprintf?
   elseif (empty($regOptions['email']) || preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $regOptions['email']) === 0 || strlen($regOptions['email']) > 255)
$reg_errors[] = array('lang', 'profile_error_bad_email');

GL700Wing

To prevent the use of a restricted email provider when members change their email address while modifying their profile make the following change to ./Sources/Profile-Modify.php

Find:

return 'bad_email';


Replace with:

return 'bad_email';

// Lets restrict some email providers
if (!empty($modSettings['enable_restrict_EmailProvider']))
{
if (!empty($modSettings['restricted_provider']))
{
$restricted_provider = explode(",", preg_replace("/(\@[^a-zA-Z0-9,])/", "", $modSettings['restricted_provider']));

foreach ($restricted_provider as $key => $value)
if (empty($value))
unset($restricted_provider[$key]);
}
else
$restricted_provider = array();

foreach($restricted_provider as $provider)
{
preg_match('/' . $provider . '+/i', $email, $matches);

if(count($matches) > 0)
{
fatal_error(sprintf($txt['restricted']), false);
}
}
}
Life doesn't have to be perfect to be wonderful ...

Black Tiger

It's better that the mod is updated, then that we have to edit source files manually. So I'm wondering... is this mod still supported?
If yes, will this issue be fixed?

And even more important.... does the mod support wildcards? This was asked by somebody a few pages back, but was never answered.
Greetings, Black Tiger

GravuTrad

This mod is really an option that could be implemented in smf....i hope that the mod will be updated by someone...
On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

z4tm4r

Hi!

I was checking the code and the fault was very simple.There was just a different number and that was why I failed to compare.
Here you can see, I made a pull request to a person who had the code in github, but I suspect that he is not his real creator ...

https:// github. com/defron/smf-restrict-emails-on-registration/pull/1/files

Attached the updated module

Sorry for my english

PD SMF ADMINS: Why the username "zat mar" is blocked ????

kitz

Tried to install this mod today as I thought its just what I'm looking for.  I'm sick to the back teeth of MS playing silly beggars with their so called  'Smart Filters' for

@live.com
@outlook.com
@hotmail.com

Despite not being on any blacklists..  their ridiculous Smart Filter has decided to bounce back notification and registration emails.   Both my hosts and I have jumped thought hoops to get them to mitigate my domain, but after a couple of months its back again.     Ironically their 'smart filter' has also been blocking mail originating from one of the UK's largest ISPs.     Anyways rant over....

-----
Tried to install this and Im getting the following errors. 

Is there any update please.  I so want to install this mod and stop people registering with hot-mail etc accounts. 


Advertisement: