Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

What is ASN blocking, and when should I use it?

An ASN (Autonomous System Number) identifies a network operator on the internet, such as an internet service provider, a mobile carrier, or a cloud hosting company. ASN blocking rejects requests from every IP address in the networks you list.

Why it is useful

Much automated attack traffic comes from rented servers at a handful of hosting and cloud providers. Blocking those networks can remove a large volume of bot traffic with a short list, without chasing thousands of individual IPs.

Where to configure it

Aegisify WAF → Abuse & Bots → Source and Behavioral Intelligence → ASN blocks (Pro). Enter one ASN per line in the form AS12345, including the AS prefix.

Requirements

ASN blocking needs a MaxMind MMDB provider with an ASN database. Cloudflare headers provide country only, not ASN. See Geo/ASN provider.

Risks

  • Cloud networks also host legitimate services: monitoring tools, payment webhooks, search crawlers, and your own integrations.
  • VPN and corporate networks may route real users through hosting ASNs.
  • Mobile carriers should almost never be blocked; they serve huge numbers of real people.

A careful approach

Identify the networks behind attacks using the logs, block one ASN at a time, and monitor for side effects. Allowlist any trusted service that breaks.

Related: ASN blocking enforcement, Country blocking.

2026-12-01T03:52:06+00:00January 12th, 2026||

Find this article interesting, please share.