Restrict Email Providers on Registration
Link to mod (http://custom.simplemachines.org/mods/index.php?mod=1493)
Version: 1.2 Date 2009-03-11
Compatibility: SMF 1.1.8 , SMF 2.0 RC1
This modification gives the Admin the chance ,to restrict some of E-Mail providers on registration.It will be sometimes useful,because some of users
are complaining about,that they can not get the activation mail and not activate their account.Such E-Mail providers should be restricted
via that Modification and then your users won't have no more problems with the activation...
How can you activate it ?
Admin -> Features and Options -> Enable restriction of E-Mail providers on registration (SMF 1.1.6)
Admin -> Modifications -> Enable restriction of E-Mail providers on registration (SMF 2.0 Beta 4)
Greetz
Duncan85
Changelog:
v1.2 - 11 March 2009
° With the new version you can choose,which provides should be accepted on registration,also that means,the providers which are on the accepted list would be accepted and the others would be rejected on registration
v1.1 - 29 November 2008
° Latest version was case sensitive,so the users could register with HOTMAIL.COM,also this was a little bug,now they can not register neither with hotmail.com nor with HOTMAIL.COM
18 November 2008
- Added language support for
o spanish_latin
o spanish_latin-utf8 (Thx NIBOGO (http://www.simplemachines.org/community/index.php?action=profile;u=126412) )
o swedish (Thx Nascar (http://www.simplemachines.org/community/index.php?action=profile;u=143954) )
14 November 2008
- Added language support for
o portuguese_brazilian
o portuguese_pt (Thx Costa (http://www.simplemachines.org/community/index.php?action=profile;u=169940) )
v1.0 - 01 November 2008
o Initial release. (SMF 1.1.6 & SMF 2.0 Beta 4 Compatible)
This looks like it'll also come in handy as a way to decrease the amount of spam registrations a forum receives.
THANK YOU!!!
I have been dying for a mod like this. My dreams come true with this mod :D
Thank you, Thank you, Thank you,
I cannot say it enough
Will Install in a bit. ;D
Mathew
UPDATE:
Installed and works a treat. Just changed wording a little.
Thank you,
Mathew
Is there a known list of these E-Mail providers?
Can you update to brazilain an portuguese
Modification.portuguese.php
Modification.portuguese_brazilian.php
non utf-8
$txt['restricted'] = 'Desculpe, contas de E-mail desse provedor não podem ser usadas. Temos tido membros se queixando que não têm recebido e-mail quando usam esse provedor. Por favor, use um e-mail alternativo. Lamentamos o incoveniente causado pelo seu provedor de e-mail.';
$txt['enable_restrict_EmailProvider'] = 'Habilitar a restrição de provedores de e-mail';
$txt['restricted_provider'] = 'Quais provedores deverão ser bloqueados <br />no registo? <br /><i> (Como exemplo, para os provedores <b><font color="red">hotmail e gmail</font></b> você deve escrever @hotmail.com,@gmail.com) ';
utf-8
$txt['restricted'] = 'Desculpe, contas de E-mail desse provedor não podem ser usadas. Temos tido membros se queixando que não têm recebido e-mail quando usam esse provedor. Por favor, use um e-mail alternativo. Lamentamos o incoveniente causado pelo seu provedor de e-mail.';
$txt['enable_restrict_EmailProvider'] = 'Habilitar a restrição de provedores de e-mail';
$txt['restricted_provider'] = 'Quais provedores deverão ser bloqueados <br />no registo? <br /><i> (Como exemplo, para os provedores <b><font color="red">hotmail e gmail</font></b> você deve escrever @hotmail.com,@gmail.com) ';
Congrats for the mod, it's very usefull ;)
Farewell
- Costa
Thanx for the translation,i will update it shortly ;)
Thank you
I've update my post with utf-8 translation too
Farewell
- Costa
Quote from: Costa on November 14, 2008, 09:39:11 AM
Thank you
I've update my post with utf-8 translation too
Farewell
- Costa
Updated,thx again ;)
Hi Duncan85,
Thanks for the useful mod.
I have many people reporting @in.com members were not receiving the email properly.
So i was helpless. Now, Thank you for this very useful mod.
Quote from: jossanaijr on November 14, 2008, 09:25:20 AM
Is there a known list of these E-Mail providers?
I prepared a list of the most common 300 providers of disposable email addresses. It is here in the Charter-only section.
http://www.simplemachines.org/community/index.php?topic=274412.msg1798516#msg1798516
Please do not leak it.
Great Mod!
Spanish_latin:
$txt['restricted'] = 'Lo sentimos, Las cuentas de correo de ese proveedor no pueden ser usadas, hemos tenido reportes de algunos miembros ya que los correos no le llegan usando ese proveedor,por favor usa otra cuenta de correo de otro proveedor.Nosotros lamentamos los inconvenientes producidos por tu proveedor de correo.';
$txt['enable_restrict_EmailProvider'] = 'Activar la restriccion de proveedores de correos <br />en el registro';
$txt['restricted_provider'] = 'Cuales proveedores de correo deben ser restringidos <br />en el registro ? <br /><i> (Esto es un ejemplo,para los proveedores de <b><font color="red">hotmail y gmail</font></b> tu debes escribir: @hotmail.com,@gmail.com) ';
Spanish_latin-utf8:
$txt['restricted'] = 'Lo sentimos, Las cuentas de correo de ese proveedor no pueden ser usadas, hemos tenido reportes de algunos miembros ya que los correos no le llegan usando ese proveedor,por favor usa otra cuenta de correo de otro proveedor.Nosotros lamentamos los inconvenientes producidos por tu proveedor de correo.';
$txt['enable_restrict_EmailProvider'] = 'Activar la restriccion de proveedores de correos <br />en el registro';
$txt['restricted_provider'] = 'Cuales proveedores de correo deben ser restringidos <br />en el registro ? <br /><i> (Esto es un ejemplo,para los proveedores de <b><font color="red">hotmail y gmail</font></b> tu debes escribir: @hotmail.com,@gmail.com) ';
Thanks for this! Alot of people register with @spamcorptastic.com and now I can stop it! Thanks again. :)
Quote from: Sincere on November 14, 2008, 03:49:03 PM
I prepared a list of the most common 300 providers of disposable email addresses. It is here
http://www.simplemachines.org/community/index.php?topic=274412.msg1798516#msg1798516
Please do not leak it.
I can't see it.
Quote from: Sincere on November 14, 2008, 03:49:03 PM
Quote from: jossanaijr on November 14, 2008, 09:25:20 AM
Is there a known list of these E-Mail providers?
I prepared a list of the most common 300 providers of disposable email addresses. It is here
http://www.simplemachines.org/community/index.php?topic=274412.msg1798516#msg1798516 (http://www.simplemachines.org/community/index.php?topic=274412.msg1798516#msg1798516)
Please do not leak it.
An Error Has Occurred! The topic or board you are looking for appears to be either missing or off limits to you.
He's posted the message probably in charter member board,that's why we can not see the post ^^
I have question – is this generate any error report in logs?
It will be very interesting if it will do that because I will have few facts more about some user - When you lead kind of small and specialized forum it is much needed info
Spel
Nope,the mod generates nothing in error logs,but it would maybe do that in the next release
Do you think like me - it is helpful to know what users doing in case of registration?
Maybe kind of on/off for that feature because somebody simply don't have need for that kind of reports!
Spel
Hey, duncan, you'll need a swedish translation for this mod ;)
$txt['restricted'] = 'Ledsen, men e-postadresser från den hemsidan stödjs inte av oss. Vi har haft medlemmar som rapporterat att dom inte kan ta emot mail när de använder en sådan e-postadress. Var snäll och använd en alternativ e-postadress.
Vi är ledsna för porblemen som detta kan orsaka för dig.';
$txt['enable_restrict_EmailProvider'] = 'Aktivera begränsning av e-postadresser<br />vid registrering.';
$txt['restricted_provider'] = 'Vilka e-postadresser får inte användas<br />vid registrering ? <br /><i> (Till exempel, om du inte vill tillåta e-postadresser från <b><font color="red">hotmail och gmail</font></b> skriver du @hotmail.com,@gmail.com) ';
Quote18 November 2008
- Added language support for
o spanish_latin
o spanish_latin-utf8 (Thx NIBOGO (http://www.simplemachines.org/community/index.php?action=profile;u=126412) )
o swedish (Thx Nascar (http://www.simplemachines.org/community/index.php?action=profile;u=143954) )
Thank you guys again for the tranlastions ;)
awesome mod! will download and install it now. thank you! :)
Doesn't seem to work
Enabled running on 1.1.7 and I had to fake members join and well they joined no problem using an email from the charter list. Yes I do have it enabled
After I register I get the following message.
Thank you for registering. You will receive an email soon with a link to activate your account. If you don't receive an email after some time, check your spam folder.
I had to manually edit the ./Sources/Subs-Members.php file, but everything else went fine.
Thanks for this usefull mod
I install in my 1.1.7 works good
My language is greek utf-8
I make some changes in install1.xml
find
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['restricted'] = 'Desculpe, contas de E-mail desse provedor não podem ser usadas. Temos tido membros se queixando que não têm recebido e-mail quando usam esse provedor. Por favor, use um e-mail alternativo. Lamentamos o incoveniente causado pelo seu provedor de e-mail.';
$txt['enable_restrict_EmailProvider'] = 'Habilitar a restri秡tilde;o de provedores de e-mail';
$txt['restricted_provider'] = 'Quais provedores deverão ser bloqueados <br />no registo? <br /><i> (Como exemplo, para os provedores <b><font color="red">hotmail e gmail</font></b> você deve escrever @hotmail.com,@gmail.com) ';]]></add>
</operation>
</file>
replace with
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['restricted'] = 'Συγνώμη , λογαριασμοί E-mail απο αυτό τον πάροχο δεν είναι δυνατόν να χρησιμοποιηθούν , έχουμε αρκετά μέλη που μας ανέφεραν οτι ΔΕΝ μπορούν να λάβουν E-Mails ( ενεργοποίησης - μηνυμάτων ) απο αυτόν τον πάροχο , παρακαλώ χρησιμοποιήστε μια εναλλακτική διεύθυνση email .Λυπόμαστε για τη δυσχέρεια που προκαλείται εξαιτίας του παρόχου του ηλεκτρονικού ταχυδρομείου σας.';
$txt['enable_restrict_EmailProvider'] = 'Ενεργοποιήστε τον περιορισμό των E-Mail providers <br />κατά την εγγραφή';
$txt['restricted_provider'] = 'Ποιοι providers θα απαγορέυονται <br />κατά την εγγραφή ? <br /><i> (Για παραδειγμα ,για τους <b><font color="red">hotmail and gmail</font></b> πρεπει να γραψουμε @hotmail.com,@gmail.com) ';
]]></add>
</operation>
</file>
I look forward to installing this overnight when my small forum is quiet :)
We have included, in the Registration Agreement' in huge red letter, 'No Free Email address'
and still people join using 'gmail' and the like, drives me crazy ::)
This I hope will now rectify that problem, thank you
A litle bug
If i block the @yahoo.gr then a user CAN register with e-mail writing as @YAHOO.GR
Maybe need something for caps .....
Check it plz
Thanks again for the good mod
Quote from: villasg on November 29, 2008, 01:09:47 PM
A litle bug
If i block the @yahoo.gr then a user CAN register with e-mail writing as @YAHOO.GR
Maybe need something for caps .....
Check it plz
Thanks again for the good mod
Thx for reporting,i've fixed it (i hope),try the version 1.1
http://custom.simplemachines.org/mods/index.php?action=download;mod=1493;id=77862
Tested and work fine the 1.1
With
@yahoo.gr
@YAHOO.GR
@YaHOo.gR
Thanks
Nice mod mate :)
Should we start a user based list of banned/blocked email providers?
I'll look for a few, but others will have different ones.
Then if you have time Duncan, you could add them to a .txt file in your first post, for download etc.
What do you guys think?
EDIT:
Here's a few I quickly found.
Contribute peeps, it only benefits you! ;)
Found Bug:
English UTF8 Language has the UTF8 in wrong position.
=> Modifications-utf8.english.php
- Should Be:
=> Modifications.english-utf8.php
Thus, I received error when tried to install.
Good stuff, and thanks for spottin that.
Im sure Duncan will correct that once his New Year bender is over lol ;)
Quote from: skyhintack on December 31, 2008, 02:09:05 PM
Found Bug:
English UTF8 Language has the UTF8 in wrong position.
=> Modifications-utf8.english.php
- Should Be:
=> Modifications.english-utf8.php
Thus, I received error when tried to install.
Huh How could i overlook that :P
Fixed ;)
Execute Modification ./Themes/default/languages/Modifications.english-utf8.php File not found
Is what I get, will this damage the install if I continue? (my board is in english)
also can we get that list with the disposable emails back online so that I can add them?
Sorry my mistake,try that
http://custom.simplemachines.org/mods/index.php?action=download;mod=1493;id=82486
hi Ducan85, could you add the function which bann all providers but providers in list?
thanks!
-saosangmo
Quote from: saosangmo on February 05, 2009, 09:18:47 AM
hi Ducan85, could you add the function which bann all providers but providers in list?
thanks!
-saosangmo
What kinda function ? I couldn't understand what you mean
Do you want a ban list for restricted providers or what ?
I believe he means he wants to be able to list e-mail providers that will be accepted, and all not listed will fail registration.
I thought about this when I installed it, it'd be great for a corporate environment then they could restrict registration to their own domain.
yeah,
I want to allow users, who use only email which ends with @yahoo and @gmail.com, can register at my commnunity.
This function is very useful for private or internal community.
thank Simplemachines Cowboy for your explanation.
I'm not good in English! sry!
-saosangmo
@saosangmo
I'll have a look at this,when i've time
Hi all,
I've been using SMF for a about a year and recently downloded this mod - what a Godsend. Any chance of getting this list to add? I started adding addys by hand and with the small list already in this thread but it would save quite a bit of time of having to manually compile the list by hand.
Thx,
Bill
Quote from: jossanaijr on November 15, 2008, 01:56:20 PM
Quote from: Sincere on November 14, 2008, 03:49:03 PM
I prepared a list of the most common 300 providers of disposable email addresses. It is here
http://www.simplemachines.org/community/index.php?topic=274412.msg1798516#msg1798516
Please do not leak it.
I can't see it.
Quote from: saosangmo on February 06, 2009, 03:09:10 AM
yeah,
I want to allow users, who use only email which ends with @yahoo and @gmail.com, can register at my commnunity.
This function is very useful for private or internal community.
thank Simplemachines Cowboy for your explanation.
I'm not good in English! sry!
-saosangmo
So here we go !
Changelog:v1.2 - 11 March 2009° With the new version you can choose,which provides should be accepted on registration,also that means,the providers which are on the accepted list would be accepted and the others would be rejected on registration
Before to install it i want to know if Is it posssible to do the opposite: To add the providers which are not accepted and the others would be accepted on registration.
Thanks
Quote from: searchgr on March 15, 2009, 01:19:22 AM
Before to install it i want to know if Is it posssible to do the opposite: To add the providers which are not accepted and the others would be accepted on registration.
Thanks
For the providers,which should not be accepted,there is a restricted list
Thank you
This works perfectly on my 1.1.8 but on trying to instal
on a SMF 2.0 RC1 with very little in the way of modifications
installed I get an error reply:
Installations actions for "Restrict Email Providers on Registration":
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/Subs-Members.php Test failed
1. Replace ./Sources/Subs-Members.php Test failed
2. Execute Modification ./Sources/ManageSettings.php Test successful
1. Add After ./Sources/ManageSettings.php Test successful
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
Is there something I am missing with this? Please and thanks for your help :)
Then your ./Sources/Subs-Members.php is somehow not the same as the fresh one,that's why test has failed,then you should do it manually
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1493;attach=90356;smf_version=2.0_RC1
Thanks, but the instal of the SMF 2.0 RC1 was only
done approximately 2 weeks ago :)
Edit.
Quote from: !!kaos!! on May 06, 2009, 05:42:30 AM
Merhaba 'Duncan85' bu mod güzel ancak türkçesi yok türkçe çeviri yapabilirmisin.
You should speak here in english mate,i'd translate it when i've time
Hi 'Duncan85' Can you do this mod good, but Turkish is Turkish translation.
Added end Help.english.php $helptxt['accepted_provider'] = 'Which providers should be accepted
on registration ? <br /><br />(As an example,for the providers hotmail and gmail you should write @hotmail.com,@gmail.com).Note that either restricted provider or accepted provider list should be empty';
$helptxt['restricted_provider'] = 'Which providers should be restricted
on registration ? <br /><br />(As an example,for the providers hotmail and gmail you should write @hotmail.com,@gmail.com) ';
Found an bug in script. After install there are labels missing in the administration panel. Please fix this problem.
Quote from: mcgiwer on May 11, 2009, 09:16:31 AM
Found an bug in script. After install there are labels missing in the administration panel. Please fix this problem.
Missing labels ?
You might be wrong,because it's been tested on fresh install,so it would be something wrong with an another mod
-Duncan85
Quote from: Duncan85 on May 11, 2009, 09:56:23 AM
Missing labels ?
You might be wrong,because it's been tested on fresh install,so it would be something wrong with an another mod
The labels are from this plugin. I send the snapshoot to show you that I'm not wrong
Apparently you're not using english as default language,that's why it's normal that you get blank labels
Either you should translate the language string into your own language or you can use this mod from here
http://custom.simplemachines.org/mods/index.php?mod=615
Quote from: Duncan85 on May 11, 2009, 11:24:31 AM
Apparently you're not using english as default language,that's why it's normal that you get blank labels
Either you should translate the language string into your own language or you can use this mod from here
http://custom.simplemachines.org/mods/index.php?mod=615
This mod method has worked. Thanks
Great Mod for bad bots! Pity that registered members can change mail address in profil.
It would be perfect for a forum in a company which accept only adresses in company-domain.
I'd like to see it extended so that the restricted email addresses also kicked in when a user changed their email address. MS's spam filters are a major problem for many forums whose email only gets delivered to the first 20 or so sign-ups from hotmail.com for instance.
I'd go even further and want a nag pop-up appearing every x posts for anyone registered with one of those addresses, but I guess I'm veering into the territory of Mod requests there.
Hi got this problem
I added this mail list in restricted emails
============================
@inurl.com,@yaho.com,@mailinator.com,@trashymail.com,@MailEater.com,@spambox.us,@spamhole.com,@pookmail.com,@bsnow.net,@yopmail.com,@tempemail.net,@makemetheking.com,@spamex.com,@anonymbox.com,@mytrashmail.com,@hidemyass.com,@deadaddress.com,@meltmail.com,@sharpmail.co.uk,@mailboxable.net,@neomailbox.com,@mailcatch.com,@mailexpire.com,@temporaryinbox.com,@maileater.com,@jetable.org,@spambox.us,@guerrillamail.com,@spamhole.com,@10minutemail.com,@dontreg.com,@tempomail.fr,@tempemail.net,@pookmail.com,@spamfree24.org,@kasmail.com,@spammotel.com,@greensloth.com,@spamspot.com,@spam.la,@spamevader.com,@,@sendanonymousemail.com,@tempinbox.com,@mintemail.com,@spamcero.com,@incognitomail.com,@deadaddress.com,@mailcatch.com,@tempail.com,@soodonims.com
============================
But when I am trying to register with an email address with @yahoo.com it says it is not allowed. its not in the list but when I tried to put only two restricted email providers namely (@inurl.com,@mailinator.com) it accepts the @yahoo email address. what could have gone wrong?
Quote from: aED on September 27, 2009, 06:46:00 AM
Hi got this problem
I added this mail list in restricted emails
============================
@inurl.com,@yaho.com,@mailinator.com,@trashymail.com,@MailEater.com,@spambox.us,@spamhole.com,@pookmail.com,@bsnow.net,@yopmail.com,@tempemail.net,@makemetheking.com,@spamex.com,@anonymbox.com,@mytrashmail.com,@hidemyass.com,@deadaddress.com,@meltmail.com,@sharpmail.co.uk,@mailboxable.net,@neomailbox.com,@mailcatch.com,@mailexpire.com,@temporaryinbox.com,@maileater.com,@jetable.org,@spambox.us,@guerrillamail.com,@spamhole.com,@10minutemail.com,@dontreg.com,@tempomail.fr,@tempemail.net,@pookmail.com,@spamfree24.org,@kasmail.com,@spammotel.com,@greensloth.com,@spamspot.com,@spam.la,@spamevader.com,@,@sendanonymousemail.com,@tempinbox.com,@mintemail.com,@spamcero.com,@incognitomail.com,@deadaddress.com,@mailcatch.com,@tempail.com,@soodonims.com
============================
But when I am trying to register with an email address with @yahoo.com it says it is not allowed. its not in the list but when I tried to put only two restricted email providers namely (@inurl.com,@mailinator.com) it accepts the @yahoo email address. what could have gone wrong?
as you see in first mail list,you have yahoo in it,so it's normal that you got a warning,that yahoo is not allowed
Quote from: Duncan85 on September 27, 2009, 11:00:45 AM
as you see in first mail list,you have yahoo in it,so it's normal that you got a warning,that yahoo is not allowed
Its not actually yahoo.com but "yaho.com" with a single
o since I saw a lot of not activated members with email addresses with that format maybe they did not noticed that it has only a single letter o.
I would also love it if tho mod had a restrict/allow email address feature instead of or along with restricting just the provider, that would make it perfect for my site.
Quote from: spoogs on October 07, 2009, 05:31:59 PM
I would also love it if tho mod had a restrict/allow email address feature instead of or along with restricting just the provider, that would make it perfect for my site.
Changelog:
v1.2 - 11 March 2009
° With the new version you can choose,which provides should be accepted on registration,also that means,the providers which are on the accepted list would be accepted and the others would be rejected on registration
Quote from: Duncan85 on October 10, 2009, 04:30:29 PM
Quote from: spoogs on October 07, 2009, 05:31:59 PM
I would also love it if tho mod had a restrict/allow email address feature instead of or along with restricting just the provider, that would make it perfect for my site.
Changelog:
v1.2 - 11 March 2009
° With the new version you can choose,which provides should be accepted on registration,also that means,the providers which are on the accepted list would be accepted and the others would be rejected on registration
Thanks duncan we are talking about specific email addresses not just the entire provider... for example i would love to put
[email protected] on a restricted list without also restriction
[email protected].
Example 2... would love to allow
[email protected] without allowing everyone else @mail.com.
When you allow or restrict a provider everyone from that provider is affected, we would love to apply this feature to specific individuals... meaning 1 email address at a time.... hope this clears up any misunderstanding
Any word on this being updated for SMF 2.0 RC2 ?
I'll be doing the site upgrade between Christmas and New Year, and it'd be great if it was available by then
Thanks
Gaz
is this working with rc 2.0?
Hohum - still no update for RC2 - I guess it's back to running a forum that cannot restrict email providers?
Bah Humbug - Spammers and Hackers will have a field day again.
This mod works fine on RC2
Nice Mod
Here the German Lang
// Restrict Email Providers on Registration MOD
$txt['restricted'] = 'Sorry, aber E-Mail Accounts von diesem Provider sind hier nicht zugelassen, da sie von einigen Usern gemeldet wurden. Bitte benutze eine Alternativ E-Mail Adresse von einem anderen Provider.';
$txt['enable_restrict_EmailProvider'] = 'Beschränkung der E-Mail Provider beim Registrieren';
$txt['restricted_provider'] = 'Welche E-Mail Provider sollen verboten werden bei der Registrierung?<br /><span class="smalltext">(Zum Beispiel, für die Provider <b><font color="red">hotmail und gmail</font></b> folgendes eintragen: @hotmail.com,@gmail.com)</span>';
$txt['accepted_provider'] = 'Welche E-Mail Provider sollen erlaubt werden bei der Registrierung?<br /><span class="smalltext">(Zum Beispiel, für die Provider <b><font color="red">hotmail und gmail</font></b> folgendes eintragen: @hotmail.com,@gmail.com)<br /><font color="red"><b>Beachte, das die Liste der verbotenen Provider leer sein muss.</b></font></span>';
here the Turkish language
// Begin Restrict Email Providers
$txt['restricted'] = 'Üzgüm, vermiş olduğunuz e-posta sağlayıcı yasaktır. Lütfen başka bir alternatif e-posta sağlayıcı kullanınız.';
$txt['enable_restrict_EmailProvider'] = 'E-Posta Sağlayıcı Kısıtlama';
$txt['restricted_provider'] = 'Kayıt esnasında hangi E-Posta sağlayacılar yasaklansın?<br /><span class="smalltext">(Örnek, E-Posta Sağlayacılar <b><font color="red">hotmail ve gmail</font></b> yazılanlar: @hotmail.com,@gmail.com)</span>';
$txt['accepted_provider'] = 'Kayıt esnasında hangi E-Posta sağlayacılar eklensin?<br /><span class="smalltext">(Örnek, E-Posta Sağlayacılar <b><font color="red">hotmail und gmail</font></b> yazılanlar: @hotmail.com,@gmail.com)<br /><font color="red"><b>Dikkat, listede bulunan yasaklı E-Posta sağlayacılar boş olması gerekiyor.</b></font></span>';
// End Restrict Email Providers
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
Quote from: Eclipse16V on March 15, 2010, 02:15:26 AM
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
Already working on 2.0 RC3 ;)
Hi,
When someone is registering and inputs a restricted email, it just shows "An error has Occurred" and does not display the reason page. I am using RC3
It triggers an error in the log:
http://www.somesite.com/forum/index.php?action=register2
8: Undefined index: restricted
File:/forum/Sources/Subs-Members.php
Line: 551
Ok, I uninstalled and reinstalled, seems ok now. Wonder what happened.
how would you go about integrating this mod with guests allowed to post on the forum?
ie, if gmail is restricted at registration, you can still post as guest with gmail as email provider.
www.ozinart.com
smf 1.1.11 (all mods most recent)
Thanks for this MOD Duncan85
This is the list of emails I have in my restriction section
@2prong.com,@10minutemail.com,@20minutemail.com,@30minutemail.com,@bigstring.com,@bugmenot.com,@despam.it,@dodgeit.com,@dontreg.com,@guerrillamail.biz,@kasmail.com,@jetable.org,@incognitomail.com,@maileater.com,@mailexpire.com,@mailinator.com,@minteemail.com,@mierdamail.com,@mytrashmail.com,@nobulk.com,@pookmail.com,@spam.la,@spambox.us,@spamcero.com,@spamfree24.org,@spamhole.com,@spammotel.com,@spamspot.com,@tempemail.fr,@tempinbox.com,@tempmail.it,@temporaryinbox.com,@wuzup.net,@mail.ru,@gmx.com
Anyone want to use this, please do.
I got that from botscouts for my joomla page but added them to my SMF forum thanks to your MOD Duncan85
Nice mod, thank's fort that :)
Here's french translation :
$txt['restricted'] = 'Désolé, les adresses de ce domaine ne peuvent pas être utilisées, nous avons eu des retours d\'utilisateurs signalant des courriels jamais reçus dans les boites aux lettres de ce domaine. Merci d\'utiliser une adresse d\'un autre domaine.Nous sommes désolé pour la gêne occasionnée.';
$txt['enable_restrict_EmailProvider'] = 'Activer la restriction de certains domaines de courriels <br />à l\'inscription';
$txt['restricted_provider'] = 'Quels sont les domaines à interdire<br />à l\'inscription ? <br /><i> (Par exemple, pour les domaines <b><font color="red">Hotmail</font> et <font color="red">Gmail</font></b> vous devez inscrire @hotmail.com,@gmail.com) </i>';
$txt['accepted_provider'] = 'Quels sont les domaines autorisés<br />à l\'inscription ? <br /><i> (Par exemple, As an example, pour les domaines <b><font color="red">Hotmail</font> et <font color="red">Gmail</font></b> vous devez inscrire @hotmail.com,@gmail.com) </i>.<font color="red"><b>Notez qu\'une seule liste doit être renseignée, l\'autre devant alors rester vide</b></font>';
If I may, there seems to be missing "</i>" in the english text, to finish the "examples" sentences, which I added here in french translation.
If I may also, for further enhancements of this mod, I suggest that the feedback sentence would become dynamic, in order to easily modify it from the admin panel.
Since I use your mod to restrict to only one domain, I changed the sentence (only for my forum, not in french translation I gave) in something like "sorry, only @my_company.com emails are allowed at registration. Please contact the administrator of this forum if you are not employed by myCompany and need an access to the forum"
hth
Question, can you use a "*" wildcard? like @yahoo.* ? Would this prevent idiots who try and use @yahoo.de, then @yahoo.fa, etc.
Also, is there any way to wildcard *.info for example. Lots of spammers use .info sites for email now.
I don't know why, but my site has been getting hundreds of members that are all spammers, I delete them all, and nobody can post without buying a $5.00 membership. So the spammers waste their time.
Hi there Duncan85 or anyone that can help me.
This modification has until today worked perfectly fine, but today I find a
new member using a yahoo email address. I have restricted this as it
is a requirement of joining my forum that they join using their Internet
Providers assigned email address. I do allow some, extremely rare
then only if one of my moderators or myself personally know the
member
I am using 1.1.13
Thanks for any suggestions, would it be worth while uninstalling it &
reinstalling the mod?
Hi there, just wondering if I am the only one suffering with this at present. I just caught
a 'hotmail.com' email address sign up. ???? This is alos in my list of restricted email
addresses.
Thank you for any help with this.
Quote from: squad on February 22, 2011, 08:24:52 PM
Hi there Duncan85 or anyone that can help me.
This modification has until today worked perfectly fine, but today I find a
new member using a yahoo email address. I have restricted this as it
is a requirement of joining my forum that they join using their Internet
Providers assigned email address. I do allow some, extremely rare
then only if one of my moderators or myself personally know the
member
I am using 1.1.13
Thanks for any suggestions, would it be worth while uninstalling it &
reinstalling the mod?
Quote from: squad on February 27, 2011, 10:02:33 AM
Hi there, just wondering if I am the only one suffering with this at present. I just caught
a 'hotmail.com' email address sign up. ???? This is alos in my list of restricted email
addresses.
Thank you for any help with this.
I have uninstalled & reinstalled the mod, so hopefully that
will solve the problem. I am sick of banning people because
they cannot read the Registration Agreement saying they
cannot register with a 'free' email address - and it is in bright
red letter in a huge font :o
Also as 'Spoogs' asked can this be allowed for some email
addys. Or can the admin override the restriction by registrating
a membe themselves?
Thank you for any help.
I think it is better now, I uninstalled & reinstalled, don't have a clue what
happened. But testing two different (a yahoo & a hotmail) email addys
I received an error stating that my email address was spam hehehe
Hopefully it is all good now.
I would be interested in knowing if by adding a specific email to the 'permit'
would allow that or if the admin can override the restrictions?
Thanks again.
what are the odds someone has compiled a mass spam email list?
say like a zipped module with known spammers?
1- Very useful mod. Thank you Good job.
2- Not all the languages added to the new update. There should be like 6-7 languages now.
3- If i just add couple @domains to be rejected and leave the allow box empty, would it allow every other email domain except the ones in the reject box? I just dont want to put lots every email domains to be allowed just to block couple domains.
4- Does it work for only individual email adresses but not the entire email domain?
5- It would be very nice to be able to customize the error/rejection message.
Thank you. Good job with the mod.
Quote from: PLAYBOY on June 15, 2011, 03:36:44 AM
2- Not all the languages added to the new update. There should be like 6-7 languages now.
I was lazy to add languages :P ,if somebody would be so kind and add languages to installation package,i would appreciate it
Quote
3- If i just add couple @domains to be rejected and leave the allow box empty, would it allow every other email domain except the ones in the reject box? I just dont want to put lots every email domains to be allowed just to block couple domains.
Yes it will work,as you said
Quote
4- Does it work for only individual email adresses but not the entire email domain?
It works for entire domain
Quote
5- It would be very nice to be able to customize the error/rejection message.
Actually you can edit the message from the language file
Quote from: PLAYBOY on June 15, 2011, 03:36:44 AM
4- Does it work for only individual email adresses but not the entire email domain?
You wouldn't need this mod to do that when SMF has the ability to do that from the Admin/ Members section, you can ban individual email addresses in there and still allow the domain to be accepted.
Just want to say thanks for this and I'm going to see if it'll install on SMF 2.0 tonight when i get home. Hopefully that will stop the constant barage of spammers try to sign up at the moment.
Thanks for the useful mod! Unfortunately the installation process is broken :(.
1. Install "Related Topics 1.4" mod ( http://custom.simplemachines.org/mods/index.php?mod=189 )
2. See that "Related Topics" settings are available at: Admin -> Configuration -> Modification Settings -> Related Topics.
3. Install "Restrict Email Providers on Registration 1.2".
!!! 4. See that there is no such path as "Admin -> Configuration -> Modifications Settings -> Enable restriction of E-Mail providers on registration" as promised.
!!! 5. See that all the mod's options are now located at "Admin -> Configuration -> Modification Settings -> Related Topics"
6. Uninstall "Restrict Email Providers on Registration 1.2" mod.
!!! 7. See that all of the "Related Topics" mod's options are still unavailable at "Admin -> Configuration -> Modification Settings -> Related Topics".
!!! 8. See that you are now unable to safely uninstall "Related Topics" mod, because of the errors.
What shall I do? How can I fix this problem and get "Related Topics" setting to work (or how do I safely uninstall it now and install again)? Could you provide the fix for my problem?
Quote from: mikser on August 01, 2011, 07:43:19 PM
Thanks for the useful mod! Unfortunately the installation process is broken :(.
1. Install "Related Topics 1.4" mod ( http://custom.simplemachines.org/mods/index.php?mod=189 )
2. See that "Related Topics" settings are available at: Admin -> Configuration -> Modification Settings -> Related Topics.
3. Install "Restrict Email Providers on Registration 1.2".
!!! 4. See that there is no such path as "Admin -> Configuration -> Modifications Settings -> Enable restriction of E-Mail providers on registration" as promised.
!!! 5. See that all the mod's options are now located at "Admin -> Configuration -> Modification Settings -> Related Topics"
6. Uninstall "Restrict Email Providers on Registration 1.2" mod.
!!! 7. See that all of the "Related Topics" mod's options are still unavailable at "Admin -> Configuration -> Modification Settings -> Related Topics".
!!! 8. See that you are now unable to safely uninstall "Related Topics" mod, because of the errors.
What shall I do? How can I fix this problem and get "Related Topics" setting to work (or how do I safely uninstall it now and install again)? Could you provide the fix for my problem?
You better ask this in related topics' support thread,i can't do much about this
Edit: I checked and related topics menu is not under Modification Settings,mod has its own menu as
Configuration -> Related Topics
Quote from: Kermit on August 02, 2011, 03:56:21 AM
You better ask this in related topics' support thread,i can't do much about this
Edit: I checked and related topics menu is not under Modification Settings,mod has its own menu as Configuration -> Related Topics
I noticed it myself after I wrote the post above.
But it still seems to me, that:
1. "Admin -> Configuration -> Modification Settings -> Related Topics" should contain only the stuff it originally contained (even if it is a double post on behalf of "Related Topics" mod). Basically I mean, that "Restrict Email Providers on Registration 1.2" mod shouldn't write to that directory.
2. "Restrict Email Providers on Registration 1.2" should write to the "Admin -> Configuration -> Modifications Settings -> Enable restriction of E-Mail providers on registration" tab as promised.
3. "Admin -> Configuration -> Modification Settings -> Related Topics" should at least become the old itself again after "Restrict Email Providers on Registration 1.2" is uninstalled.
There is no extra tab created just a line inside Modification Settings part and this mod doesn't replace any other code nor deletes other codes,they even don't edit the same files ::) as i explained above related topics has totally different menu,so i don't get what is the deal with your problem
I will test this thing, but before I do, I want to clarify one thing.
Where exactly should the options for your mod locate?
1. In "Admin -> Configuration -> Modifications Settings -> Enable restriction of E-Mail providers on registration" tabs (so every single one of the mentioned is a tab; non is a simple check-box)?
2. In "Admin -> Configuration -> Modifications Settings" tab with "Enable restriction of E-Mail providers on registration" option?
3. In "Admin -> Configuration -> Modifications Settings --> Miscellaneous" tab with "Enable restriction of E-Mail providers on registration" option?
4. Somewhere else? :)
I already wrote there is no extra tab !
Quote from: mikser on August 02, 2011, 04:20:55 AM
3. In "Admin -> Configuration -> Modifications Settings --> Miscellaneous" tab with "Enable restriction of E-Mail providers on registration" option?
that's it
I am looking after a forum for guvens restaurant.com and I am experiencing problems for new members who want to register. The following message appears - 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.
I believe it has some thing to do with this Mod but I am not sure what to do about it.
I hope you can help, my webmaster has left and I have no idea what to do. Thank you
Disable the mod.
Is there a way to block country extensions? I get a lot of spambots registering with .pl (Poland) email addresses. I tried adding @*.pl to the banned list but didn't work. Some email addresses are @subdomian.domain.pl. Is there a way I can block email addresses using this extension at the country TLD level such as .pl or .ru?
Here is a list of disposable email accounts I put together:
Just copy and paste this into the "Which providers should be restricted
on registration ? " box
@*beep*.com,@.e4ward.com,@0815.ru,@0sg.net,@0wnd.net,@0wnd.org,@10minutemail.com,@10minutemail.com,@12hourmail.com,@1chuan.com,@1zhuan.com,@21cn.com,@2prong.com,@3126.com,@3d-painting.com,@3g.ua,@4warding.com,@4warding.net,@4warding.org,@50e.info,@6url.com,@9ox.net,@a-bc.net,@abwesend.de,@addcom.de,@agnitumhost.net,@alpenjodel.de,@alphafrau.de,@amorki.pl,@anonbox.net,@anonymbox.com,@antichef.com,@antichef.net,@antispam.de,@antispam24.de,@autosfromus.com,@baldmama.de,@baldpapa.de,@ballyfinance.com,@betriebsdirektor.de,@bigmir.net,@bin-wieder-da.de,@bio-muesli.info,@bio-muesli.net,@bk.ru,@bleib-bei-mir.de,@blockfilter.com,@bluebottle.com,@bodhi.lawlita.com,@bonbon.net,@briefemail.com,@brokenvalve.com,@brokenvalve.org,@bspamfree.org,@buerotiger.de,@bugmenot.com,@bumpymail.com,@buy-24h.net.ru,@cashette.com,@center-mail.de,@centermail.at,@centermail.ch,@centermail.com,@centermail.de,@centermail.info,@centermail.net,@cghost.s-a-d.de,@chongsoft.org,@chongsoft.org,@cool.fr.nf,@coole-files.de,@cosmorph.com,@courriel.fr.nf,@curryworld.de,@cust.in,@cyber-matrix.com,@dandikmail.com,@dating4best.net,@deadspam.com,@despam.it,@despammed.com,@dfgh.net,@die-besten-bilder.de,@die-genossen.de,@die-optimisten.de,@die-optimisten.net,@dieMailbox.de,@digital-filestore.de,@directbox.com,@discardmail.com,@discardmail.de,@discartmail.com,@disposeamail.com,@docmail.cz,@dodgeit.com,@dodgit.com,@dogit.com,@dontreg.com,@dontreg.com,@dontsendmespam.de,@dontsentmespam.de,@download-privat.de,@dumpandjunk.com,@dumpmail.com,@dumpmail.de,@dyndns.org,@e-mail.com,@e-mail.org,@e4ward.com,@eintagsmail.de,@email.org,@email4u.info,@emaildienst.de,@emailias.com,@emailmiser.com,@emailtaxi.de,@emailto.de,@emailwarden.com,@example.com,@fahr-zur-hoelle.org,@fakeinformation.com,@falseaddress.com,@fantasymail.de,@farifluset.mailexpire.com,@fastacura.com,@fastchevy.com,@fastchrysler.com,@fastkawasaki.com,@fastmazda.com,@fastmitsubishi.com,@fastnissan.com,@fastsubaru.com,@fastsuzuki.com,@fasttoyota.com,@fastyamaha.com,@feinripptraeger.de,@fettabernett.de,@filzmail.com,@fishfuse.com,@forgetmail.com,@freemeilaadressforall.net,@freudenkinder.de,@fromru.com,@front14.org,@gawab.com,@gawab.com,@gentlemansclub.de,@getonemail.com,@ghosttexter.de,@gishpuppy.com,@gold-profits.info,@goldtoolbox.com,@golfilla.info,@great-host.in,@greensloth.com,@greensloth.com,@guerillamail.com,@guerillamail.org,@guerrillamail.biz,@guerrillamail.com,@guerrillamail.com,@guerrillamail.de,@guerrillamail.info,@guerrillamail.org,@h8s.org,@hab-verschlafen.de,@habmalnefrage.de,@haltospam.com,@hatespam.org,@herr-der-mails.de,@hidemail.de,@home.de,@hush.com,@hushmail.com,@i.ua,@ich-bin-verrueckt-nach-dir.de,@ich-will-net.de,@imails.info,@imstations.com,@inbox.ru,@inbox2.info,@inboxclean.org,@incognitomail.net,@inerted.com,@inet.ua,@inmail24.com,@ipoo.org,@ist-allein.info,@ist-einmalig.de,@ist-ganz-allein.de,@ist-willig.de,@izmail.net,@jetable.com,@jetable.de,@jetable.fr.nf,@jetable.net,@jetable.org,@jetable.org,@jetfix.ee,@jetzt-bin-ich-dran.com,@jn-club.de,@junkmail.com,@kaffeeschluerfer.com,@kaffeeschluerfer.de,@kasmail.com,@kasmail.com,@killmail.com,@killmail.net,@kinglibrary.net,@klassmaster.com,@klassmaster.net,@kommespaeter.de,@krim.ws,@kuh.mu,@kulturbetrieb.info,@lass-es-geschehen.de,@liebt-dich.info,@link2mail.net,@list.ru,@listomail.com,@litedrop.com,@lortemail.dk,@loveyouforever.de,@maennerversteherin.com,@maennerversteherin.de,@mail.by,@mail.htl22.at,@mail.misterpinball.de,@mail.ru,@mail.ru,@mail.svenz.eu,@mail15.com,@mail2rss.org,@mail333.com,@mail4days.com,@mail4u.info,@mailblocks.com,@mailbucket.org,@mailcatch.com,@maileater.com,@maileater.com,@mailexpire.com,@mailexpire.com,@mailfreeonline.com,@mailin8r.com,@mailinater.com,@mailinator.com,@mailinator.com,@mailinator.net,@mailinator2.com,@mailinblack.com,@mailmoat.com,@mailnull.com,@mailquack.com,@mailshell.com,@mailsiphon.com,@mailtrash.net,@mailueberfall.de,@mailzilla.com,@makemetheking.com,@mamber.net,@meine-dateien.info,@meine-diashow.de,@meine-fotos.info,@meine-urlaubsfotos.de,@meinspamschutz.de,@messagebeamer.de,@metaping.com,@mintemail.com,@mns.ru,@moncourrier.fr.nf,@monemail.fr.nf,@monmail.fr.nf,@mt2009.com,@mufmail.com,@muskelshirt.de,@mx0.wwwnew.eu,@my-mail.ch,@myadult.info,@mycleaninbox.net,@mymail-in.net,@mytempemail.com,@mytop-in.net,@mytrashmail.com,@mytrashmail.com,@mytrashmail.compookmail.com,@nervmich.net,@nervtmich.net,@netmails.com,@netmails.net,@netterchef.de,@netzidiot.de,@neue-dateien.de,@neverbox.com,@nm.ru,@no-spam.ws,@nobulk.com,@nomail2me.com,@nospam4.us,@nospamfor.us,@nospammail.net,@nowmymail.com,@nullbox.info,@nur-fuer-spam.de,@nurfuerspam.de,@nybella.com,@office-dateien.de,@oikrach.com,@oneoffemail.com,@oopi.org,@open.by,@orangatango.com,@partybombe.de,@partyheld.de,@phreaker.net,@pisem.net,@pleasedontsendmespam.de,@polizisten-duzer.de,@poofy.org,@pookmail.com,@pookmail.com,@pornobilder-mal-gratis.com,@portsaid.cc,@postfach.cc,@privacy.net,@prydirect.info,@pryworld.info,@public-files.de,@punkass.com,@put2.net,@quantentunnel.de,@qv7.info,@ralib.com,@raubtierbaendiger.de,@recode.me,@record.me,@recursor.net,@rejectmail.com,@rootprompt.org,@saeuferleber.de,@safe-mail.net,@safersignup.de,@sags-per-mail.de,@sandelf.de,@satka.net,@schmusemail.de,@schreib-doch-mal-wieder.de,@senseless-entertainment.com,@shared-files.de,@shieldedmail.com,@shinedyoureyes.com,@shortmail.net,@sibmail.com,@siria.cc,@skeefmail.net,@slaskpost.se,@slopsbox.com,@slopsbox.com,@sms.at,@sneakemail.com,@sofort-mail.de,@sofortmail.de,@sogetthis.com,@sogetthis.com,@sonnenkinder.org,@soodonims.com,@spam.la,@spam.la,@spamavert.com,@spambob.com,@spambob.net,@spambob.org,@spambog.com,@spambog.de,@spambog.ru,@spambox.us,@spambox.us,@spamcannon.com,@spamcannon.net,@spamcon.org,@spamcorptastic.com,@spamcowboy.com,@spamcowboy.net,@spamcowboy.org,@spamday.com,@spameater.com,@spameater.org,@spamex.com,@spamfree24.com,@spamfree24.de,@spamfree24.eu,@spamfree24.info,@spamfree24.net,@spamfree24.org,@spamfree24.org,@spamgourmet.com,@spamgourmet.com,@spamgourmet.net,@spamgourmet.org,@spamgrube.net,@spamherelots.com,@spamhole.com,@spamhole.com,@spamify.com,@spaminator.de,@spaml.com,@spammote.com,@spammotel.com,@spammotel.com,@spammuffel.de,@spamoff.de,@spamreturn.com,@spamspot.com,@spamspot.com,@spamtrail.com,@sperke.net,@sriaus.com,@streber24.de,@super-auswahl.de,@sweetville.net,@tagesmail.eu,@teewars.org,@temp-mail.com,@temp-mail.org,@tempe-mail.com,@tempemail.biz,@tempemail.net,@tempemail.net,@tempinbox.com,@tempomail.fr,@tempomail.fr,@temporarily.de,@temporaryforwarding.com,@temporaryinbox.com,@temporaryinbox.com,@terminverpennt.de,@test.com,@test.de,@thepryam.info,@thisisnotmyrealemail.com,@topmail-files.de,@tortenboxer.de,@totalmail.de,@trash-mail.com,@trash-mail.de,@trashbox.eu,@trashdevil.com,@trashdevil.de,@trashmail.com,@trashmail.de,@trashmail.net,@trashmail.net,@trashmail.org,@trashymail.com,@trashymail.net,@trimix.cn,@turboprinz.de,@turboprinzessin.de,@tut.by,@twinmail.de,@ua.fm,@uk2.net,@ukr.net,@unterderbruecke.de,@verlass-mich-nicht.de,@vinbazar.com,@vollbio.de,@volloeko.de,@vorsicht-bissig.de,@vorsicht-scharf.de,@walala.org,@war-im-urlaub.de,@wbb3.de,@webmail4u.eu,@wegwerfadresse.de,@wegwerfemail.com,@wegwerfemail.de,@weibsvolk.de,@weibsvolk.org,@weinenvorglueck.de,@wh4f.org,@whopy.com,@will-hier-weg.de,@willhackforfood.biz,@wir-haben-nachwuchs.de,@wir-sind-cool.org,@wirsindcool.de,@wolke7.net,@women-at-work.org,@wormseo.cn,@wp.pl,@wronghead.com,@wuzup.net,@xents.com,@xmail.com,@xmaily.com,@xoxy.net,@xsecurity.org,@yandex.ru,@yesey.net,@yopmail.com,@yopmail.com,@yopmail.fr,@yopmail.net,@yopweb.com,@youmailr.com,@ystea.org,@yzbid.com,@zoemail.com,@zoemail.net,@zweb.in
Hello,
I've been using this great mod for more than a year, very happy of its usefullness. I use it to restrict my forum to only one email domain, since the forum is for members of my company only, so I just specified "@domain.com" in authorized providers textbox.
Recently my company has created a new type of email adress : "@external.domain.com". So I added it in the textbox, as mentionned in the example text, : "@domain.com,@external.domain.com". But since any email adress can be used to register an account :(
Has anyone encountered the same problem ? Or could give me a lead to a solution ? I'm using SMF 1.1.16
TIA
Hmm it sounds weird,maybe you can pm me those 2 addresses,so i can have a look on local site
Hi,
I just sent you a PM, thank's for your time :)
I am also on 1.1.16 and am getting all kinds of @yahoo.com.uk registrations and I've had that in my restricted list for a long time. Anyone know what's going on with this?
Thanks for the Mod. It seems to work most of the time.
I have set it to only allow registration from one domain. When I test it there are no problems. I have had a couple of members sneek through trying to register with yahoo and hotmail accounts. Is there something else I need to to to prevent them registering? The way I read the config you either have domains allowed or domains not allowed not both. Is that correct?
Quote from: Valkrider on October 08, 2012, 07:54:32 AM
Thanks for the Mod. It seems to work most of the time.
I have set it to only allow registration from one domain. When I test it there are no problems. I have had a couple of members sneek through trying to register with yahoo and hotmail accounts. Is there something else I need to to to prevent them registering? The way I read the config you either have domains allowed or domains not allowed not both. Is that correct?
Logically to make it both is not possible,don't you think ?
and regarding other problems,which have been said by other members in this thread, i will have a look when i have some spare time
Hi Kermit,
I just installed this mod and reduced the number of fake registrations noticeably.
But I found a small glitch in the code.
In some cases $_POST['email'] is not set which results in an entry in the error log for the preg_match line.
A check would be useful.
Subs-Members.php
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);
}
}
My fix:
// Lets restrict some email providers
if ((!empty($modSettings['restricted_provider'])) && isset($_POST['email']))
{
Thanks for your work!
It seems that there is no interest in fixes for this mod.
The owner is active but does not respond.
OK for me. Will stop posting then.
I have installed this mod with the latest version of SMF, but it appears to not be working. I use a whitelist only, and whenever I try to register an account with an e-mail address from the whitelist, I get the error message.
How can I fix this? This feature is essential to my forum.
Hi Kermit,
sorry for bumping the old thread but I've got an error with the mod.
forum/index.php?action=register2
2: preg_match(): Compilation failed: nothing to repeat at offset 0
File: /home/hzinfo/public_html/forum/Sources/Subs-Members.php
Line: 536
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);
}
}
Have you had anything like this in the past? Any ideas of what route to take to rectify it? It only occurs when a user successfully signs up, i.e uses an address that's not on the restriction list.
Thanks.
azasmith, try the preg_match link without the plus sign. I don't know regex that well, but from what little I know I don't "think" that is necessary and am wondering if that is the problem. Let me know if that fixes it.
This mod should be updated to use some hooks. This mod could probably be done without any file edits.
Or not.
The error is quite clear about what the problem is, actually. + means 1 or more of the preceding, except there's nothing preceding it because $provider is empty, because $restricted_provider doesn't seem to be declared - $modSettings['restricted_provider'] is checked but not $restricted_provider, and I'm not exactly sure that $restricted_provider is the bare $modSettings['restricted_provider'] entry. Gut instinct tells me that $restricted_provider should have been declared before the foreach as explode(',', $modSettings['restricted_provider'])
But the + should be there.
Does the + mean one or more in this case?
Well, that was the mod author's intention, to match one or more times.
Now that I think about it, there is potentially a bigger problem which the + may be to workaround; in regex, the period character (as in domain.com) is a special character. Unless there's a preg_quote involved to negate that, the + is probably there to work around the way the . will be handled.
Yeah I couldn't see why a + was needed. Good catch on the period being an issue. If it were me, I'd probably avoid doing preg_match and just use strstr() to find the string from the @ sign. Maybe I'll whip this mod up doing that with some hooks. :)
Yeah, strstr could work and it would be cleaner because it would be able to match the entire domain name as opposed to potentially matching subdomains inappropriately - for example a match against @domain.co would block @domain.com, @domain.co.uk etc.
This may or may not be desirable behaviour depending on your outlook on it.
Any help would be exceptionally helpful.
Blocking subdomains would be really useful as lots of the ones I've blocked come in .net,.com varieties which I may have missed.
Only thing I can think of is to check your restricted domains. Make sure there are no spaces or any other unneeded characters in it. That could possibly mess it up I suppose. It seems to think that you don't have any providers when it errors.
Quote from: IchBin™ on December 05, 2013, 05:03:01 PM
It seems to think that you don't have any providers when it errors.
This is the correct behaviour, it only errors when an email address is used that's not in the blacklist.
For example:
User signs up using domain on blacklist - Blocked registration, no error.
User signs up using domain not listed - Allowed to sign up, error filed.
I'm thinking that it's taking the domains and checking it against the blacklist, not finding it listed, then checking it against the whitelist too, which is empty, thus the error. I'm not seeing much chance of the mod author seeing this thread, as they've not posted in over a year, but it's a fantastic mod.
Maybe I can explain a little better... It seems to me that the error you are getting is indicating that it doesn't think you have any email domains in the restricted provider part. When preg_match() tries to see if you have $provider in the $_POST['email'] it pukes on "offset 0" which is $provider. So something is happening with your restricted domains that you've entered. Either it is getting set to an empty array, or it is something is not set right in the array.
I'll see if I can't give this a test here and figure it out. Would be helpful if you double checked the domains you have put in the restricted domains input box. Just to make sure you don't have something strange in that input that could cause any problems.
ETA:
I just noticed in the mod it says you should leave one empty. Are you using both accepted and restricted? The mod indicates you should only use one, but I'm not sure if that would cause problems at this point.
Hi Ichbin, I missed your reply. I've been through the list of email addresses, noticed one or two were missing @ symbols. (It was a prepopulated list that someone else had used, I've been through and set them all into the right format.
@domain.com,@domain.com,
I've reuploaded this list and tested registrations again, still getting the error when I use an address not in the blacklist. I checked for any spaces, didn't catch any. Even tried find on ', @' etc.
I've only got emails in the blacklist. The whitelist is empty. As it's supposed to be.
Except the comma on the end makes an empty entry.
When the explode() operation runs, it will create THREE items, the first @domain.com entry, the second @domain.com entry, and a third blank entry.
Take off the trailing , in that.
Hi Arantor, Sorry, the last entry in the field doesn't have the trailing comma, probably should've included that. :)
Quote from: Sincere on November 14, 2008, 03:49:03 PM
Quote from: jossanaijr on November 14, 2008, 09:25:20 AM
Is there a known list of these E-Mail providers?
I prepared a list of the most common 300 providers of disposable email addresses. It is here in the Charter-only section.
http://www.simplemachines.org/community/index.php?topic=274412.msg1798516#msg1798516
Please do not leak it.
Amazing mod kermit, thanks very useful to reduce spam registrations which was frustrating for years.
Anyone could open this link for us, which will be very useful.
No, he actually specifically says about NOT leaking it.
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.
I just downloaded this mod, but received these errors. Can anyone help? Using smf 2.0.9
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.
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. :(
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.
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?
FYI, in case anyone's interested.
There's a couple of missing closure tags <i> without </i> (affects the Admin panel)
<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>
<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
$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>';
$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>';
Does all this work with the 2.0.11 version?
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.
It "works" just fine on 2.0.11
What do I need to do to install this mod for the first time on 2.0.12?
http://wiki.simplemachines.org/smf/SMF2.0:Package_manager#Installing_a_Package
Thanks for the confirmations. i'll try with hope of no problem signaled in the files.
Regards.
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');
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);
}
}
}
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.
This mod is really an option that could be implemented in smf....i hope that the mod will be updated by someone...
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 ????
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.
https://wiki.simplemachines.org/smf/Error_in_mod_installation
Hi all,
like GravuTrad said, it would be really great to have this mod as a native feature of SMF, or at least updated to be functionnal in latest version of SMF. It's incredibly usefull for professional-use forums.
I do agree too, this should become native feature of SMF.
Gmail and Hotmail these are now first class disposable email accounts.
Even spam bots using them to register as members.
Any new owner of disposable Android electronics device, he gets Gmail account right away.
I do consider this mod as Security level one and a missing SMF feature.
And no, SMF version emulation this is not smart idea for installation of older mods.
95% of SMF administrators we are not software programmers.
Quote from: Kiriakos GR on May 06, 2018, 05:53:06 PM
Gmail and Hotmail these are now first class disposable email accounts.
How? You do know that Gmail and Hotmail now both have an SMS verification system, right? It won't let you register unless you type in the code supplied via SMS. Sure, there are lots of sites that supply free phone numbers that can receive SMS, but who would go through that much trouble just to register on a forum to write spam ::).
In fact, since they've implemented the phone verification system, Gmail and Hotmail are one of the more trusted services. Hotmail just carries it's bad name from years of abuse.
Now, here are typical examples of "disposable" mail servers: mail.ru, yandex.com, mail.com...
[email protected] is a gmail spambot, so no these big mailboxes enterprises are not secure to spam.
nothing is secure to spam.
I was talking about spammers, not bots... bots will always find a way.
Quote from: GigaWatt on May 06, 2018, 08:29:39 PM
Quote from: Kiriakos GR on May 06, 2018, 05:53:06 PM
Gmail and Hotmail these are now first class disposable email accounts.
How? You do know that Gmail and Hotmail now both have an SMS verification system, right? It won't let you register unless you type in the code supplied via SMS. Sure, there are lots of sites that supply free phone numbers that can receive SMS, but who would go through that much trouble just to register on a forum to write spam ::).
In fact, since they've implemented the phone verification system, Gmail and Hotmail are one of the more trusted services. Hotmail just carries it's bad name from years of abuse.
Now, here are typical examples of "disposable" mail servers: mail.ru, yandex.com, mail.com...
You've totally misunderstood the issue.
It is NOT because spammers are registering using hotmail etc. to sign up to SMF based forums. It is because their totally pathetic Smart Filter every so often decides to bounce back notification and registration emails for absolutely no valid reason* and the site admin then has to expend hours convincing Micro$oft to remove the block only for a few months later the same thing to happen again. This has been going on for two or three years and forum admins around the world have had enough - due to the aggravation caused they just want to say sorry to people attempting to register using M$ emails, please use a different reliable mail provider.
* There is a suspicion that deletion of SMF notification emails without being opened is perhaps why emails from SMF forums are being considered "spammy" and that is why the mail servers for SMF forums are being blocked.
I totaly agree.. microsoft mailservers blocking other mailservers like hell..
this is not a smf thing, microsoft blocks complete IP ranges.
This means: if any other Server at my hoster is blocked by microsoft for spamming, my server is blocked, too
every few month i have trouble in getting my server unblocked. and now is the time i don't want to discuss anymore with microsoft. i want to block all mail-related microsoft servers. users with accounts of them have to choose another one.. it's not the fault of us admins. its the fault of microsoft. and it's not my part to work on this over and over again.
I just changed the original mod to work with smf 2.0.15 (was very easy)
the lost </i> tags mentioned here (https://www.simplemachines.org/community/index.php?topic=274317.msg3877528#msg3877528) by Sh@mbles, are also now added.
i also tried to add this nice idea.. but it does not work:
Quote from: GL700Wing on March 11, 2017, 05:59:01 AM
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);
}
}
}
any idea how to realise the idea of not allowing users to modify their emailadress to a restricted one?
you can find the modded mod (incl. the not working part for profile-modifications) as attachment
-- edit by moderator - the mod license does not allow modification and redistribution of the mod package. Attachment removed. --
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
global $modSettings, $txt;
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);
}
}
}
Updated 13-Sep-18 - added "global $modSettings, $txt;"
hey GL700Wing, thx a lot!
but, there is still something faulty =)
in my test, there is a user with a restricted mail in his account and he tries to change the mailadress to a non restricted one.. and gets the blocking message.
edit:
tested far more now.. the blocking message apears always.. doesn't matter if original mailadress is restricted or not. same on target mailadress. so, it's like blocking mailchange for everyone and every mailadress
Quote from: demlak on September 13, 2018, 04:12:54 AM
hey GL700Wing, thx a lot!
but, there is still something faulty =)
in my test, there is a user with a restricted mail in his account and he tries to change the mailadress to a non restricted one.. and gets the blocking message.
edit:
tested far more now.. the blocking message apears always.. doesn't matter if original mailadress is restricted or not. same on target mailadress. so, it's like blocking mailchange for everyone and every mailadress
I have tested this on an SMF 2.0.15 forum with no other mods installed and it is working as expected.
When testing make sure you refresh the page before trying to change the email address again (when the page is refreshed you will see the email address currently stored in the database for the user) - if you don't refresh the page you may encounter errors.
i always test such things in a new private window of browser.. fresh logging in user.. so there are no caching-problems.
in my environment, it has the described problem: whenever a user wants to change the mailadress, there comes the blocking-message. doesn't matter if this is a blocked mailadress or not. this also happens to administrators.
if your code is correct, then it must be because of another mod. i'll investigate this. also will try a fresh smf install. thx a lot
EDIT:
found the problem.. there was a typo in my filterlist.. shame on me =)
thx again for your work!
Quote from: demlak on September 13, 2018, 06:26:39 AM
i always test such things in a new private window of browser.. fresh logging in user.. so there are no caching-problems.
in my environment, it has the described problem: whenever a user wants to change the mailadress, there comes the blocking-message. doesn't matter if this is a blocked mailadress or not. this also happens to administrators.
if your code is correct, then it must be because of another mod. i'll investigate this. also will try a fresh smf install. thx a lot
What values do you have entered in each of the three fields (in Modifications Settings -> Miscellaneous) this mod?
as my edit states, it was my fault.. i had a typo in the filterlist =)
Quote from: demlak on September 13, 2018, 07:05:05 AM
as my edit states, it was my fault.. i had a typo in the filterlist =)
Apologies - I hadn't noticed your edit when I replied. Glad you got it sorted.
btw.. if anyone is interested in the filterlist for microsoft servers, this is the one i use:
@hotmail.com,@hotmail.co,@hotmail.co.uk,@hotmail.de,@hotmail.eu,@hotmail.net,@hotmail.org,@live.com,@live.co,@live.co.uk,@live.de,@live.eu,@live.net,@live.org,@msn.com,@msn.co,@msn.co.uk,@msn.de,@msn.eu,@msn.net,@msn.org,@outlook.com,@outlook.co,@outlook.co.uk,@outlook.de,@outlook.eu,@outlook.net,@outlook.org,@passport.com,@passport.net
since admins deleted the updated modification i attached to a post above, i just tell you how to get the mod working with actual SMF 2.0.15:
1. download and unpack the zip
2. open install2.xml
3. delete everything after
<id>Duncan85:Restrict_Email_Providers_on_Registration</id>
and place in:
<version>1.2a</version>
<file name="$sourcedir/Subs-Members.php">
<operation>
<search position="replace"><![CDATA[ // !!! Separate the sprintf?
if (empty($regOptions['email'])]]></search>
<add><![CDATA[ // 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'])]]></add>
</operation>
</file>
<file name="$sourcedir/Profile-Modify.php">
<operation>
<search position="replace"><![CDATA[ return 'bad_email';]]></search>
<add><![CDATA[ return 'bad_email';
// Lets restrict some email providers
global $modSettings, $txt;
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);
}
}
}]]></add>
</operation>
</file>
<file name="$sourcedir/ManageSettings.php">
<operation>
<search position="before"><![CDATA[ // Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
]]></search>
<add><![CDATA[
array('check', 'enable_restrict_EmailProvider',
&$txt['enable_restrict_EmailProvider']),
array('text', 'restricted_provider', '35',
&$txt['restricted_provider']),
array('text', 'accepted_provider', '35',
&$txt['accepted_provider']),
]]></add>
</operation>
</file>
<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';
$txt['restricted_provider'] = 'Which providers should<br />be restricted? (Blacklist)<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"><br />Note that either restricted provider or accepted provider list should be empty.</i></b></font>';
$txt['accepted_provider'] = 'Which providers should<br />be accepted? (Whitelist)<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"><br />Note that either restricted provider or accepted provider list should be empty.</i></b></font>';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<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';
$txt['restricted_provider'] = 'Which providers should<br />be restricted? (Blacklist)<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"><br />Note that either restricted provider or accepted provider list should be empty.</i></b></font>';
$txt['accepted_provider'] = 'Which providers should<br />be accepted? (Whitelist)<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"><br />Note that either restricted provider or accepted provider list should be empty.</i></b></font>';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.german_informal.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['restricted'] = 'Es tut uns leid, E-Mail-Adressen von diesem Anbieter können nicht genutzt werden. Nutzer berichteten uns, dass sie E-Mails nicht erhalten haben, wenn sie diesen Anbieter nutzten. Bitte benutze eine alternative E-Mail-Adresse. Es tut uns leid, dass dein E-Mail-Anbieter solche Probleme bereitet.';
$txt['enable_restrict_EmailProvider'] = 'Aktiviere die Sperre für E-Mail-Anbieter';
$txt['restricted_provider'] = 'Welche E-Mail Anbieter sollen<br />gesperrt werden? (Blacklist)<br /><i>(z.B. für <b><font color="red">hotmail und gmail</font></b> solltest du schreiben: @hotmail.com,@gmail.com)</i><font color="red"><br />Anmerkung: Entweder Blacklist oder Whitelist sollte leer sein.</i></b></font>';
$txt['accepted_provider'] = 'Welche E-Mail Anbieter sollen<br />akzeptiert werden? (Whitelist)<br /><i>(z.B. für <b><font color="red">hotmail und gmail</font></b> solltest du schreiben: @hotmail.com,@gmail.com)</i><font color="red"><br />Anmerkung: Entweder Blacklist oder Whitelist sollte leer sein.</i></b></font>';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.german_informal-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['restricted'] = 'Es tut uns leid, E-Mail-Adressen von diesem Anbieter können nicht genutzt werden. Nutzer berichteten uns, dass sie E-Mails nicht erhalten haben, wenn sie diesen Anbieter nutzten. Bitte benutze eine alternative E-Mail-Adresse. Es tut uns leid, dass dein E-Mail-Anbieter solche Probleme bereitet.';
$txt['enable_restrict_EmailProvider'] = 'Aktiviere die Sperre für E-Mail-Anbieter';
$txt['restricted_provider'] = 'Welche E-Mail Anbieter sollen<br />gesperrt werden? (Blacklist)<br /><i>(z.B. für <b><font color="red">hotmail und gmail</font></b> solltest du schreiben: @hotmail.com,@gmail.com)</i><font color="red"><br />Anmerkung: Entweder Blacklist oder Whitelist sollte leer sein.</i></b></font>';
$txt['accepted_provider'] = 'Welche E-Mail Anbieter sollen<br />akzeptiert werden? (Whitelist)<br /><i>(z.B. für <b><font color="red">hotmail und gmail</font></b> solltest du schreiben: @hotmail.com,@gmail.com)</i><font color="red"><br />Anmerkung: Entweder Blacklist oder Whitelist sollte leer sein.</i></b></font>';
]]></add>
</operation>
</file>
</modification>
Save the file, zip all files and install mod by using this new zip file.
this includes all mentioned fixes in this thread and also a german translation for "german informal"
notice: the version number and title (it's not for registration only, anymore) of the mod is not changed. if you want to do so, edit package-info.xml, too.
p.s. i hope, this is not a license problem anymore =) btw.. which license? did not find any.
Didn't actually try the mod stand-alone, because of its age. Tried demlak's modification tho, and ran into multiple issues.
In summary it partially worked, but much felt poorly done from the start.
Good news tho, I spent up all morning rewriting and testing.
And Blacklist/Whitelist on both registration and profile modify works successfully!
There is one very minor flaw, when you register with the email e.g.
@gmail.com without anything before the '@'
it can trigger the Blacklist/Whitelist message to show the user (instead of the INVALID email message). So when you enter an e-mail like that, and the code doesn't halt right away (with some function) but instead evaluates the Blacklist/Whitelist code it will successfully be triggered. For the non technical this is very minor. If someone technical wants to have more info, it has to do with the if-clause with the strpos function.
If you want to install this on your own, I will provide the instructions for manual installation when it is not already installed.
The code for the
Profile-Modify.php, and
Subs-Members.php is almost identical except for 1 variable. The email variable, but for simplicity and agony of not messing something up I included both.
https://gist.github.com/dalslandan200/1efe7fe82a3b9d9e8c8d87a339a7dfe0
Find following code in
Profile-Modify.php and add code from gist below.
Quoteif (preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $email) == 0)
return 'bad_email';
Find following code in
Subs-Member.php and add code from gist below.
Quote// !!! Separate the sprintf?
if (empty($regOptions['email']) || filter_var($regOptions['email'], FILTER_VALIDATE_EMAIL) === false || strlen($regOptions['email']) > 255)
$reg_errors[] = array('lang', 'profile_error_bad_email');
Find following code in
ManageSettings.phpQuote// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
Add this code below:
Quotearray('check', 'enable_restrict_EmailProvider',
&$txt['enable_restrict_EmailProvider']),
array('text', 'restricted_provider', '35',
&$txt['restricted_provider']),
array('text', 'accepted_provider', '35',
&$txt['accepted_provider']),
And for a final touch, I fixed the text for something more appropriate.
In
Modifications.english.php add the following to the bottom, before the closing bracket.
Quote$txt['restricted'] = 'Sorry, E-mail accounts from that provider cannot be used.';
$txt['enable_restrict_EmailProvider'] = 'Enable restriction of E-Mail providers';
$txt['restricted_provider'] = 'Blacklisted email providers<br /><i> (comma separate each entry, e.g. @hotmail.com,@gmail.com)</i>';
$txt['accepted_provider'] = 'Whitelisted email providers<br /><i> (comma separate each entry, e.g. @hotmail.com,@gmail.com)</i>';
Technically what has changed from the mod is the code parts for registration, and profile modify.
If you e.g. have something Blacklisted, but also Whitelisted; Anything Blacklisted isn't relevant, since you are using Whitelisting instead. Makes sense right?
Anyhow, you are free to set-up your config how you want. But obviously Blacklisting something, when you already are Whitelisting is useless since everything else is already blacklisted.
You are welcome, and I hope this helps someone. This code was tested using SMF 2.0.15*
This is an update to my previous post, if you haven't read it. I'm quite afraid you have to, to understand this part.
- In my earlier post I talked about an flaw in my code, when using an empty e-mail address like this @gmail.com
- Another issue I came across was with the Whitelisting. If I for instance have whitelisted @gmail.com
[email protected] would still be allowed. A serious flaw, if someone where to create a sub-domain email like that and by-pass the whitelist.
- Another issue I encountered was the obtuseness of having Blacklisting, since everything could be handled much nicer with only whitelisting instead.
So, all issues have been fixed. #1 and #2 have been updated to the previous github Gist posted by me.
#1, #2, and #3 fixes have been added to this new Gist, why? Because Blacklisting is removed. My recommendation would be to only use whitelisting (because of simplicity).
https://gist.github.com/dalslandan200/192cddeeaf7cdb20661855be7fb00460
Whether you are using this new gist, or the one in the earlier post. I still emphasize that full security have been focused on the whitelisting part.
Code have been extensively tested on, PHP 5.5, 5.6, and 7.X for compatibility. It doesn't really matter which you use, but this gist is more neat and tidy.
All installation steps are the same as in the previous post, same files, same place. Only new code for parts in
Subs-Members.php and
Profile-Modify.phpIf you have the ORIGINAL mod installed, via the mod installer or have done it manually earlier. This update works fine. Just don't forget to check that e-mail integrity exists before evaluating the new code block in
Subs-Members.php. If you don't have this code (code part was replaced by mod installer), it is this part you are probably missing:
// !!! Separate the sprintf?
if (empty($regOptions['email']) || filter_var($regOptions['email'], FILTER_VALIDATE_EMAIL) === false || strlen($regOptions['email']) > 255)
$reg_errors[] = array('lang', 'profile_error_bad_email');
Additional recommended things to do is remove the Blacklisting part from the Admin area. Find and remove/comment out this in
ManageSettings.phpQuotearray('text', 'restricted_provider', '35',
&$txt['restricted_provider']),
Even more additional things would be to remove the text string
restricted_provider from
Modifications.english.php, but that is very minor and not necessary at all.
EXTRA information (not relevant to read, unless you want to):Some of the problems I encountered with the Blacklisting part was the fact that, how wide should it be?
Currently if I would blacklist
@icloud.com using my earlier Gist, which have blacklisting still enabled the results would be:
E-Mail:
[email protected] (blocked)
E-Mail:
[email protected] (blocked) - Should this be blocked or allowed?
E-Mail:
[email protected] (allowed) - I guess this one should be blocked, since it is a sub-domain of
@icloud.comIf I update the old gist with new Blacklisting features, it would probably be so that the results would instead be:
E-Mail:
[email protected] (blocked) - Since this is the domain itself
E-Mail:
[email protected] (blocked) - Since this is the sub-domain
E-Mail:
[email protected] (allowed) - Since this domain is not related
Please read the comment section in the old gist, where I will update if I make any such changes.
In all simplicity, I'm still favoring whitelisting because of the overall simplicity. "Feel like an e-mail domain is bother you, well remove it from the whitelist." - Simple.
QuoteI'm still favoring whitelisting
I should think just whitelisting would be totally impractical for most forum owners. I've been wanting to install this mod since Jan 2018 (https://www.simplemachines.org/community/index.php?topic=274317.msg3955962#msg3955962), but ran into similar problems as others at that time.
I couldn't even begin to list the domain names in the email address as the vast majority of our users have ISP based mail. The list would run into the hundreds of allowable email addresses for our UK users and I'm still bound to have forgotten to add some other valid email domains for other countries. All I wanted to do is ban the MS based mail which is proving problematic due to the problems outlined in Jelv's post (https://www.simplemachines.org/community/index.php?topic=274317.msg3976016#msg3976016) due to Microsoft servers blocking many SMF forum mail.
I agree with some of the others that ideally this filter should actually be part of the main SMF software. Some other forum software already has this feature.
It's a damn shame that there is no updated package for this mod that works with SMF 2.0.18 :(
i adapted this mod for 2.0.18 last update today, greetings my friends 8)
Edit: Removed attachment due to unclear licensing of the original. -Lex
Quote from: ZabiinoOo on May 29, 2021, 01:41:29 AM
i adapted this mod for 2.0.18 last update today, greetings my friends 8)
Edit: Removed attachment due to unclear licensing of the original. -Lex
Thank you for the well meaning effort, but because the original does not include a clearly permissive license, and the package has not gone through the usual mod review procedure, I had to remove your updated package.
Quote from: Aleksi "Lex" Kilpinen on May 29, 2021, 04:57:36 AMQuote from: ZabiinoOo on May 29, 2021, 01:41:29 AMi adapted this mod for 2.0.18 last update today, greetings my friends 8)
Edit: Removed attachment due to unclear licensing of the original. -Lex
Thank you for the well meaning effort, but because the original does not include a clearly permissive license, and the package has not gone through the usual mod review procedure, I had to remove your updated package.
i not modify license, only adapte for my forum and publish for alls, but ok not have problem with delete
It would be great if this MOD would be available for the 2.1.x. :)
It would also be good for version 2.0.19, which is the one I use.
greetings
Any mod for 2.0.x should work on any other 2.0.x version
Quote from: Kindred on January 06, 2024, 03:20:17 PMAny mod for 2.0.x should work on any other 2.0.x version
According to this thread, you have to adapt it for it to work, and for that you have to know how to do it.
greetings
Yeah, lets say many mods that work for 2.0.x may also work on any other 2.0.x version. But it comes down to what the mods actually do, and what files they may edit.
Quote from: Aleksi "Lex" Kilpinen on January 07, 2024, 06:28:29 AMYeah, lets say many mods that work for 2.0.x may also work on any other 2.0.x version. But it comes down to what the mods actually do, and what files they may edit.
What is a shame, that we do not have that mod updated or that someone tells us that it must be modified to be able to use it
greetings
Who may be interested in this mod Block e-mail usernames does more or less the same thing and is compatible with 2.0.19
greetings