unfortunately ddos is not hacking, so there really isn't anything you can do to prevent it, other than getting more bandwidth, setting up null routes, getting better hardware etc. That depends on the attack of course, but it sounds like basic ddos which isn't software related (stack overflows...