A web application uses an HTTP API behind CloudFront. Which method is the best way to prevent clients from bypassing WAF protections by calling the API origin directly?

Answer

Restrict origin access using CloudFront origin access controls and allow the origin only from CloudFront

Explanation

Origin access controls ensure the origin is reachable only through CloudFront. This prevents direct-to-origin bypass of WAF logic.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list