MyBB Community Forums

Full Version: How to Protect your AdminCP via IP Address
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This will prevent any one from access the Admin Control Panel besides the IP's you list.

1. Open your FTP Application(ex.File Zilla,ect)
2. Go to the Admin Folder and Edit the .htaccess file
3. Copy & Paste this into there-
Order Deny,Allow
Deny from all
# Username
Allow from your YOUR IP HERE,Other Admins Ip here,So on and so on.
This will allow only you and your other admins access to the AdminCP and for other members it will appear as "Forbidden".

Hope this helped out! Wink

To find out your IP just go to http://whatsmyip.org/
Just to note if a .htaccess file doesn't exist, create one with the given code.
Nice tutorial but I'm sure it has been posted already. Undecided
Do we keep # Username as # Username or do we put our own username there?
You don't even need the # Username line. It only helps you organize if you have multiple admins, in which case you replace it with your username.
What if you have a dynamic IP?
(2013-03-28, 09:45 AM)Seabody Wrote: [ -> ]What if you have a dynamic IP?

Then this may not be for you.
already asked for dynamic ip. so this is pretty useless..
Thanks for the tip. Smile
This is very nice, Thank you for this. This will prevent a lot of hacking.
Is very good for ip static,but for dynamic ip is not good because it changes every disconnection.(That would mean to change the ip .htacces every time you disconnect from the Internet.)
Pages: 1 2