Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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 ...Help - E-mail Spam in dnnHelp - E-mail Spam in dnn
Previous
 
Next
New Post
9/20/2009 11:30 AM
 

Hello,

Is there a way to stop an user registers himself and authentics your email with 10minutemail dot com?

The e-mail was .....@tyldd dot com.

I think It's very dangerous for security!

can you help me?

thanks

 
New Post
9/22/2009 10:59 AM
 

Only if you edit the code.  Maybe just the validation for the form, but there are thousands of similar mail sites, do you intend to block them all?  If you really think this is a security issue, change your site so the admin has to validate user accounts.

Jeff

 
New Post
9/22/2009 11:36 AM
 

At the moment, only one user give me the problem and I would to block this email.

This is the reply of Susan (regexadvice.com):

http://regexadvice.com/forums/ShowThread.aspx?PostID=56381#56381

.....

If you want to see if "@tyldd.com" is present in a string, then you can either simply use the pattern

@tylld\.com

as the pattern and it will return a match if it can find that literal text anywhere within the string. By the way, you can use a normal string function for this as well and not involve all of the overhead of a regex.

Alternatively you can modify your pattern to be:

\b[a-zA-Z0-9._%\-+']+@tylld\.com

As you can see, all I've done is to replace the pattern that matches the domain name with the literal domain name you are after.

If you want to exclude such an address, you can use a bit of code logic to use the above patterns to see if the domain exists and then take whatever action is necessary if it does.

If you are wanting to find all email addresses and then process the domain names later, you can use something like:

\b[a-zA-Z0-9._%\-+']+@([a-zA-Z0-9.\-]+\.[a-zA-Z]{2,4}\b)

which is your pattern with a match group around the domain name. This will find all of the email addresses and you can separately use the domain name captured in match group #1 to test for the "tylld.com" string.

As always, when I say "find all email addresses", this has the caveat that a regex pattern will never be 100% successful at finding all email addresses (or URLs). If the pattern you have found does the job for you then that is all that matters.

Susan

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Help - E-mail Spam in dnnHelp - E-mail Spam in dnn


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out