Skip to content
Sign inDashboard

Block page and its certificate

By default, opdns answers a blocked name as if it did not exist. The browser then shows its own “site can’t be reached” error. With the block page, the browser shows a page that says that the site is blocked. The page also says which setting blocked it, in the same words as your logs, for example Privacy › Ads & trackers (step 3 and up). The page shows the name of your profile only if you turn that on. It shows nothing else: no list names, no addresses, no other details.

  1. In the dashboard, open the Settings page of the profile.

  2. Under Blocked answers, choose Show a block page and save.

  3. If you want, turn on Show the profile name on the block page. Then anyone who opens a blocked site on a device with this profile sees the name of the profile.

These steps are enough for http:// addresses. Most sites use https://. For these sites, the browser expects a certificate for the name of the site, and opdns does not have one. If you do not do the step below, a blocked https:// site shows the certificate warning of the browser instead of the page. In both cases, the browser loads nothing from the site. The warning only gives less information.

To show the page on https:// sites too, a device must trust a certificate authority (a certificate that can sign other certificates) made for your profile. It is optional, and there is one for each profile. opdns generates it when you ask for it.

How opdns limits that risk:

  • opdns generates the key and stores it encrypted. opdns never shows the key, and you cannot download it. You download only the certificate.
  • The resolvers use the key only to issue certificates that last one hour. They issue them only for names that this profile blocked in the last minute, for the device that asked. A name that resolves normally never gets a certificate, so opdns never intercepts your real connections.
  • You can revoke the certificate at any time. opdns then deletes the key, and blocked https:// sites show the certificate warning again within minutes.
  • The certificate expires two years after you generate it.

If you revoke the certificate, it stays on your devices. Remove it yourself with the steps below.

  1. On Settings, with Show a block page chosen, click Generate certificate. The dashboard can ask you to sign in again.

  2. Write down the SHA-256 fingerprint that the dashboard shows. Your devices show the same fingerprint for the certificate.

  3. Download the file for each device:

    • .mobileconfig for iPhone, iPad and Mac.
    • .crt for Windows and Android.
    • .pem for Linux and Firefox.
  1. Open the .mobileconfig file on the device (AirDrop, Files or Safari). iOS says Profile Downloaded.

  2. Open Settings › General › VPN & Device Management. Tap the opdns block page profile and tap Install.

  3. Open Settings › General › About › Certificate Trust Settings and turn on full trust for opdns block page (your profile id). If you do not do this step, iOS installs the certificate but does not trust it for websites.

  1. Double-click the .mobileconfig file. macOS tells you that the profile is ready to review.

  2. Open System Settings › General › Device Management. On macOS 14 and earlier, open System Settings › Privacy & Security › Profiles. Select the opdns block page profile and click Install.

  3. If Safari or Chrome still shows a warning, open Keychain Access. Find opdns block page in the System keychain and open it. Under Trust, set When using this certificate to Always Trust.

Firefox on macOS uses its own certificate list. See Firefox below.

  1. Double-click the .crt file and click Install Certificate.

  2. Choose Current User (only you) or Local Machine (every user of the computer, needs an administrator).

  3. Choose Place all certificates in the following store, click Browse and select Trusted Root Certification Authorities. Finish the steps. Before you accept the security warning, make sure that the fingerprint is the same as the one on the dashboard.

Edge and Chrome use the certificate immediately. For Firefox, see below.

  1. Open Settings › Security › Encryption & credentials › Install a certificate › CA certificate. The menu names change with the maker of the phone. If you cannot find them, search Settings for “CA certificate”.

  2. Accept the warning and pick the .crt file that you downloaded.

Chrome accepts certificates that you install this way. Many apps ignore them on purpose, because by default Android does not let apps trust certificates that users install. In those apps, a blocked name does not load, the same as without the block page.

Copy the .pem file into the system store and refresh the store. For example, on Debian and Ubuntu:

Terminal window
sudo cp opdns-block-page-<profile-id>.pem /usr/local/share/ca-certificates/opdns-block-page.crt
sudo update-ca-certificates

On Fedora, copy the file to /etc/pki/ca-trust/source/anchors/ and run sudo update-ca-trust. Chrome on Linux uses its own store. Import the .pem file under Settings › Privacy and security › Security › Manage certificates › Authorities.

Firefox keeps its own list of authorities. Open Settings › Privacy & Security › Certificates › View Certificates › Authorities and click Import. Choose the .pem (or .crt) file and select Trust this CA to identify websites. On Windows and macOS, Firefox can use the certificates of the system instead. To do this, set security.enterprise_roots.enabled to true in about:config.

Remove the certificate from a device when you stop using the block page, when you revoke the certificate, or when you give the device away.

  • iPhone and iPad: go to Settings › General › VPN & Device Management. Tap the opdns block page profile, then tap Remove Profile.
  • Mac: go to System Settings › General › Device Management (on macOS 14 and earlier, Privacy & Security › Profiles). Select the profile and click −. If you trusted the certificate in Keychain Access, delete it there too.
  • Windows: run certmgr.msc (or certlm.msc for Local Machine). Open Trusted Root Certification Authorities › Certificates and delete opdns block page.
  • Android: go to Settings › Security › Encryption & credentials › User credentials (or Trusted credentials › User). Select the certificate and remove it.
  • Linux: delete the file that you copied and run update-ca-certificates --fresh (or update-ca-trust).
  • Firefox: go to Certificates › View Certificates › Authorities. Select the certificate and click Delete or Distrust.

To stop opdns from using the certificate on all devices at once, click Revoke certificate on the Settings page.

  • Sites with HSTS: browsers never let you click through a certificate warning on sites that require HTTPS (HSTS). Without the certificate, those sites show a warning that you cannot bypass. With the certificate installed, they show the block page like any other site.
  • The device, not the name: the page appears for the device whose DNS query was blocked, within a minute. Sometimes the DNS and the web traffic of a device leave from different addresses, for example DNS over IPv6 and the page over IPv4. Then the page can say only that the name is blocked, without the setting.
  • Apps are not browsers: apps that are not browsers usually show their own connection error, not the page.
  • The page logs nothing: opening the block page records nothing. The blocked query itself appears in your logs as usual.