Products

Solutions

Learn More

Partners

Community

Blog

About

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...New user registrations - how to filter out spam email addresses?New user registrations - how to filter out spam email addresses?
Previous
 
Next
New Post
2/18/2019 3:53 PM
 
Hi Nukers,

I'm trying to stop website registrations if the user email is from:

gmail
yahoo
hotmail

I'm using the email regular expression:

\w+([-+.]\w+)*@(?!(hotmail|gmail|yahoo))\w+([-.]\w+)*\.\w+([-.]\w+)*

Problem is, it's not case-sensitive, and I cannot see how to make it case sensitive - despite a lot of different combos with the /i tag and others.

Any ideas?
 
New Post
2/19/2019 3:22 AM
 
Hi Rod,
Not too sure if you are checking the email via javascript or backend server code but can you do a convert of the email string to lowercase before checking?
I think it's pretty straight forward to do it

for javascript
string.toLowerCase();

C#:
string.ToLower();
 
New Post
2/19/2019 2:19 PM
 
Sorry, I wasn't too clear on that. I'm using the built-in RegEx within DNN which is found in Site > Security > Member Accounts > Registration Settings > Email Address Validation
 
New Post
2/19/2019 7:03 PM
 
Hi Rod,
If you need to ignore case using Regular expression
try adding (?i) at the front

so your regex would be
(?i)\w+([-+.]\w+)*@(?!(hotmail|gmail|yahoo))\w+([-.]\w+)*\.\w+([-.]\w+)*
 
New Post
2/19/2019 7:47 PM
 
Thanks, but that doesn't work. It actually invalidates the rest of the regex so that everything is allowed.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...New user registrations - how to filter out spam email addresses?New user registrations - how to filter out spam email addresses?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out