Perform the following steps to connect a domain to Cloudflare:

  1. Check that the Cloudflare module is installed. For more information please refer to the article Install and configure the Cloudflare module.
  2. Log in to ISPmanager as the User. 
  3. Go to Tools → Cloudflare.
  4. Register a new account in Cloudflare or enter the credentials of the existing one:
    1. Enter the name of the Partner that you entered during the registration.
    2. Enter the Host Api Key that you have received.
    3. Click Ok.
  5. Go to Tools → Cloudflare → select the domain you want to connect → Add.

    Note.

    You can connect only second-level domains to Cloudflare.
  6. Select the Connection type:
    • Full connection — a domain zone will be connected to Cloudflare in full;
    • Partial connection — only some pages from a domain zone will be connected to Cloudflare. Enter the CNAME record for Cloudflare that will point to one of the IP addresses of the domain zone you want to connect. Enter all Aliases of the WWW-domain name, separated by space. By default, it includes all the aliases created in ISPmanager. 
  7. Click on Ok.
  8. In Tools → Cloudflare → the column Status  the domain status will change to "Connection to Cloudflare in progress". This process may take several minutes. The information about domain statuses is updated automatically once in half-an-hour. Click the Update button to update it manually. Status change history is saved in the event Log. On the last step, you will see the message in the log "To complete the integration with Cloudflare change the NS records of the domain zone", where the Cloudflare NS servers will be located. Specify them in the NS-records of the domain zone registrar.

    Details

    You can check NS-records using the dig utility. Cloudflare NS-servers must be displayed after you have executed the command:

    dig NS <domain zone> +short
    BASH
  9. After the information has been updated, the connection will change to "Domain is connected to Cloudflare". The Cloudflare functions will become available for the domain. Initial settings will be sent to Cloudflare automatically depending on domain and server configuration:
    • Automatic HTTPS rewrites;
    • IPv6 support;
    • HSTS;
    • SSL;
    • TLS 1.3.
    Read more in Configure domain optimization and protection through Cloudflare.

Note.

Connections for the domains added through the Cloudflare client area won't be displayed in ISPmanager.