Support

Admin Tools

#38336 Suggestion - Admin Tools Pro

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
3.10.11 or 4.2.6
PHP version
8.0.26
Admin Tools version
n/a

Latest post by nicholas on Monday, 16 January 2023 02:13 CST

enclavecoa

This is a suggestion for improvement of Admin Tools Pro.

Currently, Admin Tools Pro provides the option to receive an email when someone tries to gain access to a website that they shouldn't have access to (e.g. 404 Sheild, DFIShield, Logon Failure, Auto Ban, etc.).  I would like to suggest that in addition to that email, a option to have the pertinent information sent to the user in CSV format or stored on the file system in CSV format be added. I, like many others, sae those emails in an email folder in order to determine whether I have a repeat offender over time. Periodically, I create / update an Excel spreadsheet of each email which contains the offenders I.P., Date of offense, Reason of offense (404 Shield, DFI Shield Auto Ban, Login Failure, etc.). I then sort the file based upon I.P. and Date to determine repeat offenders. This lets me decide whether to permanently ban the I.P. from my site.

Thank you for your consideration.

nicholas
Akeeba Staff
Manager

You can use Admin Tools' built-in “Add persistent offenders to the IP Disallow List” feature to do this automatically. You just need to enter the same criteria you'd use in your manual trawling through the logs. Conversely, you can add known-good IP addresses in the “Never block these IPs” list to prevent them from being blocked at all in the first place. It does not make sense manually handling that step. Why are you using Admin Tools if you don't make use of its automation? It makes no sense.

If you want, you can export the #__admintools_ipblock tables across all your sites to CSV, TSV, or Excel format using phpMyAdmin or a similar tool. You could then import, sort, and filter the list and create a master list you could import (via phpMyAdmin) on all of your sites.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

enclavecoa

Nicholas, Thanks for your prompt response.  If you don't mind, I'd like to make sure that I understand your reply. Assuming that I have "Disallow site access to IPs in the IP Disallow List" set to Yes and "Add persistent offenders to the IP Disallow List" set to Yes in my WAF Configuration then anyone that tries to attack my site will be added to the Blocked Request Log and potentially the Auto I.P. Blocking Administration. This will also trigger an email to be sent giving the reason for the block.  If the attacker continues to attack my site after being "Permanently disallow IP after automatic IP blocks" then that I.P. will be added to the Site I.P. Disallow List. Correct? Doesn't this make the emails redundant?   I've been seeing a lot of emails from Admin Tools where the I.P. is being blocked either for a Failed Login Attempt or 404 Shield and I possible false assuming that even though they may be Auto Banned they were never added to the Site I.P. Disallow List thus my initial suggestion and CSV extraction from the emails. 

nicholas
Akeeba Staff
Manager

> Assuming that I have "Disallow site access to IPs in the IP Disallow List" set to Yes and "Add persistent offenders to the IP Disallow List" set to Yes in my WAF Configuration then anyone that tries to attack my site will be added to the Blocked Request Log and potentially the Auto I.P. Blocking Administration

Correct. That's what it does. If the limit you've set up is, say, 3 attacks in 10 seconds then if an IP produces three or more attacks within a 10 second window it gets auto-blocked for the duration you have specified, e.g. 5 minutes.

> This will also trigger an email to be sent giving the reason for the block.

Yes, but we'll get there.

> If the attacker continues to attack my site after being "Permanently disallow IP after automatic IP blocks" then that I.P. will be added to the Site I.P. Disallow List. Correct? 

If the continue attacking you after the auto-block IP expires then their attacks are added again to the blocked requests log. If they hit the limit their IP gets auto-blocked, again, and a new auto-blocked IP is recorded.

If there is a number of auto-blocked IP entries for the same IP address within the period you specified (e.g. 3 in one day) then their IP is permanently banned.

> Doesn't this make the emails redundant? 

Emails are always redundant. They are only meant to be used as a crutch during development or as a troubleshooting tool. The idea is that when you are setting up Admin Tools for the first time for a site you will very rarely get it right the first time. You will keep getting yourself and other people testing the dev site blocked. You need the emails to figure out who got blocked and, in case you block yourself, how to unblock yourself.

After this initial period you should remove the email address from the fields in the Logging and Reporting page and only refer to the Blocked Requests Log page. After all, at this point you know how to unblock yourself, or at least where in the documentation to look for this information.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

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!