Script to ban unsucessful login

Is there any script to ban the IP after n number of unsucessful login attemp to Unix system?

I want to do this for the following:
-Shell
-FTP
-FrontPage Ext

 

 

 

 

Top