Support

Admin Tools

#41680 How to Block IPs from a Specific Country in Admin Tools

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
5.2
PHP version
n/a
Admin Tools version
7.7.0

Latest post by nicholas on Tuesday, 04 March 2025 05:51 CST

sogescomputer

I am using Admin Tools Professional 7.7.0 on my Joomla website, and I would like to block all IPs from a specific country (India). However, I cannot find the Geo Block or GeoIP Blocking option in the Web Application Firewall settings.

I have already checked:

  • That I am using the Professional version.
  • The latest version (7.7.0).
  • The Web Application Firewall settings, but I couldn't locate any country-based blocking options.
  • Whether the MaxMind GeoLite2 database is required, but I couldn't find clear instructions on how to enable it.

Could you please guide me on how to block access from a specific country using Admin Tools?

Thank you for your help!

Best regards,
Leonardo

nicholas
Akeeba Staff
Manager

We have removed this feature since January 2020, see https://www.akeeba.com/news/1727-removal-of-geographic-ip-features-from-akeeba-software.html 

The obvious matter is, as explained in the news article, the change in MaxMind's licensing of the GeoIP database.

On top of that, GeoIP blocking has never been a security feature.

All you have is an IP address, and a database which is about 90% to 95% accurate on IPv4 addresses. This means that one in 10 to 20 requests using IPv4 will be misidentified as being from the wrong country. 

If your server supports IPv6 and the user accesses your site over IPv6 then you simply don't have any usable information on where they came from as the database does not cover IPv6.

It is also trivial for a malicious actor to use a VPN, or a hacked computer, in an allowed country to effectively spoof their origin IP address. In fact, that's exactly what attackers do.

Even if you somehow had a way to perfectly attribute an IP address to a country it means pretty much nothing at all. It would only identify the Internet connection's country, which country the user is connecting from. This might be different than the person's country of residence, or country of citizenship.

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!