If you mean that you need a protection for DDoS-attack, i would say you have to rent a server, hosted by providers like OVH etc. They have a very well DDoS protection. If you just have little Attacks, you could use a Software, just google it, there are a few good softwares
MfG Trotex
Sorry for my bad english, not enough time for GTranslate