Jump to content

Block IP after x number of failed access attempts


eddy556

Recommended Posts

Hi

 

I dont know how to do it with apache, but if you are on a linux server (which i assume??) then have a look at a package called fail2ban. I haven't used it for this purpose but i know it can be done.

http://www.fail2ban.org

 

cheers,

tdw

fail2ban is your man.

 

It will parse apache, mail, ssh, ftp, etc. log files, and when X attempts to connect fail, it will add a iptables rule for 5 minutes automatically.

 

On debian and Ubuntu:

apt-get install fail2ban

 

On Centos/Fedora:

vi /etc/yum.repos.d/dries.repo

[dries]

name=Extra Fedora rpms dries - $releasever - $basearch

baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/

includepkgs=phpmyadmin,fail2ban

 

yum update

up2date yum

yum install fail2ban

 

-steve

 

(I tried Ubuntu but there are no drivers for my GFX card) - I bet there are drivers somewhere for that, and if not, Im sure there'd be a generic driver.

 

I dont know of any similar app to fail2ban for windows :(

 

-steve

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.