# Check Domain Reputation

> Check whether a domain is known to be harmful.

- ID: `check_domain_reputation`
- Type: Block
- Category: [Network](https://inventor.bot/docs/reference/blocks/network.md)

> Checks the whole domain, not a specific page. This filter is not perfect, please only use it as a first check.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `url_or_domain` | yes | Link or domain to check. | e.g. `"https://example.com/page"` |
| `filter` | yes | What to check the domain for. | `"Malware"`, `"Malware and adult content"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `flagged` | Whether the domain is flagged. | e.g. `"false"` |
| `domain` | Domain that was checked. | e.g. `"example.com"` |

**Example**

```go
checkDomainReputation := check_domain_reputation(Args{url_or_domain: "https://example.com/page", filter: "Malware"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Flagged: " + checkDomainReputation.flagged,
})
```