Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Extra Security]How to change Admin CP directory
#1
Well this is a must-do for all the MyBB forum owners in order to protect their Forums being hacked. I had many forums, which were recently hacked due to less security. Changing the Admin CP directory gives you extra security. This is because if someone hacks your Administrator password, then they will need your admin CP directory link to login. And if they dont know the Admin CP directory link, then they wont be able to harm your forum. Ok so lets get started with the tutorial.

Let's say you wanted to change it from /admin/ to /iamsecured/

Open:
inc/config.php

Find:
Code:
$config[admin_dir] = admin;
You then need to simply change 'admin' to what you want:

Code:
$config[admin_dir] = iamsecured;
Finally, go to your Cpanel and rename /admin/ to /iamsecured/

The above step is very important, you must remember to change the directory name!

You should now remove the admin control panel links from the whole forum to prevent anyone from finding the new link. To do this:

Go to your Cpanel again.

Open
inc/config.php

Find:
Code:
$config['hide_admin_links'] = 0;

And change it to:

Code:
$config['hide_admin_links'] = 1;

Now you are secure enough. Leave a feedback if you found it helpful.


Reply
#2
Looks good thanks for making it so easy to understand. Last time I tried to edit this I didn't do the 2nd step and I messed it up. I am afraid to try it again, but I'm saving the link until I can test it out with some supervision.
Certified Counselor
'*> PM here <*'
Reply
#3
You should add quotes to strings and use the [php] tag:
PHP Code:
$config['admin_dir'] = 'iamsecured'

To keep secret that directory, I add that you should NEVER click on external links (like plugin author's site) from the Admin CP.
The link to your ACP is sent to that site via the referral header and is no longer secret.
As a plugin author, I can tell you!

If you want to visit plugin author's site, you should copy link URL and past it in a new tab.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  1st Post approved by Admin? Help! MintChip 1 732 08-08-2012, 12:26 PM
Last Post: BlackChaos
  How to change MyBB admin directory? iRun 3 2,042 03-02-2012, 08:22 PM
Last Post: HaX420
  Hacked admin account (urgent) Madness 7 1,562 09-08-2011, 02:01 PM
Last Post: AceInfinity
  MyBB Admin Control Panel Problem P.TanweerAhmad 4 3,224 08-04-2011, 02:56 AM
Last Post: P.TanweerAhmad
  [MYBB] Forum icons (on.gif, off.gif, offlock.gif), do not change for Admin usergroup Camgaertner 2 3,319 07-11-2011, 02:35 PM
Last Post: Glassy

Forum Jump:


Users browsing this thread: 3 Guest(s)