The best way to prevent a dos attack is to try and hide you ip address. A4proxy would be a good start. But if you do get a dos attack just turn off you computer and go for a walk. Most script kidz don't have an attention span long enough to dos you for hours on end.