Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
allow only gmail accounts to sign up Comment
    •  ·  Alex T⚜️
    •  ·  2019-02-18T10:05:24+0000

    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.

    #tipsandtricks

      •  ·  Baloo
      •  ·  In reply to
        Alex T⚜️
      •  ·  2019-02-18T13:31:03+0000

      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.

        •  ·  Alex T⚜️
        •  ·  In reply to
          Baloo
        •  ·  2019-02-26T05:50:16+0000

        Baloo there is already big list of disposable emails are blocked:

        https://raw.githubusercontent.com/martenson/disposable-email-domains/master/disposable_email_blocklist.conf

        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');
          •  ·  Baloo
          •  ·  In reply to
            Alex T⚜️
          •  ·  2019-02-26T11:35:15+0000

          Oh yes, it's a long list, I did not know, thanks Alex.

        See more...
        • Features
        • Pricing
        • Forum
        • Blog
        • Market
        • About
        • Copyright
        • Contact
        • Terms
        • Privacy
        • 𝕏
        Search
        UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
      • Platform
        • Features
        • Core CMS
      • Resources
        • Documentation
        • Marketplace
        • Discussions
        • Support Groups
        • API Reference
        • UNA CMS on GitHub
        • Webinars
        • Blog
      • Community
        • Discussions
        • Groups
        • Webinars
      • Pricing
      • Are you sure?
        Please, enter a value here