Our Blog

Latest news and updates from HostingXtreme

Recovering from a hacked website

Posted by at HostingXtreme on Comments Off on Recovering from a hacked website

  1. Lock your site down:  Just put an .htaccess file with the below 2 lines in your public_html folder to lock down your entire website.

           order allow,deny
deny from all
Read More: https://25yearsofprogramming.com/blog/20070704.htm

  1. Regain Access or Control of your Site: Change your Webmail, cPanel, FTP, MySQL Passwords.
  2. Alert your web host about the situation, so that they maybe able to identify the cause and mitigate the problem. Give them a secondary email address that is not at your website so your host can still contact you if your site goes down or if the hacker is reading or deleting your website email. In case of HostingXtreme, the fastest way to get in touch with us is to mail us at [email protected]
  3. Find out the Vulnerability: Take note of which version of software and plugins you’re using and look at the vendor’s website to see if there were any open vulnerabilities. Take a look at your access logs to see if there has been any suspicious activity. Detailed access logs may only be available through your web host so ask them for help. Check for files with recently modified dates, suspicious names or files in suspicious locations.
  4. Restore your Files and Database from a Backup, if you don’t have a backup, check with your web host. Files that were not in your backup need to be restored manually either by creating the file again or in the case of a blog, you can find your article archived somewhere (i.e. archive.org, Google cache, RSS Reader history). Don’t forget to change your MySQL passwords in your configure.php files
  5. Eliminate the Vulnerability: Depending on what your vulnerability it is, get rid of it. To be on the safe side, upgrade everything to the latest version.
  6. Monitor your Site Activity for the next couple of weeks.
  7. Now start keeping regular backups of your database and files.

Comments are closed.