IP Subnet Counter (/24, /16) for Logs

Paste IPv4 addresses (or raw log lines containing IPs) to group them by /24 and /16 subnets with counts.

/24 Subnets


        

/16 Subnets


        

Finding Botnets & Scrapers with IP Subnet Aggregation

Modern scrapers, credential-stuffing bots, and DDoS sources rarely attack from a single IPv4 address. Instead, they rotate across dozens of IPs inside the same /24 (256 addresses) or /16 (65,536 addresses) hosting block assigned to a cloud provider or ISP. Blocking individual IPs one by one is ineffective - what you need is to spot which subnets account for the bulk of suspicious traffic.

How the IP Subnet Counter Works

Paste any list of IPv4 addresses - or even raw Nginx, Apache, or firewall log lines - into the input box. The tool automatically extracts every valid IPv4 address, optionally deduplicates identical IPs, and groups them by:

  • /24 Subnets (Class C blocks, e.g. 156.243.214.0/24): Groups addresses sharing the first three octets, sorted from highest hit count to lowest.
  • /16 Subnets (Class B blocks, e.g. 156.243.0.0/16): Groups addresses sharing the first two octets to reveal broader provider or AS-level waves.

Practical Log Analysis & FAQ

  • Should I keep "Deduplicate IPs" checked? Keep it checked when you have raw access logs with repeated hits from the same IP and want to count how many distinct IPs appeared per subnet. Uncheck it if you want total raw request volume per subnet.
  • Can I paste full log lines directly? Yes. You do not need to strip timestamps, HTTP paths, or user-agents first - the parser extracts valid IPv4 addresses anywhere on each line.
  • How do I block a noisy /24 in Nginx or UFW? Once you confirm a subnet belongs to abusive bots (and not legitimate crawlers like Googlebot), you can add deny 156.243.214.0/24; in Nginx or ufw deny from 156.243.214.0/24.
  • Is my log data uploaded? No, all parsing and aggregation run 100% locally in your browser.
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy