Server IP Addresses

repository·master·Indexed 42 days ago

https://github.com/jhassine/server-ip-addresses

A daily-updated list of IP address ranges and CIDR blocks used by data centers and cloud service providers, including AWS, Azure, GCP, and CloudFlare. Provided in CSV and text formats to help developers detect or limit traffic originating from servers.

Tokens
420
Snippets
2
Records
3
Agent score
3%

What's inside server-ip-addresses

  1. Access server IP address ranges in CSV or text formats

    master

    The project provides two daily-updated data formats for identifying IP addresses and CIDR blocks used by data centers, cloud providers, and servers. Use these lists to detect or limit traffic originating from non-human (server) sources.

    • CSV format: Contains detailed information about the IP ranges.
    • Text format: Contains only the CIDR blocks, suitable for simple firewall rules or prefix matching.
    # CSV format (detailed)
    https://raw.githubusercontent.com/jhassine/server-ip-addresses/master/data/datacenters.csv
    
    # Text format (CIDR blocks only)
    https://raw.githubusercontent.com/jhassine/server-ip-addresses/master/data/datacenters.txt
  2. Configure the app service via docker-compose.yml

    master

    The app service is built from the local directory and requires specific volume mounts to function correctly. To ensure the application can access the data and the generation script, mount the following volumes:

    • ./generate-csv.sh to /app/generate-csv.sh with ro (read-only) permissions.
    • ./data to /app/data to provide access to the IP address data files.
    services:
      app:
        build: .
        volumes:
          - ./generate-csv.sh:/app/generate-csv.sh:ro
          - ./data:/data