Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Automatically block IPs
Previous Previous
 
Next Next
New Post 7/1/2008 6:38 AM
Resolved
User is offline abstraction
52 posts
10th Ranked


Automatically block IPs 

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 7:58 AM
Accepted Answer 
User is offline Mitch Sellers
5372 posts
www.mitchelsellers.com
3rd Ranked




Re: Automatically block IPs 

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
MCITP, MCPD, MCTS
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 Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
New Post 7/1/2008 5:47 PM
User is offline Baatezu
164 posts
9th Ranked


Re: Automatically block IPs 

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 1:55 AM
User is offline abstraction
52 posts
10th Ranked


Re: Automatically block IPs 

 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 1:58 AM
User is offline abstraction
52 posts
10th Ranked


Re: Automatically block IPs 

 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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Automatically block IPs
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net
Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP