AWS Web Application Firewall (WAF) can be used to protect CloudFront distributions by inspecting and managing requests from the web using specific ACL configurations. This can be configured to meet the need of each individual application, but before that can be done, it must be enabled. For more information, see the AWS Documentation.
In AWS Console -
In Terraform -