I know securing any website is a very tough and broad topic to be discussed upon but i want to relate this question to my specific website which i've been working on. It was coded in php by some other programmer around 2007 and i am responsible for it's management. My problem is it's being hacked time and again. Please help me
Joomla version 1.5.18(With Virtuemart)
From this guide:
8 Ways to secure Joomla and prevent being hacked!
- Change the default database prefix (jos_)
- Use a SEF component
- Use the correct CHMOD for each folder and file.
- Password protect your administrative area.
- Keep your website up-to-date.
- Use a .htaccess file to secure your Joomla.
- Passwords - Use a unique and strong password.
- Install the jSecure Authentication plugin.
Well for starters, you're using Joomla 1.5 which is old and less secure. Upgrade your site to Joomla 2.5 or 3.1 and then read the following, which is a question I answered a while back regarding what could be done to help prevent a Joomla attack:
In the long term, you should probably migrate to the latest version of Joomla e.g. Joomla 3.x.
A short term fix would probably involve most or all of the following:
- Clean up the current website. An efficient and effective way to do this is to use the tool from Phil Taylor at http://myjoomla.com. Your first audit is free.
- Change Joomla administrative user accounts, cPanel and database passwords to new and strong passwords.
- Update the website to Joomla 1.5.26.
- Apply security hotfixes for Joomla EOL versions where applicable.
- Update all third party extensions to the latest versions and keep them up to date.
- Check for and remove any vulnerable extensions: http://vel.joomla.org
- Subscribe to the Joomla Vulnerable Extensions list so new vulnerabilities can be quickly attended to.
- Remove any unused third party extensions.
- Disable or remove unused user accounts.
- Where possible, minimise the number of third party extensions.
- Where possible, use the most popular and best supported extensions.
- Use a good quality web host that are serious about server security.
- Don't rely solely on your web hosting provider for a backup.
- Perform regular backups of the website and copy them off-site.
- Consider security enhancements as per the answers already provided here although the above is usually sufficient to keep a Joomla website secure.
Run through the same procedure for any other websites that share the same web hosting space.
You might also review security on your own computer and any other administrator computers as it's possible hackers may have intercepted an FTP password (or similar) from the FTP client on your computer etc.
I would recommend to use OWASP Joomla! Vulnerability Scanner. You will be able to identify known security vulnerabilities and exploitable plug-ins. See how to use at : http://m4extensions.com/tutorials/6-how-to-secure-my-joomla-website-from-hack
来源:https://stackoverflow.com/questions/19134180/how-to-secure-joomla-and-prevent-being-hacked