How to confirm whether the website is hacked
Solution for being hacked
-
First, back up all files in the root directory of the website. If you are familiar with WordPress operations and confirm that there are no other files to back up, you can only back up the uploaded attachment directory (normally it should be wp-content/uploads Contents); -
Delete all files on the website; -
Download the latest version of wordpress from the official website and upload it to the root directory of the website again; -
Find the previous backup data, and restore the uploaded attachment directory in the backup data to the website directory separately (normally it should be wp-content/uploads Directory. It is recommended to randomly check whether there are files with PHP suffix in the directory. If there are, there may be backdoor files in the attachment directory. These PHP files need to be deleted); -
When visiting the website address, you will enter the installation page. After you configure the database information as prompted, you will be prompted that it has been installed, and then use the website account password to log in to the background; -
Then install the theme and plug-in used before from the theme/plug-in official website channel
Daily preventive measures
-
The administrator account password should be as complex as possible. It is not recommended to use the default user name admin ; -
Wordpress, themes and plug-ins are recommended to be updated to the latest version, and lower versions may have security vulnerabilities; -
Download and install wordpress, themes, and plug-ins from the official website. In particular, it is not recommended to use pirate cracking resources; -
Regularly back up website files and databases, so that problems can be recovered in time; -
Some security protection plug-ins can be installed;