Support

Pre-sales

#23074 Admintools - Blocking Notification

Posted in ‘Pre-sales and Account Questions’
This is a public ticket

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

Latest post by on Saturday, 19 September 2015 17:20 CDT

BernhardS
 Is it possible in a future release to add an editor for "Blocking Notification"?


Reason is: the hacking attacks increase from Ukraine, Russia, France and some others. Therefore I sometimes block a whole country for some time. But it would be great to inform innocent visitors why this happens in a nicer form than "You are a hacker, a spammer or an other bad person".

I know that you can edit this line in Admintools, but it looks ugly. A nice notification with an excuse note and in several languages would be great for an innocent visitor.

Warm regards Bernhard

nicholas
Akeeba Staff
Manager
Hello Bernhard,

There is a reason why we have a very small message which is not rendered as an HTML page. When someone's IP is blocked (blacklisted manually or automatically, blocked by GeoIP restrictions, Project HoneyPot etc) they are supposed to be a hacker, spammer or another nefarious type with a great level of certainty. They are also very likely to be trying numerous attacks in a small amount of time. You want to block them spending the least amount of time possible, otherwise their barrage of attacks will result in denial of service for your site. This explains quite a few choices we made with regards to this feature:

  • There is no tracking of how many attacks a blocked IP has attempted in a period of time. Doing so would require writing and retrieving big amounts of information from the database which would amplify the CPU usage on your server and result in a denial of service. This leads to all access attempts from a blacklisted IP to be treated the same.
  • For the same reason you do not receive emails or any other kind of notifications when a blocked IP tries to access your site. Sending an email is really slow and would result in a denial of service really quickly.
  • Rendering a full HTML page can take between 300 to 5000 msec, depending on the extensions installed on your site. Rendering a stark message and terminating the application immediately takes less than 50 msec. That's one to three orders of magnitude faster, therefore it allows your server to handle a bigger number of access attempts from blocked IPs before risking a denial of service.


If we allowed you to render an HTML message like you asked it would partially beat the purpose of blocking IPs. If there was a legitimate reason to block those IPs your site would have suffered a self-inflicted denial of service. So much for protection, right?

At best you can create a small message pointing the users to a static HTML page on your site. For example:
Access denied for your IP. <a href="http://www.example.com/blockedip.html">Click here for more information</a>.

Where www.example.com is to be replaced with your own site's domain name. The blockedip.html is a static HTML file placed in your site's root with your message in multiple languages. If a real human bumps into the message they will click on the link and see the static HTML page with the lengthier explanation. Bots and hackers won't bother, therefore saving you server resources in the case of real attacks while offering a more user friendly experience to legitimate users inadvertently blocked.

If you are wondering why this would work: Static HTML pages are served directly by your web server without going through Joomla!. Since Admin Tools only runs inside Joomla! it won't block access to the static HTML pages.

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!

BernhardS
Hello Nicholas,

thanks for your fast reply and I understand now why not to do ;-).

But your suggestion with a static hmtl is ingenious - thanks a lot for your help.

Warm regards Bernhard

nicholas
Akeeba Staff
Manager
You're welcome :)

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!

BernhardS
Hello Nicholas,

something is wrong with the URL. It is cut off after "href= (example below):

Ihre IP [IP] wurde gesperrt.<br><br>Access denied for your IP. <a href=

It should be:

Access denied for your IP. <a href="http://www.mysite.eu/blockedip.html">Click here for more information</a>.

Any idea why?

Warm regards Bernhard

nicholas
Akeeba Staff
Manager
Oops, that's a bug in the current stable of Admin Tools. Please use this developer's release: https://www.akeebabackup.com/download/developer-releases/admin-tools-professional/revb651745.html I've tested my instructions for the custom message and now it works exactly as it should. Sorry for having you hit a bug!

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!

BernhardS
Hello Nicholas,

I tried dev-version but the same cutting off. Is there a limitation of signs or something else. My line is:

<center><br><br><b>Es tut mir leid, dass was sie gerade versuchen ist nicht gewuenscht und deshalb werden Sie nun fuer einige Zeit von meiner Website ausgeschlossen.</b><br><br> Sollten Sie diesen Versuch wieder starten, werde ich meine Website dauerhaft fuer Ihre IP [IP] sperren. Access denied for your IP. <a href=

Help needed ;-) (closing </center> in this case is cut too)

Warm regards Bernhard

nicholas
Akeeba Staff
Manager
Ugh, I only committed the code to fix the security exception message, not the IP block message. Let me try again. New dev release https://www.akeebabackup.com/download/developer-releases/admin-tools-professional/rev2e50e68.html

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!

BernhardS
Hello Nicholas,

thank you very much, now it works with the new dev-version.

Something has changed in this dev-version. Normally I get two different mail notifications for blocking an IP. With this version I get two identical mails which differ only in font style (the variables are a very small font in one of the mails).

Warm regards Bernhard

nicholas
Akeeba Staff
Manager
Hello Barnhard,

I have not changed the email templates since they were first introduced :) I think you may have accidentally changed these email templates when trying to solve the problem the past weeks and just forgot about it?

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!

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!