Quote:
Originally Posted by nexialys
there is no absolute reason why you would have to htpassword your admincp... trolls or not, if they don't have an admin account, they can't hit farther than the login page in the admincp...
|
Are you sure? vBulletin.com does not think the same way:
http://www.vbulletin.com/forum/admincp/
It's
extremly important to protect your /admincp with htpasswd.
DO NOT use an online tool generator (security warning) and update through FTP, just telnet into your server and run the commands there.
Run this:
(
pwd will show you the /full/path/to/your/protected/folder path)
su -
cd /your/protected/folder
pwd
pico .htaccess
In pico, paste this:
Code:
AuthUserFile /full/path/to/your/protected/folder/.htpasswd
AuthName restricted
AuthType Basic
<Limit GET>
require valid-user
</Limit>
Now, hit CTRL+O (letter) on your keyboard, which executes the Write command.
You will be prompted with the file name .htaccess at the bottom of your screen. Confirm the file is named correctly, and hit enter to save your file. You may now exit pico by hitting CTRL+X.
To create a .htpasswd file and insert it's first user, run this:
cd /your/protected/folder
htpasswd ?c .htpasswd johnsmith
You will be prompted to put in a password for johnsmith and then to confirm it.
If you want to add another user, just run this:
htpasswd .htpasswd newuser
Pretty easy, ehh? I hope you dont run Apache with php-fcgi, because that's another story...