First understand how things go wrong
Most websites are not attacked deliberately. Automated scanners visit random addresses on the internet day and night, looking for known weak spots. As soon as a vulnerability is made public somewhere, those bots go hunting for sites that have not yet installed the corresponding update. So you do not have to be an interesting target to become a victim — you only have to be behind.