I would suggest reading step by step tutorials that are published. To do so, go to your favorite web search engine and enter "Preventing Web Site Defacements" and I'm sure you can find a number fo step by step tutorials. I would also like to suggest the SAN's publication which I have attached. Hope it helps.