How to allow or block specific IPs on EC2 instance?

In this article you will learn how to allow or block specific IPs on EC2 instance using AWS Security Groups and Network ACL.