FelixT Posted March 18, 2022 Share Posted March 18, 2022 Could you please help? ... May i know How to hide .............../admin to public? Regards, Link to comment Share on other sites More sharing options...
Donnie95 Posted March 20, 2022 Share Posted March 20, 2022 I don't know how to hide it but you can use Cloudflare firewall rules to protect it. For example you can create a rule to only allow your IP or ISP to access the /admin/ url. This will make it very hard for attacker to hack your website. FelixT 1 Link to comment Share on other sites More sharing options...
Miss_B Posted March 20, 2022 Share Posted March 20, 2022 On 3/18/2022 at 4:19 PM, FelixT said: Could you please help? ... May i know How to hide .............../admin to public? Regards, What do you mean by hiding admin to public? Are you worried about the security? If so, you can use the required multi factor authentication to access the Admin Panel. FelixT 1 Link to comment Share on other sites More sharing options...
Square Wheels Posted March 20, 2022 Share Posted March 20, 2022 You can also rename it. FelixT 1 Link to comment Share on other sites More sharing options...
Chris Anderson Posted March 21, 2022 Share Posted March 21, 2022 Check out the following guide: You can add the following to your constants.php file: Constant - CP_DIRECTORY Use - Name of your admin CP directory when changed from the default of 'admin' Example value - 'newcpdirectory' FelixT 1 Link to comment Share on other sites More sharing options...
DawPi Posted March 21, 2022 Share Posted March 21, 2022 Or even protect it via htaccess too: https://www.askapache.com/online-tools/htpasswd-generator/ FelixT 1 Link to comment Share on other sites More sharing options...
FelixT Posted March 28, 2022 Author Share Posted March 28, 2022 On 3/21/2022 at 8:07 AM, Chris Anderson said: Check out the following guide: You can add the following to your constants.php file: Constant - CP_DIRECTORY Use - Name of your admin CP directory when changed from the default of 'admin' Example value - 'newcpdirectory' Thank you so much for your info and help.....will try that. Link to comment Share on other sites More sharing options...
Sonya* Posted March 28, 2022 Share Posted March 28, 2022 CP_DIRECTORY is deprecated //-------------------------------------------------------------------------------------- // DEPRECATED OPTIONS: CHANGE AT YOUR OWN RISK // These constants were once customisable but their fucntionality should now be // considered deprecated. // AdminCP Obscurity Settings // It was once recommended for site owners to rename the directory for security // and set the CP_DIRECTORY constant so some links still work, the upgrader can put // files in the right place, etc. While it is still honoured, it is no longer recommended // as much more secure alternatives like two factor authentication now exist. 'CP_DIRECTORY' => 'admin', // The name of the directory where the AdminCP is Link to comment Share on other sites More sharing options...
Mark H Posted March 28, 2022 Share Posted March 28, 2022 Sonya is correct. While renaming the admin folder is still possible at this time, the option to do so will be removed in an upcoming release, so please plan accordingly. We strongly recommend using 2FA for anyone that has ACP access. Link to comment Share on other sites More sharing options...
Recommended Posts