Connecting to Cloudflare

  1. Home
  2. Hosting
  3. General
  4. Connecting to Cloudflare

Connecting to Cloudflare

This guide explains how to connect your purely.website hosting account to Cloudflare using an API token. It covers creating a new token with the required Zone:Zone:Edit permissions, editing an existing token to grant these permissions, adding the token to your hosting account, and assigning it to a domain for automatic DNS synchronisation.

Setting up your Cloudflare token

  1. Log in to your Cloudflare account.
  2. Navigate to API Tokens and click Create Token.
  3. Click Use Template next to Edit Zone DNS.

Required Permissions

In the permission rows, ensure the following is included:

  • First dropdown: Zone
  • Second dropdown: Zone
  • Third dropdown: Edit
  1. Under Zone Resources, choose a specific zone, or allow access to all domains in your account.
  2. (Optional) Set a TTL if required.
  3. Click Continue to Summary, then Create Token.
  4. Copy the token when it is shown, it will not be displayed again.

Editing an existing API token – granting Edit permission under Zone

Should you wish to modify an existing API token to include the correct permissions:

  1. Go to the API Tokens page: https://dash.cloudflare.com/profile/api-tokens
  2. Locate the token you wish to modify. Click the three dots (⋯) next to the API token.
  3. Select Edit.
  4. Required Permissions

Under Permissions, click Add More, then set:

  • First dropdown: Zone
  • Second dropdown: Zone
  • Third dropdown: Edit

Click Continue to Summary, then Update Token to save your changes.

Adding or updating the Cloudflare token in your hosting account

  1. Log in to your cp.purely.website hosting control panel.
  2. Navigate to Integrations, then click Cloudflare.
  3. Under Cloudflare API Tokens, select Add (or locate an existing token entry if updating).
  4. Provide a Friendly name, paste the API token, and click Save.

Assigning a token to your domain

  1. Still within the control panel, go to Websites, then select the relevant website.
  2. Click on Domains from the top menu.
  3. Locate your domain and click the Cloudflare icon, then choose Select API Token.
  4. From the drop-down list, select the token you named earlier.
  5. Confirm if you wish to replace the existing Zone in Cloudflare by clicking Continue.
  6. If successful, you should see a green Connected message.

How can we help?

Click here for full details