Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: NanoSector on June 05, 2011, 04:40:28 PM

Title: Block e-mail usernames
Post by: NanoSector on June 05, 2011, 04:40:28 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3036)

Block e-mail usernames
If you need to report a bug, please do so on GitHub! (https://github.com/Yoshi2889/BlockEmailUsernames)

Settings found in:
Admin > Configuration > Modification Settings > Block e-mail usernames

How to install:
The Package Manager should work in most cases.

Languages:
- English
- English UTF8
- Dutch
- Dutch UTF8

Translations are welcome!

Features:
- Works in all themes, only modifies Source files.
- Blocks e-mail addresses from usernames when registering
- Still allows people to have @'s and .'s in their usernames when registering

Looking to do:
- Make more use of integration hooks.

Changelog:
v0.4.2:
! Fix a bug (thanks ZarPrime!)

v0.4.1:
! Code cleanup
! Bug fixes
! Admin panel is more clear now
! Fixed Dutch typo

v0.4:
+ Added hooks!
! Fixed bug which directly used $_POST instead of the appropriate value.

v0.3:
+ Added "Only allow these providers:" option in Admin panel
! Fixed a bug which probably occurred when entering the admin panel for the mod (thanks Brack1!)
! Changed package_info.XML to provide compatibility from 2.0 to 2.99.99 (thanks Reaper.CSF.!)

v0.2.1:
! Fixed Dutch-UTF8 typo.

v0.2:
+ Added Admin panel integration
+ Ability to check e-mail addresses for blocked providers added.
+ Ability to only block certain providers added.
+ Added master switch (so you don't need to uninstall the mod to disable it)
(you can upgrade from 0.1 so you don't have to uninstall first)

v0.1:
- Initial release

License:
This mod is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license. (http://creativecommons.org/licenses/by-sa/3.0/)
Title: Re: Block e-mail usernames
Post by: TheListener on June 21, 2011, 03:32:26 PM
Looking good kiddo.

;D

Installs on 2.0 with no errors.
Title: Re: Block e-mail usernames
Post by: NanoSector on June 21, 2011, 03:47:44 PM
Thanks ;D

Marking this as 2.0 compatible then :)
Title: Re: Block e-mail usernames
Post by: TheListener on June 21, 2011, 03:52:39 PM
Are there no Admin settings ie tickbox?
Title: Re: Block e-mail usernames
Post by: NanoSector on June 21, 2011, 04:06:35 PM
Quote from: Brack1 on June 21, 2011, 03:52:39 PM
Are there no Admin settings ie tickbox?
Not yet, but I'm testing a build which does :)

It will be able to be enabled or disabled, and to be set to only block certain providers instead of all of them.
Title: Re: Block e-mail usernames
Post by: cicka on June 21, 2011, 04:52:31 PM
A nice mod. Good work Yoshi2889 :)
Title: Re: Block e-mail usernames
Post by: NanoSector on June 22, 2011, 01:47:49 AM
Quote from: cicka on June 21, 2011, 04:52:31 PM
A nice mod. Good work Yoshi2889 :)
Thanks :)
Title: Re: Block e-mail usernames
Post by: NanoSector on June 22, 2011, 08:50:29 AM
Almost done testing and fixing the last bugs -- Expect a new release today!
Title: Re: Block e-mail usernames
Post by: NanoSector on June 22, 2011, 10:07:09 AM
Version 0.2 is ready!

