How to clean a hacked wordpress site

后端 未结 3 1840
情话喂你
情话喂你 2021-01-29 04:49

I have developed a relative simple website in wordpress and actually, it resides in a subdomain of my primary host as it\'s still under construction. I am not sure if I have a h

相关标签:
3条回答
  • 2021-01-29 05:28

    I would suggest just extracting the data for the posts and setting it up from scratch. You can find this in Tools-> Export

    0 讨论(0)
  • 2021-01-29 05:36

    Two ways come to mind:

    1. Automatically: Install WordFence plugin it might do the trick check it out here /if you can access the backend of course/

    2. Manually: If you have access to the apache error logs you can check out at which file the error occurs and open it/Or sort the files by modification date but you've probably edited them after it happened so i'm not sure if it will work/, from what i've seen they put the code either way right in the document so that you'll have to scroll a lot to the right to see it or way down so that normally you won't pay attention

    0 讨论(0)
  • 2021-01-29 05:37

    Since it's a simple website, it can be easy to recover.

    The first thing I'll recommend is to download a copy of the database (in case you have much content to recover)

    Look for codes that you didn't write in the theme you made(also applies to plugins). Install a fresh copy of WordPress and add the theme you were developing. Add fresh copies of plugins.

    You should be okay with that. Maybe you can start using some kind of versioning like Git (Bitbucket has free private repositories).

    Also look for security-related plugins in the WordPress plugins repository.

    0 讨论(0)
提交回复
热议问题