mdivk wrote:
Thank you guys, I believe cPanel is the easiest way to do this, but if no cPanel, which method can protect the folder (including all the sub folders and files)?
The password method is a bit cumbersome as you have to enter a double password to get into the Admin Directory. The password method works great if you have multiple people that need access to the Admin directory or back-in login.
However if you only have a few people that need access to the admin login then you can do a very simple and easy method of blocking everyone out except for you and a few selected other people.
Using a .htaccess and a deny all command:Code:
AuthUserFile /dev/null
order deny,allow
deny from all
# whitelist home IP address
allow from ###.###.###.###
allow from ###.###.###.
# Church IP
allow from ###.###.###.###
# whitelist Work IP Address
allow from ###.###.###.###
The '#' in the front of the line is simply a comment. Where as the ###.###... represents numbers that you would put in place of the # sign.
To find your IP address go to:
https://www.google.com/search?q=what+is+my+ip&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:officialOr do a Google search for "What is my ip" This will give you the IP address you can add to the allow access lines in the .htaccess file.
Using this method lets you setup a deny all and then only allow access by a specific IP address or addresses.
You would replace the ###.###.###.### by your IP address or other IP addresses you wish to allow access. If you only specify the first 3 sets of numbers then you open up a range of IP address: for example 192.161.100. --- opens up 192.161.100.1 - 192.161.100.255
This would allow you to limit the IP address that can access your admin directory and effectively wipe out all of Russia, China or other countries trying to access your admin directory.
Be careful where you put this .htaccess file.htaccess file settings flow downwards. Which means that IF you set the .htaccess file in the root level of the administration directory (which is where you want this file) THEN all folders under the administrator folder are also protected by this same method.
The .htaccess only blocks http or https access does not block FTP Access, or cPanel's File Manager, Unlimited FTP access or Shell SSH Access.
_________________
============
John Boonehttp://www.boonewebmaster.com - Web Design - Joomla 3.x
http://www.genealogyarticles.com - Articles about Genealogy - Joomla 2.5.x