- Added Admin panel integration
- Ability to check e-mail addresses for blocked providers added.
- Ability to only block certain providers added.
- Added master switch (so you don't need to uninstall the mod to disable it)
(you can upgrade from 1.0 so you don't have to uninstall first)

I'm going to upload it & update the mod page :)
EDIT: Uploaded. You can perform an upgrade (That means, install it over your current installation).
Title: Re: Block e-mail usernames
Post by: NanoSector on June 22, 2011, 10:21:39 AM
Heh, sorry, 0.2.1 released.

Only fixes a language bug in the Dutch UTF-8 language pack, though.
(if the fix cannot be applied due to an error, you can deinstall the old package and install the new one (0.2.1) which already has the fix included in it's installation files)

Again, you can upgrade.
(and now I stop double-posting here and get some work done :P)
Title: Re: Block e-mail usernames
Post by: TheListener on September 16, 2011, 07:14:12 PM
Yoshi

I seem to see this error when a new member registers.

http://xxxxxxxxxxxxxxxxx/index.php?action=admin;area=modsettings;sa=blockemail;bfd27ec=aac8bb1435ce9575c17e4244cb017edf
Apply Filter: Only show the errors with the same message
8: Undefined variable: return_config
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/Sources/ManageSettings.php
Line: 2371

2370:
if ($return_config)
==>2371:
return $config_vars;

I don't have any email providers listed however so would that be what causes the error?

I don't want to block anyone using the forum only by using their emails like [email protected]
Title: Re: Block e-mail usernames
Post by: NanoSector on September 22, 2011, 01:32:40 AM
Sorry for my late reply. I was pretty busy last month.

I will fix that today, I'm sorry for any more errors popping up. You can just ignore them.

Thanks for reporting :)
Title: Re: Block e-mail usernames
Post by: Doburpally on September 22, 2011, 05:16:15 AM
Quote from: Brack1 on September 16, 2011, 07:14:12 PM
Yoshi

I seem to see this error when a new member registers.

http://xxxxxxxxxxxxxxxxx/index.php?action=admin;area=modsettings;sa=blockemail;bfd27ec=aac8bb1435ce9575c17e4244cb017edf
Apply Filter: Only show the errors with the same message
8: Undefined variable: return_config
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/Sources/ManageSettings.php
Line: 2371

2370:
if ($return_config)
==>2371:
return $config_vars;

I don't have any email providers listed however so would that be what causes the error?

I don't want to block anyone using the forum only by using their emails like [email protected]

That's odd ???
I have had to edit the package-info.xml to change the forum version from 2.0 to 2.0 - 2.99.99
Installed the package and it installed 100% and it works 100% added @hotmail.com and gmail.com etc to the lists and yeah it works like a treat :)
Title: Re: Block e-mail usernames
Post by: NanoSector on January 01, 2013, 02:30:57 PM
Post #1
Great that it works for you :D

I'm going to release 0.3 today.

Changelog:
+ Added "Only allow these providers:" option in Admin panel
! Fixed a bug which probably occurred when entering the admin panel for the mod (thanks Brack1!)
! Changed package_info.XML to provide compatibility from 2.0 to 2.99.99 (thanks Reaper.CSF.!)

Post #2
Uploading 0.3 atm :)

Post #3
Uploaded version 0.3.1 which fixes a few bugs and has it's 2.0.2 compatibility checked.

(please check the page for more info, I will not update the first post anymore)

Post #4
Mod works with 2.0.3 as-is.




Updated to use hooks and to fix a crucial bug :)
Title: Re: Block e-mail usernames
Post by: NanoSector on February 01, 2013, 05:30:29 PM
Works with 2.0.4 as-is.
Title: Re: Block e-mail usernames
Post by: NanoSector on May 24, 2013, 02:49:26 PM
A lot of bugs have been fixed in a new version just released, v0.4.1!

Along with bug fixes, the admin panel has been made much more clear now with a new way to select what to block!

Release notes:
! Code cleanup
! Bug fixes
! Admin panel is more clear now
! Fixed Dutch typo

Have fun!
Title: Re: Block e-mail usernames
Post by: TheListener on May 24, 2013, 05:06:35 PM
Quote from: Yoshi on May 24, 2013, 02:49:26 PM
A lot of bugs have been fixed in a new version just released, v0.4.1!

Along with bug fixes, the admin panel has been made much more clear now with a new way to select what to block!

Release notes:
! Code cleanup
! Bug fixes
! Admin panel is more clear now
! Fixed Dutch typo

Have fun!

No need for the fly spray then Yosh?

:D
Title: Re: Block e-mail usernames
Post by: NanoSector on May 24, 2013, 05:08:40 PM
Just give it to me, I'll take care of it... ;)
Title: Re: Block e-mail usernames
Post by: ZarPrime on December 17, 2013, 11:03:48 AM
Yoshi,

We address and cleanup our error logs over at CripZone quite often but, right now, ever since we installed this Mod over the weekend, 4 of the 6 pages in our error log have the following ...


   Guest

