Home
/
Other Applications
/
How do I restrict access to sensitive Joomla! directories by IP address?

How do I restrict access to sensitive Joomla! directories by IP address?

Restricting access to critical Joomla! directories such as administrator/ by IP address is a good security measure. This way you can allow access to your Joomla! backend only from your own IP address.

To implement such a restriction, add the following lines in your .htaccess file residing in the directory you wish to protect:

Order Deny,Allow
Deny from all
Allow from 123.123.123.123

where the sample IP address 123.123.123.123 has to be replaced with your own IP.

This file can be modified via FTP, or from File Manager in Site Tools and you can find what your IP is using this online tool.

Share This Article