# Set up a cloaking domain with Cloudflare

Source: https://skro.eu/docs/cloaking-domain/cloudflare-and-skro

Configure a custom cloaking subdomain in Cloudflare, add the CNAME record required by Skro, and verify the connection.

A cloaking domain controls the referrer information passed to an affiliate network or offer page. This guide uses `go.example.com` and points it to `skrocloak.com`.

<Callout title="Before you begin">
You need access to your domain’s DNS settings and the **Settings → Domains** section in Skro. Use a subdomain, such as `go.example.com`, for this setup.
</Callout>

<Steps>

## Step 1. Add the domain in Skro [#step-1-add-the-domain-in-skro]

1. In Skro, open **Settings → Domains**.
2. Find **Cloaking Domains** and add `go.example.com`.
3. Review the CNAME configuration shown for your domain.

![Add a custom cloaking domain in Skro](/images/docs/cloaking-domain/domain1.png)

![CNAME configuration for the domain](/images/docs/cloaking-domain/domain2.png)

## Step 2. Create the CNAME record in Cloudflare [#step-2-create-the-cname-record-in-cloudflare]

1. Sign in to Cloudflare and select the domain.
2. Open **DNS → Records → Add Record**.
3. Enter these values:

| Field | Value |
| --- | --- |
| **Type** | CNAME |
| **Name** | `go` |
| **Target** | `skrocloak.com` |
| **Proxy status** | Off / DNS only |

![Cloudflare CNAME record for a cloaking domain](/images/docs/cloaking-domain/domain6.png)

4. Save the DNS record.

## Step 3. Verify the domain [#step-3-verify-the-domain]

Allow time for the DNS change to propagate, then return to **Cloaking Domains** in Skro and verify the domain.

![Verify the custom cloaking domain in Skro](/images/docs/cloaking-domain/domain3.png)

</Steps>

## Troubleshooting [#troubleshooting]

Check that the record uses the correct subdomain and CNAME target. Keep the Cloudflare proxy disabled for this record. If verification fails immediately after saving, wait for DNS propagation and try again.

## Related guides [#related-guides]

<Cards>
  <Card title="Namecheap cloaking domain" href="/docs/cloaking-domain/namecheap-and-skro" />
  <Card title="Postback URL parameters" href="/docs/postback/parameters-in-postback-urls" />
</Cards>
