CDN77
CDN77 is a content delivery network with a resource-based model and a v3 API. WP Media Cloud integrates with CDN77 to rewrite media URLs to your CDN77 resource and pull bandwidth statistics into the Dashboard tab. CDN77 can be used as a CDN layer in front of any storage provider WP Media Cloud supports, except Bunny Edge Storage.
Before you start#
You will need:
- A CDN77 account at cdn77.com.
- A CDN77 CDN Resource pointed at your storage bucket’s public URL.
- Your CDN77 API token.
- Your storage provider already configured in WP Media Cloud with a working connection test.
Step 1: Create a CDN77 resource#
Log in to the CDN77 client portal and go to CDN Resources. Click Create CDN Resource. Configure the resource as follows:
- Label — a descriptive name for the resource
- Origin — the public URL of your storage bucket. For example:
- Amazon S3:
https://[bucket-name].s3.[region].amazonaws.com - Wasabi:
https://s3.[region].wasabisys.com/[bucket-name] - Backblaze B2: your bucket’s public URL
- DigitalOcean Spaces:
https://[space-name].[region].digitaloceanspaces.com - Hetzner:
https://[bucket-name].[region].your-objectstorage.com
- Amazon S3:
Save the resource. Note the Resource ID shown in the CDN77 portal and the CDN URL for the resource — either the default CDN77 hostname or a custom CNAME you have configured. If you have a custom CNAME set on the resource, WP Media Cloud will use that as the CDN URL.
Step 2: Find your API token#
In the CDN77 portal, go to Account > API. Copy your API token. CDN77 uses Bearer token authentication. WP Media Cloud sends this token in the Authorization header when calling the CDN77 API — you only need to provide the token in the plugin settings.
Step 3: Configure CDN77 in WP Media Cloud#
In your WordPress admin, go to WP Media Cloud > Settings and find the CDN section for your storage provider. Select CDN77 as the CDN type. Enter the following:
- API Token — your CDN77 API token
- Resource ID — the numeric ID of your CDN resource, shown in the CDN77 portal
- CDN URL — the CDN hostname for your resource, including
https://
WP Media Cloud can fetch your CDN resources automatically using your API token. Entering the token and clicking the resource fetch button will list your resources and allow you to select the correct one, populating the Resource ID and CDN URL fields automatically.
Save settings. All media URLs will be rewritten to use your CDN77 resource URL.
Step 4: Test CDN delivery#
Go to Media > Library, click on any offloaded image, and check the file URL in the attachment details panel. It should show your CDN77 resource URL rather than the direct bucket URL. Open the URL in a browser to confirm the file loads.
Dashboard analytics#
When CDN77 is configured as your CDN, WP Media Cloud’s Dashboard tab shows bandwidth statistics pulled from the CDN77 v3 API:
- Total bandwidth — total HTTP traffic bytes delivered through the resource over the selected period
- Bandwidth chart — daily bandwidth breakdown for the last 7 days
Storage size and file count are not available from the CDN77 API and are not shown. The Dashboard shows your local offloaded file count instead.
Troubleshooting#
CDN URL is not rewriting
Confirm the CDN URL is entered correctly in WP Media Cloud settings including the https:// prefix and without a trailing slash. Save settings and reload a page with media to confirm.
Resource URL returns 404 for files
The origin URL in your CDN77 resource is incorrect or does not match the path structure of your bucket. Confirm the origin URL matches the public URL of your bucket and test it directly in a browser before checking the CDN layer.
API token not accepted
Confirm the token is copied correctly from Account > API in the CDN77 portal. CDN77 API tokens are used as Bearer tokens and are case-sensitive.
Resource list not loading
WP Media Cloud calls the CDN77 v3 API at api.cdn77.com to list your resources. If the list does not load, confirm your API token is correct and that your server can make outbound HTTPS connections to api.cdn77.com.
Dashboard shows no bandwidth data
Confirm the Resource ID is correctly entered in settings. If the resource is new or has not yet served any traffic, the CDN77 statistics API will return empty data. Bandwidth stats appear once traffic has been served through the resource.