How do I rename my Admin folder to prevent unauthorized access?
|
(Before making the following changes, make sure to have a current backup of your files and your database.) You're going to do three steps: A) edit the configure.php settings and upload them, B) rename the admin folder, C) test login to the new folder. DO NOT USE SEARCH-AND-REPLACE TO DO THESE EDITS!!!!!!!!!!! A - Edit /admin/includes/configure.phpUsing your FTP program, download a copy of your /admin/includes/configure.php file to your computer. For maximum security, you may want to consider that new folder name should include numbers and a combination of upper and lower case letters. The longer you make this folder's name the more secure it will be. When editing, make sure you leave all the define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
You will end up with something that looks like this: define('DIR_WS_ADMIN', '/mysecretadminarea/');
define('DIR_FS_ADMIN', '/home/mystore.com/www/public/mysecretadminarea/');
Now, you must upload the changes back to the server, using your FTP program. IMPORTANT NOTE: Your configure.php file should be set as Read-Only for normal use. So, you'll need to make it Writable before you'll be able to upload/save your changes to the file. Be sure to make it Read-Only again when finished. Often you can right-click the file in your FTP program and change the permissions settings there. There's another FAQ article on how to change file permissions on different hosting servers. B - Rename the Admin folderUsing your FTP software or your webhost's File Manager, find your Zen Cart™ /admin/ directory. Rename the directory to match the settings you just made in step A. C - Login to your admin using the new URLTo login to your admin system you will now have to visit a new URL that matches the new name used in steps A and B above. For example instead of visiting http://www.example.com/admin/ visit http://www.example.com/NeW_NamE4u/
Use of SSL is highly recommended to protect your and your customers information.
|
|||||||||||||||||
|
Related Articles
|
|||||||||||||||||


