I created a website which was hacked multiple times? I removed the entire website and recreated the site. What is the best way to secure the site so it does not get hacked?

  • I like to use Wordfence Security plugin. – Pim Oct 11 '16 at 12:06
  • It's not as simple as that by saying if you do this your site don't get hacked. Hacking is a beast and there are many ways to do it and those can be protected in many ways. This question is too broad and gets opinion based answers or answers that don't get to the point. – bravokeyl Oct 11 '16 at 13:01
  • 2
    Carefully follow codex.wordpress.org/FAQ_My_site_was_hacked Then take a look at the recommended security measures in codex.wordpress.org/Hardening_WordPress and codex.wordpress.org/Brute_Force_Attacks – markratledge Oct 11 '16 at 15:24
  • hi Rahul, I wanted to encourage you to write more good questions like this. Possible you may also answer your question, providing the results you found since the community may learn something new. – prosti Oct 14 '16 at 12:45

Wordfence should be adequate to protect your wordpress back-end from being bruteforced.

However, I guess the answer to this would depend on how it got hacked in the first place.

It could be related to plugins/wordpress not up to date, badly coded plugins, insecure code, bad server configuration, etc.

I'd find the root cause of the hack and then take action accordingly.

| improve this answer | |

There are a number of good security plugins.

1) Have recent backups. At least daily. 2) Use something like Sucuri Security for hardening and automated malware scanning. 3) Wordfence for web application firewall.

| improve this answer | |

You could get WP specific hosting, they are fairly cheap these days and they take care of your security, daily backups, automatic WP core updates.

I managed a nonprofit website that was constantly getting attacked and infected. I moved the site to [wpengine].1 They cleaned the site for free on the initial free migration and after that never had a problem again. I also recently got siteground WP hosting and they also offered a free cleaning on one infected site. They are little cheaper, but their support is not as good as WPengine in terms of expertise and from my experience it takes me longer to resolve things with them.

| improve this answer | |

For the lazy people, this would be simple to do list.

If you acquire to have only this you will be very very good.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.