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 ...Automatically block IPsAutomatically block IPs
Previous
 
Next
New Post
7/1/2008 9:38 AM
 

Hi there,

Unfortunately my website is pretty much under constant attack, christ knows why!  But anyway  I've been looking at my web logs and someone has reloaded a page over 2k times, which I can only presume is from a brute force attempt.  I'm getting the same with my FTP server on the same box.

Anyway, to remove DNN from the issue, how would I make DNN block an IP from trying a login attempt x amount of times?  I want to set a maximum attempt count to like 10 or something before I get hacked.

Thanks a million for your time!

Nick.

 

 
New Post
7/1/2008 10:58 AM
Accepted Answer 

DNN automatically will "lock" an account after X number of attempts based on the settings inside the membershipprovider.

If you want to block an IP address for good after a cetain number of failures, you will most likely need to create a custom auth provider to do the job.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
7/1/2008 8:47 PM
 

I've never had to do this myself, but I did a quick www.google.com/search and found a few that looked like they might cover what you need to have happened. I don't know what, if any, effect on perf0rmance or anything like that.

Most seem to involve writing a new httpHandler and using that to block the IP.

 
New Post
7/2/2008 4:55 AM
 

Mitch Sellers wrote

DNN automatically will "lock" an account after X number of attempts based on the settings inside the membershipprovider.

If you want to block an IP address for good after a cetain number of failures, you will most likely need to create a custom auth provider to do the job.

Hi Mitch,

I tried adding the following attributes to AspNetSqlMembershipProvider,

 

passwordAttemptThreshold="5"

passwordAttemptWindow="60"

 

Unfortunately 'passwordAttemptThreshold' was not recognised by the provider, so after a little bit of googling I came across the following attribute,

 

maxInvalidPasswordAttempts="5"

 

Now after 5 invalid attempts it locks out the account for 60 minutes, fantastic, just what I was after.

Thanks a million for your help.

 
New Post
7/2/2008 4:58 AM
 

Baatezu wrote

I've never had to do this myself, but I did a quick www.google.com/search and found a few that looked like they might cover what you need to have happened. I don't know what, if any, effect on perf0rmance or anything like that.

Most seem to involve writing a new httpHandler and using that to block the IP.

 

Hi Baatezu,

Thanks for the inf0rmation, I've managed to get what I needed by configuring the membership provider, as by default the required attributes are ommitted.  If I continue to get issues from troublesome IP ranges I shall have to make something a little harsher.

Thanks for your time!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Automatically block IPsAutomatically block IPs


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