Here are some precautions you can implement to prevent hackers from breaking into your website:
Back up all of your files and data.
Don't use generic usernames, and change your password
Keep the comment section safe
Update all programmes regularly and avoid adding unused files to your website's web root
Update Your Knowledge of Security and Bug Fix Releases
Go with a dedicated or cloud server upgrade.