Jump to content

Limiting Failed Login Attempts


jackie13

Recommended Posts

Hello everyone,

 

I need to protect a few pages on my website. I already have a third party forum installed. I figured it would be convenient for my users to use their current logins/passwords to view the protected pages.

 

Problem:

I am aware that a simple login form I created is vulnerable to brute-force attacks. What easy (or relatively easy) method would you use to limit the number of failed login attempts to, say, 10 attempts a day?

Link to comment
Share on other sites

One solution you could use is to store a timestamp and integer in the user's session.  You could then read those in and check the integer and timestamp for a certain frequency, and if some limit was met redirect or block the user from logging in.

 

I think a bigger concern will be leveraging the existing database, but that may be doable if all you're attempting to provide is a username/password check.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.