Amplify provide web and digital media solutions.
Amplify offer a diverse range of services for business wanting to succeed online, and take a primary focus on consultancy, development and support for e-Commerce, e-Learning and Joomla! Content Management System projects... ...
we just mention these in particular, because we cannot fit in this space all of the other things we can help with!
|
We have listed some additional security information for helping to make your Zen Cart™ ecommerce platform more secure. For further Zen Cart™ information and security advice or Zen Cart™ security assessments, please contact us. SSL SecurityWithout applying extra efforts to your connection on the internet you are wandering around an unsecured environment. Before you make administrative modifications to secure Zen Cart™ and its database, you need to equip yourself with secure ways to make these modifications. Otherwise if someone is watching/listing to the information you transmit, it might not be long before your private business information becomes public. The bare minimum you should have is access to shared SSL services from your hosting company. The preferred would be to have a dedicated SSL certificate for your store, as it is more professional in appearance than the use of a shared certificate. There will be an expense incurred to obtain a dedicated SSL certificate and dedicated IP address in your hosting account. Additionally, it would be prudent (if your hosting company offers FTPS support) to use a program that offers FTP over SSL/TLS instead of just traditional non-secure FTP. This tool will encrypt the information you transmit and receive. 1. Delete the /zc_install folderOnce installation is complete, delete the /zc_install folder from the server. Don't simply rename the folder, as this leaves you vulnerable if someone were to discover this renamed folder. 2. Rename your /admin folderIt is recommended for additional security that you rename your admin directory after installation. This way, it will be significantly harder for hackers to find your admin area or attempt any attack on breaking into it.
(Before making the following changes, make sure to have a current backup of your files and your database.) A - Open your admin/includes/configure.php, using a simple text editor like notepad. Change all instances of admin to your chosen new admin folder-name. 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. Make sure you leave all the / intact. Change this section:
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
And this section:
define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');
B - Find your Zen Cart™ /admin/ directory, using your FTP software or your webhost File Manager. Rename the directory to match the settings you just made in step A. C - To 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 you and your customers' information. To protect the new admin folder name from packet sniffers, use https in the example link above (this of course depends on your server having an SSL certificate installed). D - You should also protect your admin area by using an .htaccess file similar to the one shown below, and placing it into /admin/includes. This should already exist in Zen Cart™ versions 1.2.7 and greater. 3. Set configure.php files read-onlyIt's important that you CHMOD (set permissions) on the two configure.php files as read-only. Typically this means setting them to 644, or in some cases 444. / Quite often setting permissions on a file to read only via FTP will not work. Even if the permission looks like it was set to read only, it really may not have been. You must verify the correct setting by entering the store and seeing if there is a warning message on the top of the screen. "Warning: I am able to write to the configuration file:..." In this case you will need to use the "File Manager" supplied with your webhosting account. 4. Delete any unused Admin accountsAdmin > Tools > Admin Settings 5. Admin Password SecurityIt is wise to use complicated passwords so that a would-be hacker can't easily guess them. We recommend that you use passwords that are at least eight characters long. Making them alpha-numeric (including letters, numbers, upper-and-lower-case, etc) helps too. If you are going to use normal words it is a good idea to join together two normal words that don't normally go together. After you have finished editing your define pages (Admin > Tools > Define Pages Editor), you should protect them: A. Download a copy of them to your PC using your FTP software. They are located in the /includes/languages/english/html_includes area. B. Make them CHMOD 644 (or “read-only” for Windows hosts). See notes above on CHMOD. /includes/languages/english/html_includes – and all files/folders underneath If you make them read-only, then a would-be hacker cannot edit them if they gain access to your system, unless they can get permissions to change the read-only status, which is more complicated. 7. Use .htaccess files to protect against unwanted snoopingIn several folders, there are .htaccess files to prevent users from being able to browse through the files on your site unless they know exact filenames. Some also prevent access to any .PHP scripts, since it's expected that all PHP files in those folders will be accessed by other PHP files, and not by a browser directly. This is good for security. If you delete these files, you run the risk of leaving yourself open to people snooping around. There are also some blank index.html files in several folders. These files are there to protect you in case your FTP software won't upload .htaccess files, or your server won't accept them. These only prevent directory browsing, and do not stop execution of .PHP files. It's a good alternative, although using .htaccess files in all of these folders is the better choice, for servers that accept them. Suggested content for .htaccess files in folders where there is an index.html file but not yet an .htaccess file would be something like the following (depends on your server configuration): #.htaccess to prevent unauthorized directory browsing or access to .php files IndexIgnore */* #add the following to protect against people discovering what version your spiders.txt file is
If your webhost configuration doesn't allow you to create/use your own .htaccess files, sometimes they provide an interface in your hosting admin control panel where you can set the desired .htaccess settings. 8. Disable "Allow Guest To Tell A Friend" featureYou may wish to go to Admin > Configuration > Email Options > Allow Guest To Tell A Friend and set the option to false. This will prevent non-logged-in customers from using your server to send unwanted email messages. 9. Protect your "images" and other foldersDuring initial installation, you are advised to set your images folder to read/write, so that you can use the Admin interface to upload product/category images without having to use FTP for each one. Similar recommendations are made to other files for various reasons.
Thus, once your site is built and your images have been created/loaded, you should drop the security down from read/write to read. ie: change from CHMOD 777 down to 644 for files and 755 for folders.
# Prevent directory viewing and the ability of any scripts to run. File/Folder permissions settingsOn Linux/Unix hosts, generally, permission-setting recommendations for basic security are: * folders/directories: 755 On Windows hosts, setting files read-only is usually sufficient. Should double-check that the Internet Guest Account has limited (read-only) access. Folder PurposesThe folders for which installation suggests read-write access for setup are these. If your site supports .htaccess protection, then you should use it for these folders.
10. Remove the print URL feature from your browser
11. Things to Check Up on Regularly
Information supplied from the Zen Cart.com resource |
Build media-rich Joomla! web sites by learning to utilise the power of Multimedia for your Joomla! site.
Learn exciting new techniques for working with Text, Images, Video and Audio as well as working with external resources such as Twitter, YouTube, Google and more!
Buy the book via the Packt Publishing Online Store, or Find out more...