How to block bots or DDOS attacks?

hey Seif,

i wrote an in depth response to this question some time ago, and its applicable here:

If you have specific questions, please do let us know and we can try to assist.