Jump to content

Brute force


jaymc

Recommended Posts

How can I stop brute force on my website for a login page?

 

I dont want to use those image verification things where you type the letters

 

So what can I do to stop someone writing a script to POST dictionary passwords at a page and keep doing it until it gets the correct password

 

Leading on from this, how can I stop someone from blasting my web servers over and over again as its not hard to kill a server by putting a few scripts on someone boxes to continuouusly request a page which has some heavy mysql stuff on. Banning from IP can take 5 mins to get the IP, add to iptables etc etc and thats assuming your online at that moment.

 

I need something that can add protection 24/7.

 

Whats to stop me firing 400 requests a sec at this forum, killing its max conections and knocking the server offline...

Link to comment
Share on other sites

Since this is a php forum, i'll give you some php answers (automated ones)...

 

I have a frequency checking algorithm on my logs, it is only on 'entrances' to the site but logs attempts including ssid, ip, agent and proxy. For each one there is a max attempt within a set time, if exceed then there banned for a set amount of time. This ban is the first thing checked on the CMS, so it minimizes the server usage. Also if this happens twice in a row (without logging in) then they are added to a banned table (just their ip), this is also checked top of the pops. You can also add to this table, it greps on ip or agent (the agent can be pretty weildly, but numerous hackers like to leave a signature!)

 

oops, 'ave been on phone for 45mins, can't finish now...

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.