http://www.cripzone.com/index.php?action=register2
The registration failed because: You cannot use an email address as your username.


... with various ip addresses.

I know for a fact that at least one of the people who got this error, and wasn't able to register, did not try to use their EMail Address as their username because she PM'ed me here and told me about it.

Can you tell me what the problem might be?  Currently, "Enable blocker" and "both" is the only thing we are using.  We aren't using "Block by provider" or "Allow by provider".

BTW, we are using version 0.4.1 on a 2.06 Forum.

ZarPrime
Title: Re: Block e-mail usernames
Post by: NanoSector on December 17, 2013, 11:23:15 AM
Hi ZarPrime,

Can you tell me which username she tried to register with?
Title: Re: Block e-mail usernames
Post by: ZarPrime on December 17, 2013, 11:32:45 AM
Well, I don't know yet because she hasn't responded to my PM here yet, but she is user # 380234 here.  I don't know if she was trying to register with the same username over there yet.

I can't see the IP addresses of people here but, if I knew that, I could probably give you the exact error.  Currently, I have turned off the "Enable blocker" option, which is the only one we were using.

ZP
Title: Re: Block e-mail usernames
Post by: NanoSector on December 17, 2013, 11:53:39 AM
I'll take a look at the mods logic later this week and fix it where needed, most likely tomorrow. If you can provide me with the username she tried to register with I can test the mod with that. Please poke me once you get a reply back from her :)

Thanks for reporting!
Title: Re: Block e-mail usernames
Post by: ZarPrime on December 17, 2013, 12:31:07 PM
Will do.  Thanks again Yoshi and I'll get back to you when I know what she is using for the username.
Title: Re: Block e-mail usernames
Post by: ZarPrime on December 18, 2013, 08:41:55 AM
Yoshi,

I have received a response from the user.  I would like to send you a PM with the response, because they included the username and several different EMail addresses that they used, but I don't think I can do that.  I thought that info was a little sensitive to post here in the open.

Is there a way that I can quote the PM response the user sent me to you?

ZarPrime
Title: Re: Block e-mail usernames
Post by: Burke ♞ Knight on December 18, 2013, 08:44:52 AM
I think the issue lies in the fact that her username is in her email address.
Just manually register her in admin panel.
ZP, I have her email address, if want to PM me for it, so you can register her.
Then set it to email her the password.
Title: Re: Block e-mail usernames
Post by: ZarPrime on December 18, 2013, 08:57:33 AM
BK,

I have already manually registered her just this morning.

Thank You,
ZarPrime
Title: Re: Block e-mail usernames
Post by: NanoSector on December 18, 2013, 02:21:13 PM
Hello ZarPrime,

You should be able to send me a PM with the information from now on. I haven't gotten to checking the mod yet, I guess I'll find some time this night and if not later this week.
Thanks again :)
Title: Re: Block e-mail usernames
Post by: ZarPrime on December 18, 2013, 04:27:44 PM
Thanks Yoshi,

Take your time.  PM sent. ;)

ZarPrime
Title: Re: Block e-mail usernames
Post by: NanoSector on December 20, 2013, 08:44:19 AM
Bug squashed, please update to 0.4.2 :)

Thanks again ZarPrime!
Title: Re: Block e-mail usernames
Post by: ZarPrime on December 20, 2013, 08:29:14 PM
Thanks Yoshi. 8) Will check it out over the weekend.  I had a long day today and just now got online.

ZarPrime
Title: Re: Block e-mail usernames
Post by: ZarPrime on December 24, 2013, 12:56:37 PM
Yoshi,

I have a couple of questions for you.  I'm going to send you another PM which should help me to clear my mind on how to set the Mod.

ZarPrime
Title: Re: Block e-mail usernames
Post by: FragaCampos on August 28, 2014, 12:32:50 PM
Hi there.
I was looking for a mod to restrict access to my forum with registrations from disposable e-mails and found this.
Everything installed fine, but I have a "small" problem... the list of disposable e-mail providers that I have has more than 500 lines, without semicolons ( ; ), i.e., I would have to edit the lines one by one  ::)
Is it possible to implement a different way to input the e-mails?

