Joomla is becoming one of the most popular websites Content Management System (CMS) with hundreds of millions of Joomla websites and thousands more be built every day, it isn’t surprising if many hackers want to attack it. In fact, there were many Joomla websites which were defaced because of the ignorance of their administrators.
However, you don’t need to worry!
In this tutorial, we will show you several tips and neat tricks, which will keep your Joomla website safely.
1. Backup data
Take time to make a troubleshooting plan before your site visited by hackers. You always remember: “Backup early and often” to protect your data. This gives you the certainty that if something goes wrong with your Joomla website, you can restore it at any time you want. Then you only need to find vulnerabilities on a website.
2. Update Joomla
If your website is running Joomla 1.0 or 1.5, you should upgrade to Joomla 2.5 or 3.0. In the higher versions, there are many security improvements in the core elements of the application. However, you should do with caution “always backup your Joomla before proceeding with the upgrade”. For more information, you can check Joomla tutorial
3. Careful management of installed extensions.
The extension of third-party make Joomla extremely popular, but it’s also a way to enter your website. In addition, you need to update regularly for each different extension. So, you should consider that expansion is really necessary.
Make sure the following steps:
- Run code review for any extension used.
- Update and patch for extensions when it’s necessary.
Remember that an extension, which isn’t safe, can be harmful to your entire website.
4. Remove unused files.
You install many extensions, but don’t use them? This is not only a weakness but also garbage for your website. Please use the uninstall function to totally get rid of the extension to avoid trouble.
5. Password protection:
The hacker usually attacks on weak passwords. You should regularly change your password and use all: uppercase, lowercase, special characters, numbers.
The database is very important. The SQL injection attack or any other attack on the database can make your effort lost. Make sure that your database access is protected at MySQL.
6. Use URLs search engine friendly:
Always use URLs search engine friendly. This not only improved the website's Google ranking but also prevent hackers exploit to use Google’s search results.
7. Change URL for administration security.
Standard Joomla address is http://www.yoursite.com/administrator. In order to secure your site against attack, you can rename it to be something like http://www.yoursite.com/administrator?wewroi4459
8. Remove version number, name of extensions.
Most of vulnerabilities only occur in a specific release of a specific extension. This is why you should remove the information about the version number of any extension is installed. Remove the version number may prevent an attack before it can happen.
Showing My Extension version 2.5 is really bad thing. You can modify this message with only the name of the extension by doing the following:
- Retrieve all files of the extension from your server
- Load any file from the extension that you just downloaded to your local machine
- Use the Search function and set the search to Search through specified folder. Navigate to the folder where you downloaded the exploit.
- Set the search term to "My Extension version 2.5" and press OK.
- When found the correct file, remove the version number.
- Upload the changed file to your server and check if the changes are made.
9. Use the correct CHMOD for each folder and file
• PHP files: 644
• Config files: 666
• Other folders: 755
10. Change your .htaccess file:
11. Turn off Register_globals
You should turn off Register_globals, however, you must know that it can disable PHP script to work and maybe affect other programs that you are using on the website.
To make it, you just edit the php.ini file in the root directory of your domain name.
These checklists will point you in the right direction and inform you of typical security. So, make sure you went through all of the steps.
Hope you get more useful information!
If you have more tips to enhance the security of Joomla, let’s share with us!