Im not actively maintaining this repository im not going to maintain it anymore due to how asns databases works which makes it almost impossible to block all hosts asn without blocking residential isp without wasting so much hours verifying potential hosts.
This repository maintains a collection of Autonomous System Numbers (ASN) specifically for blocking datacenter ASNs, which can be instrumental in mitigating unwanted or non-human traffic to your service. Regularly updated, this list is compatible with Cloudflare's Web Application Firewall (WAF), allowing for efficient blocking of traffic from these datacenter sources.
To employ this list with Cloudflare's WAF, execute the following steps:
- Clone or download this repository to your local machine.
- Edit the
asn-(1-4).txt
files to append the ASNs you aim to block. - Sign in to your Cloudflare account and proceed to the firewall settings.
- Click on "Firewall Rules", then "Create Firewall Rule".
- Choose "ASN" as the trigger for your rule.
- Copy and paste the contents from
ASN(1-4).txt
into the relevant fields. - Save and activate your firewall rules.
Contributions are welcome! If you have datacenter ASNs to add, please submit a pull request. Your input is invaluable in refining this resource.
This list is provided 'as is' and is not a comprehensive solution for blocking all datacenter ASNs. It should be used as a foundational tool in conjunction with other security measures. Use at your own discretion.
Special thanks to NorthernSide and all contributors focused on enhancing datacenter ASN blocking.