Thanks anyway. Nowadays, it should be mandatory to have this installed.  :P
Title: Re: Block e-mail usernames
Post by: NanoSector on August 28, 2014, 01:40:48 PM
No, sorry, it's not possible to add a whole file.

If you can PM me the file, or post it here, I can probably fix up a one-liner for you.
Title: Re: Block e-mail usernames
Post by: FragaCampos on August 28, 2014, 08:07:26 PM
Thank you for answer, NanoSector.

What about making a bigger text box in the admin page? That way we could input the text more easily.
Anyway, I'm sending you the list I've got.
Title: Re: Block e-mail usernames
Post by: NanoSector on August 29, 2014, 09:12:02 AM
I could do that, but the current code blows the string into pieces based on the ; separator. I'd need to code it to read line-by-line perhaps, which can be quite the PITA. Of course with a bit of extra code it can be done both ways.
Title: Re: Block e-mail usernames
Post by: Miker1029 on August 05, 2015, 10:08:31 AM
Came here for the same reason as the above post, having a way to put these in a file format (and maybe check for doubles) would be a great addition.....

BUT Until then if you use search/replace in notepad++ use find:/n replace:;

http://superuser.com/questions/545461/replace-carriage-return-and-line-feed-in-notepad

Will Add the file I found and edited with the ; Dunno how old it is just got the first one I found, and will be Adding to it as time goes on....

Mike
Title: Re: Block e-mail usernames
Post by: Miker1029 on August 21, 2015, 04:55:25 PM
Here is the latest I found for this (Feb 23), Converted to work with this MOD, just Copy/paste...  Maybe Not all are Disposable... From the forum I got em from there was someone who said an Asian site was not Fake, and showed Stock market info on it, I don't personally care...

Mike

Title: Re: Block e-mail usernames
Post by: FragaCampos on August 23, 2015, 06:58:35 PM
Thanks for sharing these, Miker1029.
Can you tell why there's such a difference in the number of servers listed in your two files?
Title: Re: Block e-mail usernames
Post by: Miker1029 on August 23, 2015, 09:52:05 PM
Basically two different forums and two diffrrent people.. Just the last one is newer.. I'm looking into a way to merge them and omit duplicates.. Just haven't got to it yet...
Mike
Title: Re: Block e-mail usernames
Post by: Miker1029 on August 24, 2015, 11:38:33 AM
Ok here's the merged files, I'll tell ya the More I use Notepad++ the more I like it....

Here's the link to merge and omit duplicates, I did it straight line (No Semi-Colons), Seemed to make sense, I copy both files into a blank "merged" folder and ran the command found here: http://superuser.com/questions/361116/can-i-use-notepad-to-selectivelly-merge-two-text-files

I'm uploading the straight line file and the file that's "formatted" for this mod.. I check a few I knew where dups like qq.com, and there was only one but I DID NOT check the whole file....

Enjoy

Mike
Title: Re: Block e-mail usernames
Post by: FragaCampos on August 28, 2015, 03:17:19 PM
Thank you very much, Miker1029! ;)
Title: Re: Block e-mail usernames
Post by: Miker1029 on August 28, 2015, 03:27:50 PM
Not a problem. I just went and mail listed all my users. Came up with 20 bounced s 7 qq.com, and am seeing am up in the logs of you can't use this mail provider... So its working and I'll be searching for more to add....

Mike
Title: Re: Block e-mail usernames
Post by: brynn on March 25, 2016, 07:16:34 PM
Hi and thanks for this mod!

I just installed, but there are a couple of things I don't understand.  Can it be set to block any kind of email address that's used for the username?  Or do you have to give it a list of all the email providers?

Thanks  :)
Title: Re: Block e-mail usernames
Post by: Miker1029 on March 25, 2016, 08:23:34 PM
You have to add them. I uploaded a text file in this thread to get you start.  I'll put a copy/paste of an updated one I use on my forum in the next couple days... I just add as I get bounced mails....

Mike
Title: Re: Block e-mail usernames
Post by: brynn on March 27, 2016, 07:02:53 AM
I think I might not understand the purpose for this mod.  What do you mean by "bounced mails"?

I don't want email addresses used for usernames at all.  But it seems like only certain ones that you want to block.

Thanks  :)

