Support

Admin Tools

#17837 Block via .htaccess

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 nicholas on Friday, 11 October 2013 14:47 CDT

xtech86
This is more off a question... hence no mandatory information.

Can we somehow implement the blacklist blocks to be added to the .htaccess? rather than running a script.

my concern is we currently get at occasions 47 hack attempts in a few minutes/seconds and would like an instant block from the site. Whereas loading the Joomla! site and then blocking if they are in the block list uses unnecessary load.

Is it possible? or do you have some statistics that states it's extra load is minimal?

Thanks
Tony

nicholas
Akeeba Staff
Manager
> Can we somehow implement the blacklist blocks to be added to the .htaccess? rather than running a script.

No. In fact it's a bad idea having a long list of blacklisted IPs in .htaccess. With 300 IPs you add about 100 msec (0.1 seconds) per request, including media files. Each page load results in several requests (typically: 40 to 100), running at most 8 in parallel. So the average time you would add per page load would be in the ballpark area of one second under ideal circumstances (one concurrent page load). In real world situations you would be slowing down each page load noticeably, in the area of 2-3 seconds. This is a genuinely Bad Idea.

> my concern is we currently get at occasions 47 hack attempts in a few minutes/seconds and would like an instant block from the site.

I think you should be looking into an attack mitigation service such as CloudFlare. They should hold back most of those attacks. The few that make it through can be fended off by Admin Tools without much trouble.

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!