Skip to content
Cloudflare for Teams
Visit Cloudflare for Teams on GitHub
Set theme to dark (⇧+D)

Custom block page

When trying to visit a blocked website, users will see a default browser error page like this one:

No block page

This is because Gateway responds to any blocked domain with, and does not return the blocked domain's IP address. As a result, the browser cannot take the user to that website. However, this may be confusing for some people, as they may think that their Internet is not working.

To avoid this confusion, you can configure Cloudflare Gateway's block page to explain to the end user why a website is being blocked.

Follow these three steps to configure a block page:

  1. Enable the block page.
  2. Download the Cloudflare certificate.
  3. Add the certificate to your system.

Enable block page

  1. Navigate to the Policies tab in the Teams dashboard.
  2. Find the policy for which you would like to set up a block page.
  3. Click Edit.
  4. Scroll down to find the Block page card.
  5. Toggle the Enable switch.

Enable block page

  1. Click Save.

Enabling block page alone will not work for HTTPS connections. When your users try to visit a blocked website, they will now see the following error:

HTTPS browser error

To fix the browser error, you need to download and add a certificate to your system.

Download certificate

  1. Navigate to the Settings tab on your Teams dashboard.
  2. Click on Account.
  3. Scroll down to find the Certificates card.
  4. Click on Download.

Download certificate

You will now need to add the certificate to your system to ensure your web browser will use this certificate to establish HTTPS connections.

Add certificate to your system

  1. If you are on a Mac, double-click on the .pem file.
  2. The certificate is now listed in the Keychain Access application.


  1. Double-click on the certificate and then click on Trust.


  1. Select Always Trust from the drop-down menu for When using this certificate.

Always trust

  1. Close the menu.

If your system asks for admin permission, enter your password or use your fingerprint ID to confirm the changes.


If you are not using Firefox, you can skip this section.

Follow the instructions below to finish configuring the block page:

  1. Enter about:config in the address bar.
  2. Click on Accept the risk! if you see a prompt from Firefox.
  3. Set security.enterprise_roots.enabled to true.

See the block page

When you visit a blocked website you will now see the following block page:

Block page