Edit
Isn't there a place to make a list of all the usernames that you don't want anyone to use?  You know, like you might not want someone to call theirself "moderator" or "admin" or "owner", etc.  I wonder if i just put "@" in that list, if that would block them all??
Title: Re: Block e-mail usernames
Post by: Miker1029 on March 27, 2016, 10:28:31 AM
Well, I Use it for FAKE E-Mail Accounts, But you use it to Block E-Mail Address' from providers you don't want, so say you want to block Yahoo, you add "yahoo.com" to the list and it won't allow anyone with a yahoo account to use that e-mail address to register....

And Ya, There is For user names in Admin->Registration->Set Reserved Names

Not sure, But I Believe you can set the forum to not Verify, But as for None at all, I'm Not sure, Never even thought of that....

Mike
Title: Re: Block e-mail usernames
Post by: brynn on March 28, 2016, 02:15:40 AM
Interesting....  Just out of curiosity, why do you want to block fake email addresses but not valid ones?

I want to block all email addresses, mostly for aesthetic reasons (they tend to be very long).  But also I don't want my forum to be a pawn for the world of spam.  Used to be, people avoided posting their email address publically because they didn't want to get blasted with spam.  So now when people blatantly advertise an email address, I have to think it's something to do with spam.
Title: Re: Block e-mail usernames
Post by: Miker1029 on March 28, 2016, 10:48:52 AM
I've found that "Some" people that use fakes tend to go to the dark side without a certain level of accountability...  A Site is not going to send SPAM unless your set up that way, Also There are register bots that can be a real PITA....  So Ya, No Fake E-Mails I My site, There's no Need as The site doesn't Spam...Or Use ANY Personal Info for anything but the running of the forum...

I've attached My latest Fake List, Just Copy/Paste to your MOD for those who want to use it, As i've said before, ALOT of them came from Sites that are trying to collect them, and SOME are from me that bounced and had a name like "ONETIMEMAIL.COM", If I wasn't sure I didn't block it...

Mike
Title: Re: Block e-mail usernames
Post by: Kindred on March 28, 2016, 01:07:41 PM



(and brynn, you did understand it correctly)

This mod stops a user from using the email address as the username.
It also seems to be able to prevent certain providers and lists of email addresses, like Miker's list form being used as actual email addresses.

Personally, I think that's a waste of time. I own several domains. I can create several thousand "fake" or temporary email addresses that will let me register and then get deleted.
Title: Re: Block e-mail usernames
Post by: Miker1029 on March 28, 2016, 01:14:15 PM
Ya, But I've actually had good results, and ya it's a never ending battle, But for me I went from about 60-100 Fake's a Month to (as Of this Easter I sent out an E-mail Blast for the holiday, From Christmas) I had 9......

So, I had such issues (Do to Ignorance, Which you know, lol) SPAM and BOTS that I just went the one step further.....

Mike

Title: Re: Block e-mail usernames
Post by: brynn on March 30, 2016, 11:29:53 AM
Thanks for the info, Mike and Kindred.

Quote(and brynn, you did understand it correctly)

This mod stops a user from using the email address as the username

But it doesn't block all domains, right?  It only blocks the ones that you list in the options, right?

QuotePersonally, I think that's a waste of time.

But doesn't having email addresses all over the place attract a lot of spammers looking snag the addresses?
Title: Re: Block e-mail usernames
Post by: Kindred on March 30, 2016, 11:39:57 AM
I was referring to Miker's block list... in my opinion of it being a waste.

but no --  from what I have read, this SHOULD stop ANYONE from using and email address as a username (going forward) and it will completely BLOCK anyone trying to register with one of the listed domains, in addition to that.   (I think -- try it out on a test system to check)
Title: Re: Block e-mail usernames
Post by: Miker1029 on March 30, 2016, 12:40:40 PM
Quote from: brynn on March 30, 2016, 11:29:53 AM

But it doesn't block all domains, right?  It only blocks the ones that you list in the options, right?

But doesn't having email addresses all over the place attract a lot of spammers looking snag the addresses?

