Knowledge Base Article

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

Restricting the access to the 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.


In order to implement such a restriction you have to 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.

You can find what your IP is at http://whatismyip.org



Rating

Please indicate if this article was helpful for you.

rating :  4.6 from 5
views :  1998
votes :  13

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!