Hey there! I just wanted to ask if you ever have any problems with hackers?

My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no back up.
Do you have any methods to prevent hackers?