Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 98517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:12:40+00:00 2026-05-11T00:12:40+00:00

As a response to the recent Twitter hijackings and Jeff’s post on Dictionary Attacks

  • 0

As a response to the recent Twitter hijackings and Jeff’s post on Dictionary Attacks, what is the best way to secure your website against brute force login attacks?

Jeff’s post suggests putting in an increasing delay for each attempted login, and a suggestion in the comments is to add a captcha after the 2nd failed attempt.

Both these seem like good ideas, but how do you know what ‘attempt number’ it is? You can’t rely on a session ID (because an attacker could change it each time) or an IP address (better, but vulnerable to botnets). Simply logging it against the username could, using the delay method, lock out a legitimate user (or at least make the login process very slow for them).

Thoughts? Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:12:40+00:00Added an answer on May 11, 2026 at 12:12 am

    I think database-persisted short lockout period for the given account (1-5 minutes) is the only way to handle this. Each userid in your database contains a timeOfLastFailedLogin and numberOfFailedAttempts. When numbeOfFailedAttempts > X you lockout for some minutes.

    This means you’re locking the userid in question for some time, but not permanently. It also means you’re updating the database for each login attempt (unless it is locked, of course), which may be causing other problems.

    There is at least one whole country is NAT’ed in asia, so IP’s cannot be used for anything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Danny initially asked this question in response to a recent Scott Hanselman post: Who
In response to a recent slashdot post , I've decided I wish to add
What is the best response to give, if a number of objects are sent
I'm attempting to log into twitter to do some scraping of recent tweets. I
I'm serving a dynamically created recent.rss via python flask and naturally that way it
I have an ASP.NET website project that until recent had all code in App_Code
Response.Write(<script>alert('Konaklama Başarıyla Eklendi')</script>); string url = NewAccommodation.aspx?mID= + mID; Response.Redirect(url); Hi, on the above
Response.Write(Request.LogonUserIdentity.Name: +Request.LogonUserIdentity.Name); Response.Write(<br/>); Response.Write(WindowsIdentity.GetCurrent().Name: + WindowsIdentity.GetCurrent().Name); Response.Write(<br/>); as above, if I use anonymous credential,
response.Cookies( SOFTWARE_PROGRAM_NAME).Expires = datetime.now.adddays(365*10) this sets expiration for 10 years. Anyway to set it
response.setHeader(keys[i].toString(),value); in a servlet is throwing null pointer exception even though none of keys[i]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.