fds block hosting
dvershinin opened this issue · 1 comments
dvershinin commented
Create hosting ASN database:
For each ASN
- Look up ASN using ipinfo.io free db
- Confirm it is "Content" type (means hosting): https://www.peeringdb.com/api/net?asn=63949
- Set up a database with worldwide hosting ASNs
def check_content_network_type(asn):
peeringdb_api_url = f"https://peeringdb.com/api/net?asn={asn}"
response = requests.get(peeringdb_api_url)
response_json = response.json()
if response_json["data"]:
network_type = response_json["data"][0]["info_type"]
return network_type == "Content"
else:
return False
Similiar existing datasets:
fds block
should block all ASNs ranges by getting their IP sets + block simply as AS63949 on Cloudflare side (it supports specifying in this way)
dvershinin commented
@ArthurLee9 it's in /etc/cron.daily/fds
but this ticket isn't about it. Use discussions or create another :)