Keep your self updatedYou might have many different programs and script that your website is using. You should always make sure that your script is the latest possible since hackers tend to use old scripts and codes. Some script never updates and you should try to avoid them if you see the script has no one that takes care and updates anymore.
Also search for the script name and hacker or ?my xxx got hacked? this will give you an idea about how easy it is to hack your script.
Most script has an email list that you should subscribe to and then you will know when it is time to update your script.