This CloudFormation template creates a network ACL with ingress and egress rules to block traffic for specific ip addresses (x.x.x.x)

CloudFormation Template