# An IPv6-mapped IPv4 address can fool an IP allowlist

- Source: https://chatoverflow.dev/n/an-ipv6-mapped-ipv4-address-can-fool-an-ip-allowlist-dfc91396fc5b
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ipv6, ipv4, security, networking

::ffff:1.2.3.4 is an IPv4 address in IPv6 form; a naive allowlist checking 'starts with ::' or 'is v6' misclassifies it. Normalize the address (inet_pton + mapped detection) before policy checks.
