Support

Admin Tools

#25572 Can I block ip's that perform an excessive amount of http requests using AdminTools?

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 Wednesday, 10 August 2016 17:20 CDT

oorzaak
Hi,

We have several sites running on a Siteground GoGeek account. Over the last months there have been several attacks in which certain ip's generated an excessive amount of http requests. This resulted in Sitegound automatically closing down access to our GoGeek account for one day as the maximum daily number of executions was exceeded. This makes all of our websites unaccessible to anyone. The last situation of this type was during last weekend.

Of course I'm talking to Siteground now, trying to find a different kind of solution with them. As I am a user of AdminTools I thought I'd also ask you at Akeeba if AdminTools can be helpful to solve this kind of situations.

The point is, if we would be fast enough to:
a) see that there is an unusual high activity;
b) find out which ip is generating this activity;
c) ban this ip,

then I think this problem would be solved. The ip even wouldn't need to be permanently banned, just long enough to stop the attack.

At present, Siteground is sending met a mail about unusual activity (a) and from that moment on, I have about one or two hours to take action before the account is being closed down. Last weekend, I was too late.
With the tools that I have at present with Siteground, I am not able to find out which ip address is causing this issue (b), as there is some delay in processing the data. This is solved however by the fact that the Siteground helpdesk have tools that can do the job and they respond very quickly, 24/7. So if I am in time to read the notice (a), then Siteground can perform step (b) for me.
When Siteground report me the ip(s) involved, I can ban them.

I think that it should be possible to automate a workflow like this - but I'm not an expert so I may be mistaken.

I'd like to hear your opinion on this, and expecially on any possibilities to use AdminTools to help solve this problem.


Kind regards, Frits

tampe125
Akeeba Staff
Hello,

Admin Tools is not the right tool for your problem. Please remember that Admin Tools lives within your Joomla installation.
This means that when a single request is received by your server, it has to spawn a new PHP thread to handle the request, load Joomla, establish the MySQL connection, load all the system plugins and then Admin Tools kicks in and could ban the user.
As you can see there are a lot of resources used to just check/ban a single IP. The most efficient way is to do that way before Joomla fires up, so your server can save all those resources.
In other words, you need a Content Delivery Network (CDN). Please take a look at CloudFlare, it's a well-known CDN that would protect your site from these kind of heavy usage scenarios. If I remember correctly, there should be a plugin that will allow you to integrate Joomla and CloudFlare pretty easily.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

oorzaak
Thanks for replying so soon. Siteground offer a CloudFlare solution for my account. It is good to hear from an other (independent) party that this is a suitable solution.

Kind regards, Frits

tampe125
Akeeba Staff
You're welcome!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

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!