Support Joomla!

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 20 guests online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow FAQs arrow Security & Performancearrow APACHE: How do I restrict directory access by IP address using .htaccess?

APACHE: How do I restrict directory access by IP address using .htaccess?
Author(s):Rliskey
Experience level:Beginner
Contributors:Joomla! version:1.0
Date added:Monday, 26 March 2007Date last changed:Friday, 06 July 2007
 
Overview

This can be a very effective way to protect your Joomla! administrator directory. Any other directory in public_html can be protected in the same way. This method only works if you have a static IP address assigned to you. Anyone attempting to browse such directories using a different IP Address will get a 403 Forbidden error.

Directions

1. In the directory you wish to protect, open (or create) a file called, .htaccess. (Note the dot at the beginning of the file name.)

2. Add the following code to this file, replacing 100.100.100.100 in this example with the static IP address you plan to allow:


Order Deny,Allow
Deny from all
Allow from 100.100.100.100



3. Optional: You can enter partial IP Addresses, such as, 100.100.100. This allows access to a range of addresses.

4. Optional: You can add multiple addresses by separating them with comma's.

100.100.100.101, 100.100.100.102

Last Updated Friday, 06 July 2007
< Prev   Next >

Powered by EasyFAQ © 2006 Joomla-addons.org