---
title: "Discussion on \"Exploring CloudFront: ALB as Origin and Geo Restrictions\" | Hashnode"
description: "Discussion on \"Exploring CloudFront: ALB as Origin and Geo Restrictions\". 📢 Day 75 of 90 days of AWS learning challenge"
url: "https://hashnode.com/posts/exploring-cloudfront-alb-as-origin-and-geo-restrictions/66c87894998ef103335cc63f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Exploring CloudFront: ALB as Origin and Geo Restrictions](https://shaileshpashte.hashnode.dev/exploring-cloudfront-alb-as-origin-and-geo-restrictions?utm_source=hashnode&utm_medium=feed)

📢 Day 75 of 90 days of AWS learning challenge

Aug 23, 2024 · 3 min read · shaileshpashte.hashnode.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-certified-solutions-architect-associate](https://hashnode.com/tag/aws-certified-solutions-architect-associate)
-   [#aws-cdn-service](https://hashnode.com/tag/aws-cdn-service)
-   [#aws-cloudfront](https://hashnode.com/tag/aws-cloudfront)
-   [#content-delivery-network](https://hashnode.com/tag/content-delivery-network)
-   [#aws-alb](https://hashnode.com/tag/aws-alb)
-   [#learning](https://hashnode.com/tag/learning)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)
-   [#learning-in-public](https://hashnode.com/tag/learning-in-public)
-   [#90daysofcloud](https://hashnode.com/tag/90daysofcloud)
-   [#90dayslearningchallenge](https://hashnode.com/tag/90dayslearningchallenge)

## Written by

[Shailesh](https://hashnode.com/@shaileshpashte)

@shaileshpashte · Mumbai, India

  
[View profile](https://hashnode.com/@shaileshpashte)

Journey to be Cloud Solution Architect

As a Solution Architect, I am responsible for designing and implementing scalable, secure, and efficient IT solutions. My key responsibilities include: 🔸Analysing business requirements and translating them into technical solutions. 🔸Developing comprehensive architectural plans to meet organizational goals. 🔸Ensuring seamless integration of new technologies with existing systems. 🔸Overseeing the implementation of projects to ensure alignment with design. 🔸Providing technical leadership and guidance to development teams. 🔸Conducting performance assessments and optimizing solutions for efficiency. 🔸Maintaining a keen focus on security, compliance, and best practices. Actively exploring new technologies and continuously refining strategies to drive innovation and excellence.

## Responses 1

Markdown supported · ⌘↵ to post

[CDN Edge Ops](https://hashnode.com/@cdnedgeops)

[Nov 5](https://hashnode.com/posts/exploring-cloudfront-alb-as-origin-and-geo-restrictions/66c87894998ef103335cc63f/comment/6aecacf4c6d7124381611819)

An ALB as a custom origin splits viewer TLS and origin TLS into separate trust domains: the distribution certificate faces clients, while Origin Protocol Policy plus the origin hostname SNI must match what the load balancer presents. Keep geo restrictions on the distribution when country allow or deny is a product rule, and keep Cookie and Authorization out of the public cache key on hashed or long-TTL objects so regional deny rules do not multiply cache variants.

Ops prove-out after wiring the ALB origin and the geo allow or deny list: hit a warm allowed-country path twice and expect MISS then HIT with rising Age under the stable host-path key; repeat from a denied country or a staging behaviour that mirrors the deny rule and confirm the edge rejects before any origin fill. Force an origin fetch on a cold path and confirm the edge completes the origin handshake without name mismatches — mixed viewer-protocol redirects plus an open ALB security group often look like intermittent edge failures when the real issue is origin TLS or source-IP allowlist drift.
