CloudFront Geo Restrictions Not Working

1

On several of our CloudFront distributions we have restricted Singapore under Security / CloudFront geographic restrictions. When we first did so the traffic dropped off from almost 20 million requests a day to 10s of thousands a day. It did not go to zero. There was still a trickle coming from Singapore. Over the 8 weeks since, that trickle has been slowly creeping back up. It's now over 2 million a day. I don't understand why if we have a geo restriction set for that country why traffic is still geting through (and we are being charged for it based on Cost Explorer filtered on region Singapore). How do we completely stop the traffic?

질문됨 2달 전149회 조회
1개 답변
1

The geo-restriction feature in Amazon CloudFront is designed to block requests from specific geographic locations based on the IP address of the client making the request. However, it's important to understand that IP addresses can be shared or dynamically assigned, and some IP addresses can be associated with multiple geographic locations, including proxy servers or VPN services. This can lead to situations where some traffic from a restricted location can still slip through.

To effectively block unwanted traffic from restricted geographic locations with CloudFront, you should consider a multi-layered approach.

  1. First, implement IP blacklisting and rate limiting rules to block known offending IP addresses and limit the impact of unwanted traffic.
  2. Additionally, deploy a Web Application Firewall (WAF) solution like AWS WAF to inspect and filter traffic based on granular rules beyond just IP addresses.
  3. Continuously monitor your traffic patterns and adapt your blocking and filtering rules as needed to keep up with changes in IP assignments and traffic sources.

Combining these measures with CloudFront's geo-restriction feature can provide a more comprehensive solution to mitigate unwanted traffic from restricted locations.

Some useful resources:

profile picture
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인