# Firehol Ip Blocklists Scraper (`b2b_lead_generation/firehol-ip-blocklists-scraper`) Actor

Extract aggregated malicious IP and CIDR ranges from the FireHOL level1 blocklist, or check specific IP addresses against the feed. Run a full list pull or instant IP lookup, then download your structured results in JSON, CSV, or Excel.

- **URL**: https://apify.com/b2b_lead_generation/firehol-ip-blocklists-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## FireHOL IP Blocklists Scraper

![FireHOL IP Blocklists Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/firehol-ip-blocklists-scraper-cover.png)

Collect CIDR entries from the public FireHOL Level 1 IP blocklist and save them as structured dataset records. Use full-list mode to retrieve the available CIDR entries or lookup mode to check IP addresses and CIDR ranges against the list.

### What This Actor Does

This actor collects IP network ranges from the FireHOL Level 1 netset and organizes them into structured records.

You can retrieve the full list or check specific IP addresses and CIDR ranges for matches. Results are saved to an Apify dataset and can be exported as JSON, CSV, or Excel.

### Key Features

- Collect CIDR entries from the FireHOL Level 1 blocklist
- Check individual IP addresses against the collected ranges
- Match IP addresses within CIDR networks
- Identify whether supplied IPs match listed networks
- Include collection timestamps
- Export structured results for security research and analysis

### Modes

**Full List (`full_list`):** Collects CIDR entries from the FireHOL Level 1 netset, with the number of saved records controlled by `maxItems`.

**Lookup (`lookup`):** Checks supplied IP addresses and CIDR ranges against the collected list. Each input receives a result record. Domain names cannot be resolved through this mode and are returned with `matched: false` and an explanatory message.

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `full_list` | Select `full_list` or `lookup` mode. |
| `lookupValues` | array | `[]` | IP addresses, CIDRs, or domains to check in lookup mode. |
| `maxItems` | integer | `100` | Maximum number of successful records to save. |
| `userAgent` | string | `ActorResearch/1.0` | User-Agent value used for requests. |
| `timeoutSecs` | integer | `300` | Overall run time budget in seconds. |
| `requestTimeoutSecs` | integer | `30` | Timeout for an individual request. |
| `proxyConfiguration` | object | `useApifyProxy: false` | Optional proxy configuration. |

### Input Examples

**Full List Mode**

```json
{
  "mode": "full_list",
  "lookupValues": [],
  "maxItems": 100,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

**Lookup Mode**

```json
{
  "mode": "lookup",
  "lookupValues": [
    "0.0.0.1",
    "8.8.8.8",
    "1.10.16.5"
  ],
  "maxItems": 100
}
```

### Output Examples

**Full List Record**

```json
{
  "cidr": "0.0.0.0/8",
  "source": "FireHOL",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

**Lookup Record**

```json
{
  "cidr": "0.0.0.0/8",
  "source": "FireHOL",
  "lookupValue": "0.0.0.1",
  "matched": true,
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `cidr` | IP network range collected from the FireHOL list. |
| `source` | Source name, `FireHOL`. |
| `lookupValue` | Supplied value checked in lookup mode. |
| `matched` | Indicates whether the lookup value matches a listed network. |
| `scrapedAt` | Timestamp indicating when the record was saved. |

Lookup-specific fields are included in lookup records.

### Use Cases

- **Firewall rule preparation:** Export FireHOL CIDR ranges for firewall and network security workflows.
- **Threat intelligence enrichment:** Check whether an IP address belongs to a listed network range.
- **Security research:** Analyze aggregated IP blocklist coverage in a structured dataset.
- **Network investigation:** Review IP addresses against known blocklist entries.
- **Analyst exports:** Save CIDR records in JSON, CSV, or Excel for offline review.

### Frequently Asked Questions

**What is the FireHOL Level 1 blocklist?**

It is an aggregated IP blocklist maintained by the FireHOL project. Its Level 1 list provides network ranges intended for use in IP filtering and security workflows.

**What is the difference between full-list and lookup mode?**

Full-list mode collects CIDR entries from the feed. Lookup mode checks supplied IP addresses or CIDR ranges against those entries and returns a record for each input.

**What does the `matched` field mean?**

It indicates whether the supplied lookup value matches a network range in the collected FireHOL list.

**Can I export the results?**

Yes. The Apify dataset can be exported in JSON, CSV, or Excel format.

### Trademark Notice

FireHOL and its related names and trademarks belong to their respective owners. This actor is an independent tool and does not imply affiliation, sponsorship, or endorsement by FireHOL or its owners.

### Is Web Scraping Legal?

This actor collects publicly accessible IP blocklist data without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source project's policies and licences.

- **Personal Data:** IP addresses may be considered personal data in certain circumstances. Follow applicable privacy requirements, including GDPR and CCPA where relevant.
- **Copyright and Licensing:** FireHOL and its upstream blocklist sources may have different licensing and attribution requirements. Review the applicable licences before redistributing or reusing collected data.
- **Platform Terms and Rate Limits:** Respect the source's terms, usage policies, and any published request limits.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional about your intended use.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

What to scrape. Full list emits FireHOL level1 netset CIDRs. Lookup checks IPs/CIDRs against that netset locally.

## `lookupValues` (type: `array`):

IPs/CIDRs/domains to check in lookup mode. Empty with full_list emits the whole list (capped by maxItems).

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `userAgent` (type: `string`):

Identify your scraper

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it. FireHOL usually works without a proxy.

## Actor input object example

```json
{
  "mode": "full_list",
  "lookupValues": [],
  "maxItems": 100,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_lead_generation/firehol-ip-blocklists-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("b2b_lead_generation/firehol-ip-blocklists-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call b2b_lead_generation/firehol-ip-blocklists-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/firehol-ip-blocklists-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wN5RhlT7zeTdUbNIb/builds/0esCP3WtczPV7ro9y/openapi.json
