How to safely host a server

What precautions can I take to make sure things like Ddossing doesn't happen, or my computer getting hacked, ect?
Was this page helpful?