There are quite a few different methods that can be employed to improve the security of your website and prevent a compromise. Some of them are quite easy and lightweight while others are more cumbersome and come with drawbacks to ease of use and functionality. As a website owner, the decision is ultimately up to you on what level of risk reduction is best for you and your visitors.