Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Limit num tries for htaccess?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon Jan 23, 2017 4:19 pm    Post subject: Limit num tries for htaccess? Reply with quote

How do I limit the number of login attempts when using an .htaccess user/pass restriction? That is, after 3 tries, the popup is no longer presented and the user gets a "not authorized to view this page."

In addition, when this happens, how do I configure fail2ban to block the offending IP address for x amount of time?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Thu Apr 20, 2017 11:48 am    Post subject: Reply with quote

there is no way to limit that within .htaccess, but the fail2ban module you are looking for is "apache-auth"
_________________
The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum