{"id":10302,"date":"2026-08-27T07:40:00","date_gmt":"2026-08-27T05:40:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=10302"},"modified":"2026-11-18T17:44:32","modified_gmt":"2026-11-18T16:44:32","slug":"what-truncating-an-ip-address-actually-anonymises","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/","title":{"rendered":"What Truncating an IP Address Actually Anonymises"},"content":{"rendered":"<p>Truncating an IP address reduces stored precision. For example, <code>203.0.113.45<\/code> becomes <code>203.0.113.0\/24<\/code>, removing the distinction between 256 possible IPv4 addresses. This establishes neither a group of 256 people nor an anonymous dataset.<\/p>\n<p>An IP address identifies a network endpoint used to exchange data. IPv4 and IPv6 are two address formats. A bit is a binary digit, either 0 or 1. A prefix is the retained beginning of an address; the number after the slash states how many bits it contains.<\/p>\n<p>Three questions matter: which bits remain, which other attributes are present, and which realistic means of identification are available to the relevant recipient? Prefix length answers only the first question.<\/p>\n<figure class=\"lw-diagram\"><img decoding=\"async\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/quality-10302-20261024.png\" width=\"1120\" height=\"580\" loading=\"lazy\" alt=\"Nested IPv4 ranges: one address at \/32, 256 possible addresses at \/24 and 65536 at \/16. These counts do not establish people or geographic precision.\"><figcaption>Each removed bit doubles the possible address range, not a verified group of anonymous people.<\/figcaption><\/figure>\n<h2>Address Space and People Are Different Quantities<\/h2>\n<p>An IPv4 address contains 32 bits. <code>\/24<\/code> means retaining the first 24 bits and setting the last eight to zero. The number of possible original addresses is <code>2\u2078 = 256<\/code>. The addresses below are documentation examples, not evidence of geographic location.<\/p>\n<table style=\"width:100%;border-collapse:collapse\"><thead><tr><th>Stored value<\/th><th>Possible original addresses<\/th><th>Interpretation limit<\/th><\/tr><\/thead><tbody><tr><td><code>203.0.113.45\/32<\/code><\/td><td>1<\/td><td>One address, not necessarily one household or person.<\/td><\/tr><tr><td><code>203.0.113.0\/24<\/code><\/td><td>256<\/td><td>An address range, with no guaranteed street or user count.<\/td><\/tr><tr><td><code>203.0.0.0\/16<\/code><\/td><td>65 536<\/td><td>A larger range, with no fixed geographic resolution.<\/td><\/tr><tr><td>IP field removed<\/td><td>No longer derivable from this field<\/td><td>Other attributes can still identify a person.<\/td><\/tr><\/tbody><\/table>\n<p>Network address translation (NAT) replaces internal addresses with a public address, allowing many devices to share that public address. Carrier-grade NAT can also share that address across customer connections. Conversely, one connection may receive different addresses over time. Mathematical address capacity therefore describes neither actual occupancy nor the number of distinct people in a dataset.<\/p>\n<p>Geolocation has no fixed relationship between prefix length and home location. Provider assignments, mobile networks, VPNs and database quality influence the result. MaxMind explicitly states that GeoIP data cannot reliably identify a particular household or street address. Truncation can change geographic reporting; retaining almost unchanged city-level results requires verification against the actual data.<\/p>\n<h2>A Plain Hash Does Not Remove Identification Risk<\/h2>\n<p>Pseudonymization replaces identifying details with substitute values. Identification may still be possible with additional information. Anonymity requires that identification is no longer reasonably possible in the relevant context.<\/p>\n<p>SHA-256 turns an address into a less readable but deterministic value: identical inputs produce identical hashes. IPv4 has only <code>2\u00b3\u00b2 = 4 294 967 296<\/code> possible addresses. Calculating the hash of each possible address and comparing it with the stored hash is therefore much easier than for a long random secret.<\/p>\n<p>ENISA documented practical attacks on SHA-256-pseudonymized IPv4 addresses in 2019. Runtime depends on hardware, implementation and the known candidate range. A claim that every ordinary machine builds the complete table in minutes goes beyond that evidence. The relevant conclusion remains: an unprotected hash is not reliable anonymization.<\/p>\n<p>A salt is an extra value added to the input before hashing. A publicly stored salt changes hash values but is not a secret key. A fixed salt prevents reuse of a pre-existing generic table while allowing a new table for the dataset. Random per-event salts hinder precomputation and direct linkage; known salts still allow candidate testing for each event. Hashing a truncated prefix does not reliably hide the prefix either: truncation makes the possible input space smaller.<\/p>\n<h2>IPv6 Prefixes Do Not Define Anonymity Groups<\/h2>\n<p>IPv6 addresses contain 128 bits. <code>\/64<\/code> is common for an individual subnet. A customer connection or site may receive multiple subnets within a <code>\/56<\/code> or <code>\/48<\/code>. RFC 6177 does not prescribe one universal assignment size for every site. Interface-identifier generation also varies; every device inventing a suffix is not a universal rule.<\/p>\n<p>Removing the lower 64 bits eliminates the interface portion stored there, while retaining the subnet prefix. A <code>\/56<\/code> or <code>\/48<\/code> can still identify a single customer site. Greater truncation can combine assignments, but the actual effect depends on allocation practice and additional data.<\/p>\n<p>Google&#8217;s familiar rule of zeroing the last 80 IPv6 bits belongs to legacy Universal Analytics IP masking and leaves a <code>\/48<\/code>. GA4 is different: Google states that IP addresses are used for location derivation at collection and discarded before logging or storage. This does not establish anonymity of the remaining GA4 data.<\/p>\n\n\n<!-- lw-flux-illu 10302-a3 -->\n<figure class=\"lw-illu\"><img src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/illustrationen\/flux-10302-a3-v2.webp\" width=\"1120\" height=\"630\" loading=\"lazy\" decoding=\"async\" alt=\"Many small cottages share one narrow lane, while one large estate owns several lanes of its own. Likewise, an IPv6 network prefix (the front part of the address) is not a fixed group of people.\"><figcaption>Many small cottages share one narrow lane, while one large estate owns several lanes of its own. Likewise, an IPv6 network prefix (the front part of the address) is not a fixed group of people.<\/figcaption><\/figure>\n\n\n<h2>Recognizing IPv4-Mapped IPv6 Properly<\/h2>\n<p>A server supporting both IPv4 and IPv6 (dual stack) may represent an IPv4 connection as <code>::ffff:203.0.113.45<\/code>. The IPv4 address occupies the lower 32 bits. Genuine binary truncation to IPv6 <code>\/48<\/code> removes those bits completely; the embedded IPv4 address does not survive intact.<\/p>\n<p>The practical problem is string manipulation or inconsistent treatment of equivalent representations. <code>::ffff:cb00:712d<\/code> and <code>0:0:0:0:0:ffff:cb00:712d<\/code> describe the same mapped address. A string-prefix check for <code>::ffff:<\/code> therefore misses valid forms. A parser reads the address according to its format and first recognizes the address type, then applies the appropriate rule:<\/p>\n<figure style=\"--cbb-digits:2\" class=\"cbb cbb--wrap cbb--numbers wp-block-code-beautifier-block-code\" data-lang=\"python\"><figcaption class=\"cbb-head\"><span class=\"cbb-lang\">Python<\/span><span class=\"cbb-actions\"><button type=\"button\" class=\"cbb-button cbb-button--wrap\" data-cbb-action=\"wrap\" aria-pressed=\"true\" title=\"Wrap long lines\"><svg aria-hidden=\"true\" focusable=\"false\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M2 4h12M2 8h9.5a2.5 2.5 0 0 1 0 5H8m0 0 1.5-1.5M8 13l1.5 1.5M2 12h3\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/svg><span class=\"cbb-sr\">Wrap long lines<\/span><\/button><button type=\"button\" class=\"cbb-button cbb-button--copy\" data-cbb-action=\"copy\" aria-label=\"Copy code\" data-cbb-status-done=\"Code copied to the clipboard.\" data-cbb-status-failed=\"Copying failed. The code is selected for copying with Ctrl+C or \u2318+C.\" data-cbb-status-noselect=\"Copying failed.\"><svg aria-hidden=\"true\" focusable=\"false\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><rect x=\"5.5\" y=\"5.5\" width=\"8\" height=\"8.5\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"\/><path d=\"M10.5 3.5V3A1.5 1.5 0 0 0 9 1.5H4A1.5 1.5 0 0 0 2.5 3v6.5A1.5 1.5 0 0 0 4 11h.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"\/><\/svg><span class=\"cbb-button-label\">Copy<\/span><\/button><\/span><\/figcaption><pre class=\"cbb-pre\" tabindex=\"0\" role=\"region\" aria-label=\"Code example: Python\"><code class=\"cbb-code language-python\" style=\"counter-reset:cbb-line 0;\"><span class=\"cbb-line\"><span class=\"cbb-keyword\">import<\/span> ipaddress\n<\/span><span class=\"cbb-line\">\n<\/span><span class=\"cbb-line\"><span class=\"cbb-keyword\">def<\/span> <span class=\"cbb-function\">mask_ip<\/span>(text, ipv4_prefix=<span class=\"cbb-number\">24<\/span>, ipv6_prefix=<span class=\"cbb-number\">48<\/span>):\n<\/span><span class=\"cbb-line\">    address = ipaddress.<span class=\"cbb-function\">ip_address<\/span>(text.<span class=\"cbb-function\">strip<\/span>())\n<\/span><span class=\"cbb-line\">    <span class=\"cbb-keyword\">if<\/span> <span class=\"cbb-function\">isinstance<\/span>(address, ipaddress.IPv6Address):\n<\/span><span class=\"cbb-line\">        <span class=\"cbb-keyword\">if<\/span> address.scope_id <span class=\"cbb-keyword\">is<\/span> <span class=\"cbb-keyword\">not<\/span> <span class=\"cbb-constant\">None<\/span>:\n<\/span><span class=\"cbb-line\">            <span class=\"cbb-keyword\">raise<\/span> <span class=\"cbb-function\">ValueError<\/span>(<span class=\"cbb-string\">'Scoped addresses are outside this example'<\/span>)\n<\/span><span class=\"cbb-line\">        address = address.ipv4_mapped <span class=\"cbb-keyword\">or<\/span> address\n<\/span><span class=\"cbb-line\">    prefix = ipv4_prefix <span class=\"cbb-keyword\">if<\/span> address.version == <span class=\"cbb-number\">4<\/span> <span class=\"cbb-keyword\">else<\/span> ipv6_prefix\n<\/span><span class=\"cbb-line\">    network = ipaddress.<span class=\"cbb-function\">ip_network<\/span>((address, prefix), strict=<span class=\"cbb-constant\">False<\/span>)\n<\/span><span class=\"cbb-line\">    <span class=\"cbb-keyword\">return<\/span> network.with_prefixlen<\/span><\/code><\/pre><span class=\"cbb-status\" role=\"status\"><\/span><\/figure>\n<p>All three mapped forms and <code>203.0.113.45<\/code> produce <code>203.0.113.0\/24<\/code> in this example. Invalid inputs are rejected. The defaults <code>\/24<\/code> and <code>\/48<\/code> illustrate the mechanism and are not universal privacy recommendations. The function expects one address from a trusted source, not an unchecked <code>X-Forwarded-For<\/code> list.<\/p>\n<h2>The Processing Stage Determines the Scope of Protection<\/h2>\n<p>Truncation at the recipient can minimize later storage even when the full address was processed earlier to establish the connection. Preventing disclosure of the full visitor address requires applying the transformation before that disclosure.<\/p>\n<p>For a genuine server-to-server request, the network peer normally sees the public outbound address of the server or its proxy. Visitor addresses can nevertheless be forwarded in payloads, URL parameters or headers. Truncating one field such as <code>client_ip_address<\/code> works only if no complete copy travels through another route. The destination API must also support truncated values meaningfully.<\/p>\n<p>A browser tag loaded directly from a vendor uses the browser&#8217;s network connection, including any VPN or proxy. A truncated payload parameter does not hide that connection address. An owned domain alone changes nothing: a DNS alias (CNAME) can still point to an external provider receiving the connection. The important boundary is an actual controlled intermediary and its forwarding behavior.<\/p>\n<h2>Anonymity Requires Assessment of the Whole Dataset<\/h2>\n<p>A truncated IP combined with timestamps, account IDs, cookie identifiers or unusual activity can remain identifiable. Conversely, a particular prefix length alone does not establish personal-data status for every recipient. Available additional information and realistic identification methods determine the assessment.<\/p>\n<p>In Case C-413\/23 P in 2025, the Court of Justice emphasized, under Regulation (EU) 2018\/1725, that pseudonymized information is not automatically personal data for every person. Processing context matters; existing transparency obligations at collection do not disappear. An IP mask does not replace that assessment.<\/p>\n<p>Useful documentation records purpose, prefix length, processing stage, remaining identifiers, recipients and retention periods. Address capacity must be described as a mathematical quantity, not a verified number of anonymous people. Depending on purpose, combining individual records into totals (aggregation), shorter retention or omitting the address altogether may provide additional protection.<\/p>\n<div class=\"lw-faq\"><h2>Questions and answers<\/h2>\n<h3>How large is an IPv6 \/48 range?<\/h3>\n<p>A <code>\/48<\/code> contains 256 possible <code>\/56<\/code> blocks and 65,536 possible <code>\/64<\/code> blocks. This is capacity arithmetic, not evidence of actual use, customer assignments or user counts. A <code>\/48<\/code> allocated entirely to one site can still distinguish that site after truncation.<\/p>\n<h3>What additional protection does HMAC provide?<\/h3>\n<p>HMAC calculates a hash-based value using a secret key as well as the input. Without that key, an ordinary hash candidate table cannot be computed. Key separation, access controls and limited validity are therefore significant safeguards. Possession of the key still enables candidate testing; a stable HMAC can also link events. HMAC supports pseudonymization but does not automatically guarantee anonymity or replace data minimization for every purpose.<\/p>\n<h3>Where can complete addresses remain stored?<\/h3>\n<p>Possible locations include web-server access and error logs, content delivery networks (CDNs), web application firewalls (WAFs), systems distributing requests between servers (load balancers), blocking tools and backups. Common Apache and nginx log formats include a remote address; the actual value depends on proxy configuration and log format. Truncation in an analytics application does not automatically modify these other stores. Each relevant processing stage needs an assessment of purpose, access and retention.<\/p>\n<h3>Why can removing the IP field be insufficient?<\/h3>\n<p>An account ID or another distinctive attribute can preserve identifiability independently of the IP address. Removing the field eliminates only that information source. Anonymity assessment covers all remaining attributes and possible linkages.<\/p><\/div>\n<div class=\"lw-quellen\"><h2>Sources<\/h2><ul><li><a href=\"https:\/\/support.google.com\/analytics\/answer\/2763052\" target=\"_blank\" rel=\"noopener noreferrer\">Google: Universal Analytics IP masking (legacy)<\/a><\/li><li><a href=\"https:\/\/support.google.com\/analytics\/answer\/11598602?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">Google: Regional data collection (GA4)<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc6177.txt\" target=\"_blank\" rel=\"noopener noreferrer\">RFC 6177: IPv6 address assignment<\/a><\/li><li><a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc4291\" target=\"_blank\" rel=\"noopener noreferrer\">RFC 4291: IPv6 addressing architecture<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc6598.txt\" target=\"_blank\" rel=\"noopener noreferrer\">RFC 6598: Shared address space and CGN<\/a><\/li><li><a href=\"https:\/\/docs.python.org\/3\/library\/ipaddress.html\" target=\"_blank\" rel=\"noopener noreferrer\">Python: ipaddress<\/a><\/li><li><a href=\"https:\/\/support.maxmind.com\/knowledge-base\/articles\/maxmind-geolocation-accuracy\" target=\"_blank\" rel=\"noopener noreferrer\">MaxMind: Geolocation accuracy<\/a><\/li><li><a href=\"https:\/\/www.enisa.europa.eu\/publications\/pseudonymisation-techniques-and-best-practices\" target=\"_blank\" rel=\"noopener noreferrer\">ENISA: Pseudonymisation techniques and best practices<\/a><\/li><li><a href=\"https:\/\/curia.europa.eu\/site\/upload\/docs\/application\/pdf\/2025-09\/cp250107en.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">Court of Justice: Case C-413\/23 P, 4 September 2025<\/a><\/li><li><a href=\"https:\/\/nginx.org\/en\/docs\/http\/ngx_http_log_module.html\" target=\"_blank\" rel=\"noopener noreferrer\">nginx: HTTP log module<\/a><\/li><li><a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/logs.html\" target=\"_blank\" rel=\"noopener noreferrer\">Apache: Log files<\/a><\/li><\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"<p>An IP prefix describes an address range, not a group of anonymous people. Examples explain truncation, hashes, IPv4-mapped IPv6 and why other identifiers and recipients matter.<\/p>\n","protected":false},"author":1,"featured_media":33174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[91261,91279],"class_list":["post-10302","post","type-post","status-publish","format-standard","hentry","category-data-privacy","tag-conversion-tracking","tag-prywatnosc-danych-pl"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What Truncating an IP Address Actually Anonymises | Lukas Wojcik<\/title>\n<meta name=\"description\" content=\"A \/24 covers 256 addresses, not 256 people. What truncation really achieves, why a hashed IPv4 maps back to one address, and how IPv6 differs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Truncating an IP Address Actually Anonymises | Lukas Wojcik\" \/>\n<meta property=\"og:description\" content=\"A \/24 covers 256 addresses, not 256 people. What truncation really achieves, why a hashed IPv4 maps back to one address, and how IPv6 differs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-27T05:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T16:44:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll5-10302-10302.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lukas Wojcik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lukas Wojcik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"What Truncating an IP Address Actually Anonymises\",\"datePublished\":\"2026-08-27T05:40:00+00:00\",\"dateModified\":\"2026-11-18T16:44:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/\"},\"wordCount\":1422,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll5-10302-10302.png\",\"keywords\":[\"Conversion Tracking\",\"Data Privacy\"],\"articleSection\":[\"Data Privacy\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/\",\"name\":\"What Truncating an IP Address Actually Anonymises | Lukas Wojcik\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll5-10302-10302.png\",\"datePublished\":\"2026-08-27T05:40:00+00:00\",\"dateModified\":\"2026-11-18T16:44:32+00:00\",\"description\":\"A \\\/24 covers 256 addresses, not 256 people. What truncation really achieves, why a hashed IPv4 maps back to one address, and how IPv6 differs.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll5-10302-10302.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll5-10302-10302.png\",\"width\":1200,\"height\":630,\"caption\":\"What Truncating an IP Address Actually Anonymises\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/data-privacy\\\/what-truncating-an-ip-address-actually-anonymises\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What Truncating an IP Address Actually Anonymises\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"Lukas Wojcik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"Lukas Wojcik\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Truncating an IP Address Actually Anonymises | Lukas Wojcik","description":"A \/24 covers 256 addresses, not 256 people. What truncation really achieves, why a hashed IPv4 maps back to one address, and how IPv6 differs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/","og_locale":"en_US","og_type":"article","og_title":"What Truncating an IP Address Actually Anonymises | Lukas Wojcik","og_description":"A \/24 covers 256 addresses, not 256 people. What truncation really achieves, why a hashed IPv4 maps back to one address, and how IPv6 differs.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-08-27T05:40:00+00:00","article_modified_time":"2026-11-18T16:44:32+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll5-10302-10302.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"What Truncating an IP Address Actually Anonymises","datePublished":"2026-08-27T05:40:00+00:00","dateModified":"2026-11-18T16:44:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/"},"wordCount":1422,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll5-10302-10302.png","keywords":["Conversion Tracking","Data Privacy"],"articleSection":["Data Privacy"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/","name":"What Truncating an IP Address Actually Anonymises | Lukas Wojcik","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll5-10302-10302.png","datePublished":"2026-08-27T05:40:00+00:00","dateModified":"2026-11-18T16:44:32+00:00","description":"A \/24 covers 256 addresses, not 256 people. What truncation really achieves, why a hashed IPv4 maps back to one address, and how IPv6 differs.","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll5-10302-10302.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll5-10302-10302.png","width":1200,"height":630,"caption":"What Truncating an IP Address Actually Anonymises"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/data-privacy\/what-truncating-an-ip-address-actually-anonymises\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/de\/"},{"@type":"ListItem","position":2,"name":"What Truncating an IP Address Actually Anonymises"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"Lukas Wojcik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"Lukas Wojcik"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/10302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=10302"}],"version-history":[{"count":6,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/10302\/revisions"}],"predecessor-version":[{"id":27457,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/10302\/revisions\/27457"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/33174"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=10302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=10302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=10302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}