allow only gmail accounts to sign up
Is there a way to only allow gmail accounts to sign up for my site?
-
- · Amitesh Kumar
- ·
Do you want to disable sign up with E-mail?
-
- · Genesis
- ·
No I am just trying to only allow certain email domains to sign up.
-
- · Baloo
-
·
In reply to Genesis
- ·
Yes it's a good question, because you have something here about this subject, but I do not know where this list is ...
-
-
·
Alex T⚜️
- ·
Allow only particular email domains to signup
You can use the following hidden feature, to activate it, run the following queries:
INSERT IGNORE INTO `bx_antispam_disposable_email_domains` (`id`, `domain`, `list`) VALUES (NULL, 'gmail.com', 'custom_whitelist'); UPDATE `sys_options` SET `value` = 'whitelist' WHERE `name` = 'bx_antispam_disposable_email_domains_mode';
Then clear DB cache.
Please note, that these settings will be changed back if you edit any of Antispam module settings, so you will need to run it again after editing Antispam module settings.
-
·
Alex T⚜️
-
- · Baloo
-
·
In reply to Alex T⚜️
- ·
Thanks Alex, and if I want to do the opposite, ban some areas?
It would be very interesting to be able to do it directly from the settings of the Antispam module so that it is not easy and that it is registered once and for all. -
- · Genesis
- ·
How about allowing two or three email domains? Just separate them with a comma?
-
-
·
Alex T⚜️
-
·
In reply to Genesis
- ·
Joseph Capers you need to add separate record, like this:
INSERT IGNORE INTO `bx_antispam_disposable_email_domains` (`id`, `domain`, `list`) VALUES (NULL, 'gmail.com', 'custom_whitelist'), (NULL, 'hotmail.com', 'custom_whitelist'); UPDATE `sys_options` SET `value` = 'whitelist' WHERE `name` = 'bx_antispam_disposable_email_domains_mode';
-
·
Alex T⚜️
-
-
·
Alex T⚜️
-
·
In reply to Baloo
- ·
Baloo there is already big list of disposable emails are blocked:
You can add more by executing the following query:
INSERT IGNORE INTO `bx_antispam_disposable_email_domains` (`id`, `domain`, `list`) VALUES (NULL, 'badmail.com', 'custom_blacklist'), (NULL, 'dirtymail.com', 'custom_blacklist');
-
·
Alex T⚜️
-
- · Baloo
-
·
In reply to Alex T⚜️
- ·
Oh yes, it's a long list, I did not know, thanks Alex.
-
- · Mayki
- ·
Great. This is great, what would be nice is to somehow inform a user with a pop-up warning window who is trying to use one of prohibited email that he can not use that email provider. Otherwise users will eventually leave because they will think that something is wrong...
I have created custom text block on registration page just to warn potencial members but hey, be honest, who the f. reads that..., while pop-up window is more aggressive and most people do pay attention I believe
Just a suggestion.
-
-
·
LeonidS
-
·
In reply to Mayki
- ·
You may place it to the "Terms of use" and add the option that the user agreed with that as mandatroy checkbox.
-
·
LeonidS
-
- · Mayki
-
·
In reply to LeonidS
- ·
Hi Leonid S
You may place it to the "Terms of use" and add the option that the user agreed with that as mandatroy checkbox.
that is one way yes, but I still think that popup or function in register form where email is entered would check against a list as mentioned above and it would turn red as "this email domain is prohibited"
Why am I doing such a fuss about this you my ask..., well it is very annoying getting all this mail bounced back as undelivered since mail box does not exist. Since I run my own e-mail server I need to worry about reputation as well.
So, can you consider something like that as future enhancement as security / anti spam prevention?
Or can someone please help me out with how to implement this list:
https://raw.githubusercontent.com/martenson/disposable-email-domains/master/disposable_email_blocklist.confto be checked upon registration and to prohibit the use of such mail address
Kind regards
Mayki -
-
·
LeonidS
-
·
In reply to Mayki
- ·
Ok, got it. Then you need to make a custom Javascript code which will be placed into RAW block on the "Create account" page. There you may add the email checking and popup alert call.
-
·
LeonidS
-
- · Mayki
-
·
In reply to LeonidS
- ·
Yes my dear LeonidS , and I do wish I'd know how to code it.
But I don't . Unfortunately.
-
- · Mayki
- ·
Can we somehow use this API:
-
- · Mayki
- ·
It would be nice if custom 'custom_whitelist' and 'custom_blacklist' could be edited in Studio -> Antispam module....
Kind regards
Mayki