cdomingues77 Posted September 20, 2018 Share Posted September 20, 2018 Hello, I finally install prestashop on my home vbox webserver CentOS. Bu I notice that every time I go to the adminsitration page it change the folder name I rename do admin and when I enter it changes automaticly the name. Why? I don't understant Regards CDomingues Link to comment Share on other sites More sharing options...
Simonas Invertus Posted September 20, 2018 Share Posted September 20, 2018 When hackers try to attack your website the first thing they will do, they will try to access admin page. To make it harder for hackers, PrestaShop renames admin folder to random gibberish. It's kinda stupid but this is the way PrestaShop works. You can't have admin named "admin", but you can name it "bo" or "badmin" or "admi". 1 Link to comment Share on other sites More sharing options...
cdomingues77 Posted September 21, 2018 Author Share Posted September 21, 2018 Thanks a lot for the info Link to comment Share on other sites More sharing options...
joseantgv Posted December 13, 2018 Share Posted December 13, 2018 It's changed at initContent() function from AdminLoginControllerCore class: if (basename(_PS_ADMIN_DIR_) == 'admin' && file_exists(_PS_ADMIN_DIR_.'/../admin/')) { $rand = 'admin'.sprintf('%03d', rand(0, 999)).Tools::strtolower(Tools::passwdGen(6)).'/'; if (@rename(_PS_ADMIN_DIR_.'/../admin/', _PS_ADMIN_DIR_.'/../'.$rand)) { Tools::redirectAdmin('../'.$rand); } else { $this->context->smarty->assign(array( 'wrong_folder_name' => true )); } } else { $rand = basename(_PS_ADMIN_DIR_).'/'; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now