How to prevent DOS attack

Can anyone recommend me a best way to prevent Dos attack without using hardware on both Linux and windows platform?

Thanks.

 

 

 

 

Top