Ausweb Web Hosting and Web Development Tutorials

banner-tutorials
You are here

Restrict Directory Access by IP Address

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.

How To Restrict Directory Access by IP Address

  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

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

Optional: You can add multiple addresses by separating them with commas.

100.100.100.101, 100.100.100.102

Joomla! is the perfect Content Management System for managing and developing your website with one of AUSWEB's cPanel Hosting plans.
Articles In This Category
More from this Category
Tutorials > Joomla FAQ
A vulnerable extension is one that has been found to contain, or contribute to, a security vulnerability. Vulnerable extensions are not necessarily p...
Tutorials > Joomla FAQ
In addition to understanding the threats, and implementing general defensive strategies, it is important to know more specific details about security...
Tutorials > Joomla FAQ
It is very important to completely remove vulnerable extensions, simply removing the menu links to an extension, or unpublishing a module is NOT enoug...
Tutorials > Joomla FAQ
The most important thing anyone can do is make good decisions regarding the extensions they choose to use on a site. Once an insecure or malicious ext...
Tutorials > Joomla FAQ
Changing the default admin user name will greatly increase security. All new Joomla installations start with a Super Administrator account called, 'ad...
Related Articles
Related Articles
Plesk Tutorials > Plesk 10 - Tutorials
The following video tutorial will guide you through setting up anonymous FTP access in Plesk10...
Plesk Tutorials > Plesk 10 - Tutorials
The following video tutorial will guide you through password protecting a directory in Plesk10...
Plesk Tutorials > Plesk 10 Reseller
The following video tutorial will guide you through changing a Subscription's IP Address and System Login info in Plesk10...
Plesk Tutorials > Plesk 10 Reseller
The following video tutorial will guide you through accessing a Subscriber's Control Panel in Plesk10...
Plesk Tutorials > Plesk 10 - Tutorials
The following video tutorial will guide you through access Webmail in Plesk10...
Latest Articles
Latest Articles
Tutorials > Email Tutorial : FAQ for Email setup
This guide will help you configure your AUSWEB hosted email address with Outlook 2010....
Tutorials > Email Tutorial : FAQ for Email setup
This guide will help you setup and configure your AUSWEB hosted email address with Windows Live Mail (Outlook 2011)....
Tutorials > Partner (Affiliate) Guide
1. Visit http://partner.ausweb.com.au and click “Join Now” from the top navigation bar (or click the shiny green “Sign Up Now” button....
Tutorials > Website Security/Upgrade Issues
After installing an SSL, a commmon subsequent issue (in most modern browsers) is the the dreaded "Connection Partially Encrypted" warning.   The er...
Tutorials > Customer Testimonials
Now that you know about us, from us - this page is dedicated to what our customers think...
Most Read Articles
Most Read Articles
Tutorials > Joomla FAQ
A vulnerable extension is one that has been found to contain, or contribute to, a security vulnerability. Vulnerable extensions are not necessarily p...
Tutorials > phpBB Forum Hosting
Finally, after a long wait, phpBB3 has been released, and its relatively easy to upgrade your existing phpBB installation. phpBB3 introduces hundreds...
Tutorials > phpBB Forum Hosting
This video tutorial will show you how to create a new topic in phpBB3....
Tutorials > phpBB Forum Hosting
This video tutorial will show you how to set up a poll when starting a new topic in phpBB3...
Tutorials > phpBB Forum Hosting
phpBB3 is the latest update to the phpBB series, incorporating a plethora of new features, speed, stability and security improvements, and is much eas...