Block IP trough Firewall

I had recent attacks on my server and so I was searching on how to add an IP drop with my firewall. On my Sites I have a security system that blocks already many things but unfortunately not all. And so here I show you an example on how to do it (at least how I did it).