Kaos
04-23-2008, 05:15 PM
I have added an additional username and password to my admincp and modcp. In the unlikely event that someone will guess what you've renamed your admincp folder to AND guessed your admin password, they will need to get past this too.
What you need to do is...
In your admincp folder, create an .htaccess file. In this file, add these lines...
AuthType Basic
AuthName "admincp"
AuthUserFile /home/username/httppwd/.htpasswd
Require valid-user
Rename the "admincp" with whatever username you want.
Rename the /home/username with whatever your account username is.
Now you want to create a folder which is unreachable via a browser, i.e. not in your public_html folder, so it would be in /home/username. Call it something like 'cppass' or whatever you like.
In that folder, create a .htpasswd file.
In this file is where you're going to store your username and password for your ACP and MCP access.
Go to this website...
http://www.htaccesstools.com/htpasswd-generator/
This is where we're going to generate our username and password.
Enter the desired username and password, remember it needs to be the same username as you enetered in the .htaccess file (AuthName "admincp"). Also enter a password.
Let's use the following examples...
Username: admincp
Password: myadditionalpassword
When you enter those details into that site, this is what you get.
admincp:bXLk.xS1RX4Sk
Copy and paste this line of text into your /home/username/cppass/.htpasswd file.
Now when you try to access your admincp on your forum, you will be prompted to enter the additional username and password.
Do the same with your modcp folder if you want to add additional security to that as well.
Use the following examples above to see how it works then you can customize it to your own needs.
Hope this helps. :)
Kaos
What you need to do is...
In your admincp folder, create an .htaccess file. In this file, add these lines...
AuthType Basic
AuthName "admincp"
AuthUserFile /home/username/httppwd/.htpasswd
Require valid-user
Rename the "admincp" with whatever username you want.
Rename the /home/username with whatever your account username is.
Now you want to create a folder which is unreachable via a browser, i.e. not in your public_html folder, so it would be in /home/username. Call it something like 'cppass' or whatever you like.
In that folder, create a .htpasswd file.
In this file is where you're going to store your username and password for your ACP and MCP access.
Go to this website...
http://www.htaccesstools.com/htpasswd-generator/
This is where we're going to generate our username and password.
Enter the desired username and password, remember it needs to be the same username as you enetered in the .htaccess file (AuthName "admincp"). Also enter a password.
Let's use the following examples...
Username: admincp
Password: myadditionalpassword
When you enter those details into that site, this is what you get.
admincp:bXLk.xS1RX4Sk
Copy and paste this line of text into your /home/username/cppass/.htpasswd file.
Now when you try to access your admincp on your forum, you will be prompted to enter the additional username and password.
Do the same with your modcp folder if you want to add additional security to that as well.
Use the following examples above to see how it works then you can customize it to your own needs.
Hope this helps. :)
Kaos