Support

Admin Tools

#29666 Hook onto log event

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Thursday, 14 June 2018 17:17 CDT

csstudios
It doesn't look like there's a way to block a specific Joomla user account due to failed login attempts using Admin Tools. Please confirm this is true.

The request from the client is to block a user in Joomla if they attempt and fail to log in to the site a certain number of times. Obviously, someone can try to login to the site with an invalid username and we wouldn't be able to do anything about that. I'm wondering if I would be able to trigger on a log to the _admintools_log table. If the username found in the extradata of the log matches a username in the Joomla users table, and there have been x amount of those in the past hour, the user will be blocked.

Is there a way I can extend Admin Tools to hook onto a "log" event?

dlb
If I understand what you're asking for, you don't need to hook into the log, you just need to turn the feature on.

Please take a look at Web Application Firewall, Configure WAF, on the Hardening Options tab, the fields "Treat failed logins as security exceptions" and "Deactivate user after" should do exactly what you're looking for.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

csstudios
That was it, thank you!

dlb
You're welcome!


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!