There are lots of different types of website hacks. Hacks can be malicious (such as installing a virus on your website that your visitor's may get), or the hacks can just change the text on your front page. It is important to determine if your website has been hacked, how it was hacked, and then how to restore the site to it's status prior to the back.
Has my website been hacked?
Some website hacking is obvious, while others are more subtle. Signs that your website has been hacked:
- Your front page is "defaced." When you visit your website, instead of your page there is a completely different page. Often these pages will have a "hacked by...." message on them.
- You can no longer log into any of your admin pages. If you are having trouble logging into your CMS administrator login and your cPanel, then it is possible that your site was hacked and the passwords were changed.
- You get a Google Warning when you visit your website. Google scans all websites for malicious coding. If Google finds any files to be malicious, then when you visit your site through a Google search or in FireFox/Chrome it will display a red warning page.
- Your computer anti-virus software warns you when you visit your website. If your anti-virus warns you of a virus on your website, then there is likely a virus or trojan that your website is attempting to install on your computer.
- A page that previously loaded now suddenly will not load. This is not as common, but if a hacker has modified for example a database on your website that made the site no longer function properly, you may get a "can not connect to database" or similar message when loading a page.
How do I scan my site for Malware?
There are many tools available online that can scan your website for malware/exploits, below is a few of the most popular:
How was my website hacked?
The more common methods used to hack websites include:
If your password has been hacked, generally this will lead to your front page being "defaced" as the hackers will upload their own index page. If you use a software such as WordPress, ZenCart, or other programs, often time the hacks are done through an exploit in those programs. In many cases, if you use a CMS program the database will be hacked as well and will need to be restored.
How do I fix my website that is hacked?
It is difficult to give an exact method to resolve a hacking issue as there are many different types of website hacks, here are some general steps to take to correct your website:
- Restore backup of your website. The easiest way is to restore your site from a version that was saved prior to the site being hacked. If you have paid for the automated backup service, please contact our support team so that your website can be restored from the backup. If you do have the automated backup service, then you will need to restore your own backup of your website through the cPanel.
- Remove the coding from the .htaccess file. Many times if the site is hacked by code injection, there will be a "re-direct" placed in your .htaccess file in your public_html folder. Open your .htaccess file and look for any lines of coding that look suspicious. Delete the suspicious lines of coding, and then save your changes.
What should I do prevent my site from being hacked?
Depending on the cause of the hack, there are some steps you can take to help prevent hacks in the future:
- Update Software/Plugins: If you are running a CMS, such as Joomla, Wordpress, or Drupal, I recommend checking to make sure it and any plugins/Addons are fully updated as security exploits may have been fixed by the developers.. You can update most programs from Softaculous, but plugins/themes will differ in how they are updated, I recommend following the developer's instructions.
- Change any passwords for your account. This is always the recommended first step. In case your passwords were compromised, change your cPanel password, any FTP account passwords, and if you use WordPress or a CMS change that password as well.
- Update Programs running on your hosting account. If you use third party software to build your site, such as WordPress or Joomla, make sure you are using the most up to date version as security exploits may have been fixed by the developers.
- Update Programs running on your computer. Some programs, such as Adobe's Flash, include vulnerabilities that allow hackers to access data on your computer. They can then sniff around and find data, such as FTP usernames and passwords that are saved in some programs. Be sure that you keep all of your software up to date as most developers often release security patches.
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!