What to do if the WordPress website is hacked? Share detailed solutions for cool topics

3 minutes
three hundred and nine
zero

In our daily life WordPress Theme In after-sales work, users often report problems on the website, for example, Alibaba Cloud prompts the backdoor trojan file; Jump to another address after opening; The page is garbled; Other content has been added. According to our experience, this is generally caused by the website being hacked.

 The solution to the blackout of WordPress website

How to confirm whether the website is hacked

According to past experience, it can be judged by the following ways:

1. If Alibaba Cloud prompts for a backdoor trojan file, it can basically be confirmed;

2. The website is maliciously redirected to other addresses, especially when it jumps and does not jump, or when it jumps from Baidu, it is also very likely that it will not jump when it normally enters;

3. The website is included by the search engine with abnormal content not added by itself, which may also be hacked;

4. In case of other exceptions, it is recommended that you can enter the website directory to check whether there are other new exception files (not the wp system files, nor self upload, you can download the original wordpress and unzip it to see the file list comparison);

5. If you are interested in Have some understanding of PHP , then you can sort the website files according to the time, look at the recently modified PHP files, and open some randomly to see whether there are confused encrypted codes or other abnormal codes.

Solution for being hacked

At present, the common backdoor malicious code will not only appear in one file, but will infect many files, and generate many new malicious backdoor files, which may be placed in any directory, so the cost of manual inspection is high, and there will also be omissions. We generally recommend directly reinstalling the website, and then restoring the backup, as follows:

  1. 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);
  2. Delete all files on the website;
  3. Download the latest version of wordpress from the official website and upload it to the root directory of the website again;
  4. 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);
  5. 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;
  6. Then install the theme and plug-in used before from the theme/plug-in official website channel

Daily preventive measures

  1. The administrator account password should be as complex as possible. It is not recommended to use the default user name admin ;
  2. Wordpress, themes and plug-ins are recommended to be updated to the latest version, and lower versions may have security vulnerabilities;
  3. Download and install wordpress, themes, and plug-ins from the official website. In particular, it is not recommended to use pirate cracking resources;
  4. Regularly back up website files and databases, so that problems can be recovered in time;
  5. Some security protection plug-ins can be installed;
This article is written by: Chief Editor Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/188.html
Kuke_WP editor
author

Related recommendations

One year ago (2023-11-28)

Count excellent domestic WordPress topics and rank Wordpress charging topics

Original title: A detailed list of excellent domestic WordPress themes WordPress originated from abroad, is easy to use, and is very popular, making more and more domestic sites start to use WordPress website building programs. There are also many powerful experts or teams in our country who have developed WordPress themes. This article details the outstanding domestic Wor
five hundred and twenty-seven
zero
1 year ago (2023-11-16)

Six Best Free Lightweight WordPress Themes in 2022

Your WordPress theme is the foundation of your website, which means it plays an important role in the loading speed of your website. Of course, you can use a lot of strategies to speed up your WordPress website afterwards. But your theme will always become a bottleneck. In fact, I once did some tests on my collection website, only
1,278
zero
One year ago (2023-11-13)

Share a wordpress image theme: home-made original WMPIC theme

A very excellent wordpress image theme in China, there are many image themes and corporate themes in foreign countries, but in China, there are fewer corporate themes and fewer image themes. The aesthetic image theme we released today has been recognized by many netizens since the author's release. Here we express our gratitude and support for the author's sharing spirit. I also hope you can make
four hundred and seventy-nine
zero
One year ago (2023-11-13)

Wordpress theme: recommend a slow market theme, a small and fresh wordpress Taobaoke theme

Theme introduction The theme is suitable for Taobao customers, women's information, pictures, etc. The small and fresh wordpress theme has a very simple interface and a very good display effect. At the same time, the built-in article title is rewritten, and the article jumps to the outer chain, which is conducive to SEO. This theme has been copied for a long time, but it was stopped for a long time due to some reasons. Near
four hundred and eleven
zero
One year ago (2023-11-13)

Wordpress theme recommendation: share a wordpress Chinese theme Download: IPC theme

A Chinese wordpress theme originally created by Chinese people, which is a bit like a heterogeneous theme intuitively. However, this theme is made with reference to robin and other themes, which is absolutely original. This is also the author's first WP theme, so please keep the copyright information of the original author when using this theme. Let's introduce the use method and features of this theme
seven hundred and thirty-nine
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: