
# Device firewall

The device firewall controls which domains your connected devices can reach. Use it to keep devices away from risky package marketplaces, unapproved registries, malware and phishing sites, and anything else you don't want reachable on work devices.

## How it works

Device Protection monitors network traffic on each device. When a device tries to reach a blocked domain, the request is stopped before it connects.

## Categories and domains

The **Websites** screen has 2 views:

* **Categories**: curated sets of domains that Noon maintains and keeps up to date, covering malware, scams and phishing, typosquatting, gambling, advertising and tracking, social media, and gaming. Each category bundles many domains under one policy, so you don't have to maintain your own.
* **Domains**: the individual domains you've added yourself.

## Set a policy on a category

1. Go to [**Devices** → **Settings** → **Websites**](https://app.noon.security/devices/settings/websites), and make sure the **Categories** view is selected.
2. Choose the category you want to configure.
3. Set its status to **Monitoring** (let requests through, but record the traffic) or **Blocking** (stop every request to a domain in the category).
4. Choose which user groups the policy applies to: all of them, or a specific group.

{% hint style="info" %}
Start a new category on Monitoring for a week, check the traffic it would have blocked, then switch it to Blocking. That way you see what you're about to break before you break it.
{% endhint %}

## Add a domain rule

A domain rule sets a policy on one domain you choose, outside the categories.

1. Open **Websites** and switch to the **Domains** view.
2. Click **Add domain**.
3. Enter the **Domain**, for example `example.com`, or a wildcard such as `*.example.com`.
4. Choose the **Mode**:
   * **Block** stops every request to the domain.
   * **Monitor** lets requests through and records the traffic.
5. Choose the **User group** the rule applies to, or keep **All groups**.
6. Optionally add a **Reason** so your team knows why the rule exists.
7. Save the rule.

The domain now appears in the **Domains** view with its mode, reason, and user group. Use **Search domains...** to find a rule, and the `⋮` menu on a row to edit or remove it.

### How domains match

* `example.com` matches `example.com` and `www.example.com` only. It doesn't match other subdomains such as `app.example.com`.
* `*.example.com` matches every subdomain at any depth, such as `app.example.com` and `eu.app.example.com`. It doesn't match `example.com` itself.
* To cover a domain and all its subdomains, add both `example.com` and `*.example.com`.
