# Announce: pam module for blocking failed attempts

**URL:** <https://www.ruby-forum.com/t/announce-pam-module-for-blocking-failed-attempts/80940>\
**Category:** Ruby\
**Created:** [January 2, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/announce-pam-module-for-blocking-failed-attempts/80940 "2007-01-02T12:25:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prhlava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/71e660/32.png) [@prhlava](https://www.ruby-forum.com/u/prhlava)\
**Post date:** [January 2, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/announce-pam-module-for-blocking-failed-attempts/80940/1 "2007-01-02T12:25:28Z")

</div>

for one reason or another, the pam\_abl module stopped working with the  
latest ssh and i needed alternative. so i created a pam module (written  
in ruby, using pam-ruby, ruby-pam + sqlite3 libraries) which blocks  
particular host after pre-set number of failed attempts.

anyone interested, the repository is at:

[https://zemiak.homelinux.org/viewvc/?root=hostblock](https://zemiak.homelinux.org/viewvc/?root=hostblock)

(this is my home server behind adsl line so please be gentle and patient

- it is not available all the time).

hope someone else finds this usefull…

vlad

---

<div class="post-metadata">

**Author:** ![prhlava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/71e660/32.png) [@prhlava](https://www.ruby-forum.com/u/prhlava)\
**Post date:** [January 3, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/announce-pam-module-for-blocking-failed-attempts/80940/2 "2007-01-03T12:32:47Z")

</div>

i have added some comments to the code…

---

<div class="post-metadata">

**Author:** ![prhlava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/71e660/32.png) [@prhlava](https://www.ruby-forum.com/u/prhlava)\
**Post date:** [January 4, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/announce-pam-module-for-blocking-failed-attempts/80940/3 "2007-01-04T12:31:59Z")

</div>

added example pam configuration for ssh
