---
title: "Network block (/24)"
description: "A network block is a group of addresses sharing the same first part; a /24 is 256 IPv4 addresses. How analytics uses blocks to keep addresses private."
url: https://ursy.com/wiki/network-block/
updated: 2026-11-26T15:39:45+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/network-block/
---

# Network block (/24)

> A network block is a group of addresses sharing the same first part; a /24 is 256 IPv4 addresses. How analytics uses blocks to keep addresses private.

**A network block is a group of internet addresses that share the same first part; a /24 is a block of 256 IPv4 addresses that share their first three numbers.** Analytics tools cut addresses down to a block so they can group traffic and place it roughly, without keeping the exact address of any one device. In URSY.com, the full address is never stored.

## What is a network block? {#what-is-a-network-block}

Every request to a website comes from an [IP address](https://ursy.com/wiki/ip-address/). An IPv4 address has four numbers, such as 203.0.113.57. The block notation, called CIDR, writes a slash and a number after an address. RFC 4632 explains that the number is [how many leading bits form the network part](https://www.rfc-editor.org/rfc/rfc4632.html). A /24 fixes the first 24 bits, the first three numbers, and leaves 8 bits free. That is 256 addresses: 203.0.113.0 to 203.0.113.255.

## What about IPv6? {#what-about-ipv6}

IPv6 addresses are 128 bits long, so blocks are bigger. A common unit is the /48, which fixes the first 48 bits. RFC 3177 once recommended a /48 as the default for an end site. [RFC 6177](https://www.rfc-editor.org/rfc/rfc6177.html) later said a single /48 default “is no longer recommended”, but the /48 is still a familiar size. Cutting an IPv6 address to its first 48 bits removes the part that points to one network inside a site and one device on it.

## Why do analytics tools cut addresses? {#why-do-analytics-tools-cut-addresses}

Two reasons: privacy and grouping.

- **Privacy.**  The ICO says the UK [GDPR](https://ursy.com/wiki/gdpr-eu/) includes [online identifiers such as IP addresses](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/personal-information-what-is-it/what-is-personal-data/what-are-identifiers-and-related-factors/), which may be personal data if they can tell one user from another. Keeping less of the address lowers that risk. See [UK GDPR](https://ursy.com/wiki/uk-gdpr/).
- **Grouping.**  A crawler or a company network often uses many addresses in one range. Grouping by block shows them as one source.

## Is this how Google Analytics did it? {#is-this-how-google-analytics-did-it}

Yes, in the old version. [Google](https://ursy.com/wiki/google/)’s help page says [Universal Analytics](https://ursy.com/wiki/universal-analytics/) IP anonymisation [set the last octet of IPv4 addresses and the last 80 bits of IPv6 addresses to zeros](https://support.google.com/analytics/answer/2763052), in memory, so the full address was never written to disk. That leaves a /24 for IPv4 and the first 48 bits for IPv6. The same page says that in Google Analytics 4, IP addresses are not logged or stored at all. Read [Google Analytics 4](https://ursy.com/wiki/google-analytics-4/).

## Why does it matter for search and AI bots? {#why-does-it-matter-for-search-and-ai-bots}

[Bots](https://ursy.com/wiki/bot-web-robot/) are checked by address. Google lets you verify [Googlebot](https://ursy.com/wiki/googlebot/) by matching the address to its [published IP ranges](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot), and OpenAI and Anthropic publish address lists for their bots too, such as [GPTBot](https://ursy.com/wiki/gptbot/) and [ClaudeBot](https://ursy.com/wiki/claudebot/). That check needs the full address for a moment. After it, the block is enough to group a crawler’s requests into visits and to see if one range is hammering your site. See [verified bots](https://ursy.com/wiki/verified-bots/), [AI crawler](https://ursy.com/wiki/ai-crawler/) and [search crawler](https://ursy.com/wiki/search-crawler/).

## What can a block still tell you? {#what-can-a-block-still-tell-you}

- Roughly where a request came from, often to a country.
- Which network sent many requests, for [rate limiting](https://ursy.com/wiki/rate-limiting/) or a [firewall](https://ursy.com/wiki/web-application-firewall/) rule.
- Whether a famous bot name came from that company’s published range.

### What can it not tell you? {#what-can-it-not-tell-you}

- Which device or person in the block sent it.
- Whether two requests from one block came from the same person. Offices, schools, mobile networks and homes share addresses.

## Common mistakes {#common-mistakes}

- **Thinking a block is anonymous by itself.**  It is less identifying, not nothing. Combine it with little else.
- **Keeping full addresses “just in case”.**  Old [server logs](https://ursy.com/wiki/server-logs/) can hold every full address for years. Set a [data retention](https://ursy.com/wiki/data-retention/) limit.
- **Blocking a whole /24 for one bad request.**  You may block real people or a real crawler sharing that range. A softer step is a challenge, such as a [CAPTCHA](https://ursy.com/wiki/captcha/) or a [managed challenge](https://ursy.com/wiki/managed-challenge/).
- **Treating a block as a person.**  Many people can share one.
- **Checking a bot after cutting the address.**  Verify first, then cut. A block is not enough to match a list.

## A worked example {#a-worked-example}

Addresses below are from the ranges set aside for documentation.

| Full address (used in memory only) | Block kept | Addresses in the block |
| --- | --- | --- |
| 203.0.113.57 | 203.0.113.0/24 | 256 |
| 203.0.113.201 | 203.0.113.0/24 (same block) | 256 |
| 198.51.100.9 | 198.51.100.0/24 | 256 |
| 2001:db8:4f2a:12:a1b2::7 | 2001:db8:4f2a::/48 | 2 to the power of 80 |

The first two requests group together. Neither full address is written anywhere.

## How to check it {#how-to-check-it}

Links marked Pro are in URSY Pro, opening in stages. The rest are free and live today.

1. Open your [server logs](https://ursy.com/wiki/server-logs/). If each line starts with a full address, as the [common log format](https://httpd.apache.org/docs/2.4/logs.html) does, decide how long you keep them. Our entries on [PECR](https://ursy.com/wiki/pecr/) and [cookieless analytics](https://ursy.com/wiki/cookieless-analytics/) cover the privacy side.
2. Take a bot address from the log and check it with our free [Verify an AI Bot](https://ursy.com/verify-ai-bot/) tool before you cut it. Read [reverse DNS bot check](https://ursy.com/wiki/reverse-dns-bot-check/) and [user agent](https://ursy.com/wiki/user-agent/).
3. See which AI bots your rules let in with the free [AI Bot Checker](https://ursy.com/ai-bot-checker/) and [Robots.txt Checker](https://ursy.com/robots-txt-checker/). A block rule in a firewall is stronger than [robots.txt](https://ursy.com/wiki/robots-txt/), so use it with care. See [block AI crawlers](https://ursy.com/wiki/block-ai-crawlers/).
4. Check your own site’s headers with the free [HTTP Header Checker](https://ursy.com/http-header-checker/). If a [CDN](https://ursy.com/wiki/cdn/) sits in front, the address your origin sees may be the CDN’s, not the visitor’s.
5. Group requests by block and look for one range taking a large share. The [scraper and flood detector](https://ursy.com/pro/scraper-and-flood-detector/) (Pro) does this. Read [DDoS attack](https://ursy.com/wiki/ddos-attack/) and [bot score](https://ursy.com/wiki/bot-score/).
6. See every bot check by block in the [bot verification log](https://ursy.com/pro/bot-verification-log/) and impostors in the [fake bot detector](https://ursy.com/pro/fake-bot-detector/) (both Pro). Set allow or block per bot with the [bot rules manager](https://ursy.com/pro/bot-rules-manager/) (Pro).
7. Upload a log to the [log file analyser](https://ursy.com/pro/log-file-analyser/) (Pro) to see bots by block without keeping the full addresses in the report.
8. Read countries from blocks in [countries and devices](https://ursy.com/pro/countries-and-devices/) (Pro), and count people without [cookies](https://ursy.com/wiki/cookie/) in [cookie-free analytics](https://ursy.com/pro/cookie-free-analytics/) (Pro).

## What URSY.com counts {#what-ursy-counts}

A network block is the first three parts of an IPv4 address (a /24, 256 addresses) or the first 48 bits of IPv6. The full address is never stored. The bot check uses the full address in memory only; then it is cut to the /24 block. A machine visit is the same bot name from the same block, with a new visit after 30 minutes of quiet. Country comes from the CDN’s location of the address. We keep no full IP addresses, do no fingerprinting and set no cookies from the counter. Full rules: [how URSY.com counts](https://ursy.com/methodology/).

## Questions {#questions}

### Is a /24 the same as a “Class C”? {#is-a-24-the-same-as-a-class-c}

In size, yes. RFC 4632 lists /24 as 256 addresses and calls it “legacy Class C”. Classes are no longer used for routing.

### Can a network block identify me? {#can-a-network-block-identify-me}

On its own it points to a range of 256 addresses, not one device. Combined with other data it could narrow things down. That is why our methodology lists what we never keep: full IP addresses, fingerprints, what people type, cookies from the counter and query strings.

### Why /48 for IPv6 and not /64? {#why-48-for-ipv6-and-not-64}

Our methodology uses the first 48 bits. That keeps less than a /64 would, and it matches what Universal Analytics kept when it zeroed the last 80 bits.

### Does URSY.com’s visitor code use the full address? {#does-ursy-coms-visitor-code-use-the-full-address}

Our methodology says the daily visitor code is made from a random daily secret, the network address and the browser name, as a one-way code that cannot be turned back. The full address is never stored.

## Related words {#related-words}

- [UK GDPR](https://ursy.com/wiki/uk-gdpr/)
- [Data retention](https://ursy.com/wiki/data-retention/)
- [Verified bots](https://ursy.com/wiki/verified-bots/)
- [Rate limiting](https://ursy.com/wiki/rate-limiting/)
- [DNS](https://ursy.com/wiki/dns/)
- [Edge cache](https://ursy.com/wiki/edge-cache/)
- [Origin server](https://ursy.com/wiki/origin-server/)
- [GPTBot](https://ursy.com/wiki/gptbot/)
- [All privacy law words](https://ursy.com/wiki/topics/privacy-law/)
- [All security words](https://ursy.com/wiki/topics/security-hosting/)

## Sources {#sources}

- [RFC 4632: Classless Inter-domain Routing (CIDR)](https://www.rfc-editor.org/rfc/rfc4632.html), checked 24 November 2026
- [RFC 6177: IPv6 Address Assignment to End Sites](https://www.rfc-editor.org/rfc/rfc6177.html), checked 24 November 2026
- [Analytics Help: IP masking in Google Analytics](https://support.google.com/analytics/answer/2763052), checked 24 November 2026
- [ICO: What are identifiers and related factors?](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/personal-information-what-is-it/what-is-personal-data/what-are-identifiers-and-related-factors/), checked 24 November 2026
- [Google Search Central: Verifying Googlebot and other Google crawlers](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot), checked 24 November 2026
- [Apache HTTP Server: Log files](https://httpd.apache.org/docs/2.4/logs.html), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