As Kindred Said it Only Blocks emails you ADD to the Settings for the MOD, And E-Mails and Spammers Have Really not a lot to do with this MOD, The Forum Can be Set up to HIDE all E-mails and Send them through the E-mail system of the Forum, So ONLY people with Elevated Permissions can SEE any ones E-mail Address.....(Admins, Moderators if you Choose)

I use this MOD As an "Extra" Step of preventing any Issues, I don't sell, give away, or in anyway do anything with my users information for anything but running the forum. so in my opinion you need not use a fake on my Forum, Maybe others (Ya I can see a good reason for it), as my forum doesn't abuse the information....

I'm No expert on how BOTS work but i'd imagine they'd need different E-mail Address, and Ya BOTS do go into forums to Skim all Info they can get, Why I have E-mails set-up the Way I do (Sent through forums E-mail system), And WHY my Guests and Spiders CAN NOT Access user profiles....

Mike



Title: Re: Block e-mail usernames
Post by: Kindred on March 30, 2016, 01:19:39 PM
Miker, I think you misunderstood brynn...

brynn's intention is to keep users from using the email address as their username so that spam-scrapers who view the site do not SEE the email (as a username) and add it to their catalog... not to prevent spammers from registering
Title: Re: Block e-mail usernames
Post by: DSystem on March 30, 2016, 03:47:56 PM
Another translation ...

    <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['registration_failed_email_provider1'] = 'O registo falhou porque: você não pode usar esse provedor de e-mail em seu nome de usuário.';
$txt['registration_failed_email'] = 'O registo falhou porque: você não pode usar um endereço de e-mail como seu nome de usuário.';
$txt['registration_failed_email_provider2'] = 'O registo falhou porque: você não pode usar esse provedor de e-mail no seu endereço de e-mail.';

$txt['blockemail'] = 'Bloquear e-mail usernames';
$txt['enableblockemail'] = 'Habilitar bloqueador';

$txt['block_what'] = 'O que verificar';
$txt['what_username'] = 'Usernames';
$txt['what_email'] = 'Endereços de email';
$txt['what_both'] = 'Ambos';

$txt['block_by_provider'] = 'Bloquear por provedor';
$txt['email_providers_deny'] = 'Provedores para bloquear (nome.ext, E.G. hotmail.com, separados por um único ponto e vírgula (;))
<div class="smalltext">A opção "Bloquear por provedor" deve estar ativada.</div>';

$txt['also_check_email_addresses'] = 'Além disso, verifique os endereços de e-mail
<div class="smalltext">A opçao "Bloquear por provedor" ou "Permitir por provedor" deve ser habilitada para que isto funcione corretamente.</div>';

$txt['allow_by_provider'] = 'Permitir por provedor';
$txt['email_providers_allow'] = 'Provedores para permitir (nome.ext, E.G. hotmail.com, separados por um único ponto e vírgula (;))
<div class="smalltext">A opçao "Permitir por provedor" deve estar ativada.</div>';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['registration_failed_email_provider1'] = 'O registo falhou porque: voc&ecirc; n&atilde;o pode usar esse provedor de e-mail em seu nome de usu&aacute;rio.';
$txt['registration_failed_email'] = 'O registo falhou porque: voc&ecirc; n&atilde;o pode usar um endere&ccedil;o de e-mail como seu nome de usu&aacute;rio.';
$txt['registration_failed_email_provider2'] = 'O registo falhou porque: voc&ecirc; n&atilde;o pode usar esse provedor de e-mail no seu endere&ccedil;o de e-mail.';

$txt['blockemail'] = 'Bloquear e-mail usernames';
$txt['enableblockemail'] = 'Habilitar bloqueador';

$txt['block_what'] = 'O que verificar';
$txt['what_username'] = 'Usernames';
$txt['what_email'] = 'Endere&ccedil;os de email';
$txt['what_both'] = 'Ambos';

$txt['block_by_provider'] = 'Bloquear por provedor';
$txt['email_providers_deny'] = 'Provedores para bloquear (nome.ext, E.G. hotmail.com, separados por um &uacute;nico ponto e v&iacute;rgula (;))
<div class="smalltext">A op&ccedil;&atilde;o "Bloquear por provedor" deve estar ativada.</div>';

