Whitelisting allows you to control which users can see your website content based on their originating IP addresses.

If the environment has whitelist enabled (and the IP is not on the list), the server will respond with a HTTP 403 “Forbidden”.

Examples when whitelist could be used:

  • test site access needs to be restricted to a product team
  • production site is behind a Web Application Firewall

Note whitelists are enforced on the webserver (HTTP traffic on ports 80 and 443), so they cannot fully replace network-level security. Nevertheless they are useful as an additional layer of access control in front of your application.

Adding your IP to the whitelist

By default all environments start with whitelist enabled (“deny all” mode), with the default of SilverStripe Operations to be permitted access.

The state of the whitelist will be visible on the Platform Dashboard, on the “Whitelist” tab of your environment.

Whitelist enabled

Add your IP to the list visible below, and press “Save”. You will receive a prompt asking you to deploy the changes, after which you will be able to access the website.

You can specify network CIDRs (e.g. instead of IP addresses too.

Disabling whitelist

Disabling the whitelist (“allow all” mode) means your website will be publicly accessible from the internet regardless of originating IP. If the whitelist is disabled, the Dashboard will show:

Whitelist disabled

Normally your production servers should have the whitelist disabled.

Environments behind Web Application Firewalls

Environments behind Web Application Firewalls (WAF) should restrict access to the WAF itself. We maintain IP lists for major WAFs such as Incapsula or Cloudflare - contact SilverStripe Helpdesk to get this configured.

When your environment has such a list configured, it will appear on the list as a non-editable entry:

Predefined group present