ASN Blocking

Block a whole network by its AS number

Attackers rotate IP addresses all day, but they rarely change networks. Every IP on the internet belongs to an Autonomous System (AS), like a hosting provider or an ISP. With NOC you can block or challenge a whole network by its AS number in one line.

Free 14-Day Trial
No credit card required. Included for every site.
Block or challenge any network by AS number
Mark networks that must never be blocked
Works with datacenter, VPN and Tor rules
Visitor network passed to your server, if you want it

IPs change, networks rarely do

Blocking a scraper by IP is a game of whack-a-mole: it comes back from the next address in the same range a minute later, and a network can own hundreds of ranges that change over time. If a cheap VPS provider keeps sending you credential stuffing, one AS entry covers every address it has, including the ones it adds next month.

Good to know

Datacenters, done for you

Want to challenge all cloud and hosting providers? Datacenter blocking already covers more than 50 of them.

Search engines are safe

Verified search engines are never blocked, even if their network is on your list.

Network to your server

NOC can add a NOC-Client-ASN header to requests sent to your server, so your app can use the network too.

Settings

AS rules live in the Datacenters tab of each site.

Networks to block
Any AS numbers, like AS12345 AS67890. Their visitors get the action you choose.
Networks to always allow
AS numbers that are never blocked by the datacenter and ASN rules. Useful for your payment provider, uptime monitor or office network.
Which pages and action
The whole site, only login, signup and admin pages, or your own paths. Block, CAPTCHA or invisible CAPTCHA.

Automate it with the API

Set blocked and allowed networks for any site.

Challenge two networks on login, signup and admin pages
curl "https://my.noc.org/api?apikey=YOUR_API_KEY&action=cdn/datacenters/set&website=example.com&enabled=true&scope=sensitive&block_asns=AS12345,AS67890&block_response=captcha"

Full API reference →

Frequently asked questions

Any IP lookup tool shows the AS number of an address. With the SIEM integration, Trunc tags every request with its network for you.

You can, but it blocks every customer of that ISP. For residential networks, a CAPTCHA is usually a better choice than a block.

Learn the basics: What is an IP address? · What is geo-blocking?

Related features

Security that works, at a price that makes sense

$5per domain per month.

Get access to our full suite of services, including DNS, WAF/CDN and Monitoring, or use only what you need. Our WAF/CDN operates on a distributed anycast network with over 20 data centers, delivering exceptional global performance.

Free 14-Day Trial