$txt['also_check_email_addresses'] = 'Além disso, verifique os endere&ccedil;os de e-mail
<div class="smalltext">A op&ccedil;ao "Bloquear por provedor" ou "Permitir por provedor" deve ser habilitada para que isto funcione corretamente.</div>';

$txt['allow_by_provider'] = 'Permitir por provedor';
$txt['email_providers_allow'] = 'Provedores para permitir (nome.ext, E.G. hotmail.com, separados por um &uacute;nico ponto e v&iacute;rgula (;))
<div class="smalltext">A op&ccedil;ao "Permitir por provedor" deve estar ativada.</div>';]]></add>
        </operation>
    </file>
Title: Re: Block e-mail usernames
Post by: Miker1029 on March 31, 2016, 01:41:42 AM
Quote from: Kindred on March 30, 2016, 01:19:39 PM
Miker, I think you misunderstood brynn...lol

brynn's intention is to keep users from using the email address as their username so that spam-scrapers who view the site do not SEE the email (as a username) and add it to their catalog... not to prevent spammers from registering

Okay that's why I was getting lost that's simple just don't let them use an @ symbol set it in reserved name...
Also restrict .net .com etc..  And could make it so they can't use periods at all in the user name that pretty much stops it. I have all that set plus forum name developer etc...

Mike
Title: Re: Block e-mail usernames
Post by: Kindred on March 31, 2016, 08:18:02 AM
except that would stop someone from using the name Netrunner or K@

this mod CLAIMS to allow both of those, while stopping the user from using a full email/domain as username
Title: Re: Block e-mail usernames
Post by: brynn on April 01, 2016, 09:36:16 PM
Ok, thanks guys.  Maybe I'll come up with a list of all the most common domains, to share here, like Miker has shared. 

It just needs to be in a text file, with domains separated with semicolon, correct?

Edit
Although I am still curious why Miker only wants to block fake email addresses??

Edit #2
Sorry, I missed this:

QuoteI use this MOD As an "Extra" Step of preventing any Issues, I don't sell, give away, or in anyway do anything with my users information for anything but running the forum. so in my opinion you need not use a fake on my Forum, Maybe others (Ya I can see a good reason for it), as my forum doesn't abuse the information....

But I still don't understand.  Are you thinking that anyone who uses a fake email address for a username is trying to hide something?  Or does not want to be a member for sincere reason?
Title: Re: Block e-mail usernames
Post by: brynn on April 01, 2016, 09:51:18 PM
Oooh....

Is it because you don't want other members to actually use the email address (that's being used as a username) and try to email a message to a fake address?
Title: Re: Block e-mail usernames
Post by: Miker1029 on April 06, 2016, 02:59:43 PM
Bunch Of reason that I can Think of off the Top of my head, The Forum Verifies By E-Mails for a Reason, A Fake, Pretty much is a work around for that, If I didn't want people without REAL E-Mails, I wouldn't bother verifying, I think (Dunno For sure) that Register Bots would need many E-Mail Address' and Would figure Fakes would be the Easiest to get... A Fake E-Mail Address Encourages Users that SPAM to SPAM.... No Accountability...

So On Top Of the MODS I'm Running to 1. Stop Spam, Stop BOTs (ALL), Stop FAKES, I Send Out an E-mail Blast Every (US) Holiday, And DELETE all BOUNCED E-mails (Returned do to E-mail not Existing, And ADD to E-Mail Block), In this way I'm Turning the Forum Around to REAL USERS, Instead Of BS Users, Might be an Easier way, but I'm doing this by What I've learned, and What "I" can figure will work....

As An Example I started using SMF (PHPBB before that, Used the Database Conversion to Switch, AND was on a "FREE" Host), and RAN UP to DANG near 2000 Users In my 1st Month, Was before I knew ANYTHING about running ANYTHING on the NET, Couple Years later I know more (And AM STILL LEARNING!), Awhile Ago I started Using "Email Inactive Users" MOD, That Sends a Notification to users that haven't posted and Haven't logged on in 6 Months, Sends them an E-mail to let them know account will be deleted in 7 days if they don't login, Then Deletes the accounts, as Of right now I'm at 2400+ (from about 4000+) Users (get anywhere from 200-300 New a month, AND I KNOW THESE USERS ARE REAL!), And Deleting Daily, By this July I should have Run the Cycle of My Ignorance out (Bots), and will be switching to a Yearly Deletion Process...

