How to Recover WordPress Hacked site
Sometimes having alphanumeric password protect WordPress website still get hacked again and again and then you want to recover your hacked website. Only strong password cannot prevent WordPress website from hacking. You have to do some other security protection which can prevent your WordPress site from getting hacked. So many websites are hacked every day due to low security.
To Recover WordPress Hacked Site Follow these Steps:-
Change your Password-
First of all you have to change your passwords. Change the password of cPanel & then WordPress login id-password. To change WordPress dashboard passwords go to “phpmyadmin” and change your WP login id-password.
Delete Index.php file-
Maximum of WordPress websites are recovered only by changing index.php files. This is the first step of hackers by which they can hack your websites. To recover hacked WordPress site delete your index.php file from cPanel. Then install a fresh copy of index.php file. You can get a fresh file from WordPress site.
Download a latest WordPress version then extract it, you can see a there index.php file. Upload this file and refresh cPanel and also change index.php file from wp-content. Open your website and now you can see that your hacked WordPress site recovered. Bloggers recover WordPress hacked site in this first step. But If still your website not recovered then follow second step“delete your theme”.
Delete Your Theme-
Recover Hacked WordPress sitefrom this option you have to delete your activated theme. To delete your activated theme follow these steps.
- Go to your Cpanel
- Open File manager
- open wp-content- themes
- delete your activated theme
Now open your wp-dashboard (yourdomain.com/wp-admin) and Install any fresh theme. Then open your website. Maximum of blogs are recover on 1st and second step. Some websites are still not recovered because hackers also infected your plugins. Now you have to delete your plugins.
Delete your plugins-
Plugins are also affected by hackers. They insert some infected files on your themes. So delete your all theme and after recovering your site you can install fresh plugins from wp.
Do a Backup-
If you recovered your hacked website then must do a backup now. If you are posting then do a backup on daily basis otherwise always keep a weekly back up of your site. After recover of WordPress site you have to restore backup to recover all your (Posts) contents etc. Hackers sometimes delete your all contents and in this case if you don’t have backup of your site then you have to build your blog from starting point.
Also create the different backup of the home directory and Mysql database. If you already have a backup of your WordPress site then you don’t need do all these steps. Just format your website and restore your backup. Your hacked WordPress site will recover in few minutes. So always must do backup...