On this MOD and WHAT it does, I don't use it that way so I don't know..... The way I've described is the way I use it and works great for me....

@Kindred

Oh well then K@ will have to Be KAT or not sign up.....

Mike

These are the MODS I Use If it Helps Any:

EzPortal 3.1 [ Uninstall ]
2. Responsive Curve 1.0.0 [ Uninstall ]
3. Default Avatar 1.1.1 [ Uninstall ]
4. InLine Attachments 1.2.1 [ Uninstall ]
5. Voter Visibility 2.1 [ Uninstall ]
6. SA Twitter 1.2 [ Uninstall ]
7. Show Number of Errors at Top of Forum 1.1.2 [ Uninstall ]
8. KeyCAPTCHA for SMF 2.11 [ Uninstall ]
9. Treasury 2.12 [ Uninstall ]
10. Ad Managment 3.2 [ Uninstall ]
11. E-Arcade 3.0 [ Uninstall ]
12. Share this topic - SMF Mod 1.3 [ Uninstall ]
13. Stop Spammer 2.3.9 [ Uninstall ]
14. Code Highlighting 1.0 [ Uninstall ]
15. Highslide 4 SMF 0.8.1 [ Uninstall ]
16. SA GPlus 0.3 REV 9 [ Uninstall ]
17. Register Redirect 1.0 [ Uninstall ]
18. Email Inactive Users 1.1.1 [ Uninstall ]
19. Login Security 1.0.3 [ Uninstall ]
20. Membergroup ID with Group Name 1.1 [ Uninstall ]
21. Default_Membergroup 2.0 [ Uninstall ]
22. Block Email Usernames 0.4.2 [ Uninstall ]
23. httpBL 2.5.1 [ Uninstall ]
24. Topic Solved 1.1.1 [ Uninstall ]
25. Say Thanks 1.3 [ Uninstall ]
26. Downloads System 2.5 [ Uninstall ]
27. ICAP: Info Center Access Permission 1.0.0 [ Uninstall ]
28. Users mass actions 0.1.1 [ Uninstall ]
29. nCode Image Resizer 1.4 [ Uninstall ]
30. SA Facebook 3.0 [ Uninstall ]


And My "Reserved Names" That I DON'T Want in my Database....

Admin
Webmaster
Guest
root
no-reply
Miker1029
Miker
Moderator
Test
account
@
.
!
#
$
%
&
^
*
(
)
=
[
]
{
}
;
:
"
/
?
.
,
>
<
\
|
android
x86
net
org
com
xxx
Title: Re: Block e-mail usernames
Post by: Miker1029 on July 09, 2016, 11:06:21 AM
Hey all,

    For anyone interested I have a new Fake E-mail List, From Here, Looks like it was updated 15 days ago, Plus a few from my own checks, Duplicates Removed....

https://github.com/martenson/disposable-email-domains/blob/master/disposable_email_blacklist.conf

Mike
Title: Re: Block e-mail usernames
Post by: FragaCampos on July 13, 2016, 10:29:40 PM
Thanks, Mike.
Title: Re: Block e-mail usernames
Post by: GL700Wing on March 11, 2017, 05:29:29 AM
Does this mod also prevent users from changing their email address to one of the blocked providers after registration (ie, when they modify their profile)?
Title: Re: Block e-mail usernames
Post by: NanoSector on March 11, 2017, 05:34:12 AM
Quote from: GL700Wing on March 11, 2017, 05:29:29 AM
Does this mod also prevent users from changing their email address to one of the blocked providers after registration (ie, when they modify their profile)?
No, it just blocks the users on registration.
Title: Re: Block e-mail usernames
Post by: Miker1029 on March 12, 2017, 01:55:02 PM
Quote from: NanoSector on March 11, 2017, 05:34:12 AM
Quote from: GL700Wing on March 11, 2017, 05:29:29 AM
Does this mod also prevent users from changing their email address to one of the blocked providers after registration (ie, when they modify their profile)?
No, it just blocks the users on registration.

But (I believe if memory serves) that there is a setting in SMF it self to Re-Validate on E-mail Change, Which would run it through the Blocker....

Mike