Self-hosted podcast: moving a podcast to WordPress and Cloudflare R2

Illustration au trait : un casque audio, une onde sonore, un stockage de fichiers et le symbole d’un flux RSS

Dee Lud, a DJ based in Bordeaux, has been broadcasting his radio show Need To Escape since 2010, but his podcast depended entirely on a hosting platform that no longer suited him. We built him a self-hosted podcast: a WordPress site on his own domain, the audio files on Cloudflare R2, and all 123 episodes migrated without losing his listeners on Apple Podcasts, Deezer and Amazon Music.

In short

  • A DJ and his podcast of electronic mixes: 123 episodes since 2012, nearly 78,000 listens, more than 17 GB of audio files.
  • The need: leaving his podcast host and taking back control of his RSS feed and files, without starting from scratch on the listening platforms.
  • The answer: WordPress and PowerPress for the site and the feed, Cloudflare R2 to store and serve the audio, all on the deelud.com domain.
  • The key features: a migration accurate down to every GUID, with no duplicates on the platforms, and new episodes uploaded to R2 straight from WordPress.
  • The deliverable: the website, two custom modules (upload to R2 and listening statistics) and a storage cost of a few cents a month.

Dee Lud has been mixing since 2003. A former producer and music programmer at Radio FG, he is now a DJ based in Bordeaux and plays all over France. Since 2010 he has broadcast Need To Escape, a progressive house and techno radio show, available as a podcast on Apple Podcasts, Deezer and other listening apps.

Like many podcasters, he used a specialist hosting platform, in this case DjPod. It is a convenient way to start: you upload your files and the platform builds the RSS feed that apps read. But over the years the offer no longer suited him, and he wanted to take back control of a catalogue of 123 episodes, nearly 78,000 listens in total since 2012.

The problem: changing podcast host without losing listeners

Leaving a podcast host is not just about moving files. There were some very concrete questions to answer:

  • Apps know a podcast by the address of its RSS feed. How do you change that address without subscribers losing the show?
  • How do you stop the platforms from seeing 123 new episodes and showing everything twice?
  • Where do you store more than 17 GB of one-hour mixes, played all over the world, without blowing the hosting budget?
  • How do you keep the listening history and carry on measuring it?

The previous host’s rules made leaving harder. According to its FAQ, checked in November 2026: the podcast address is the only setting that cannot be changed, no feed redirect is offered, an expired subscription drops back to the free plan and deletes the oldest episodes, and statistics cannot be transferred. What was missing was a setup where Dee Lud owns everything: his domain, his feed, his files and his figures.

Our answer: a self-hosted podcast on WordPress and Cloudflare R2

We split the three jobs a podcast host does, and gave each one to a tool Dee Lud stays in control of:

  • The website and the RSS feed: WordPress, with the free PowerPress plugin. Each episode is a post; PowerPress builds the feed that Apple Podcasts, Deezer or Amazon Music read. The feed lives on Dee Lud’s own domain, deelud.com/feed/podcast/: if he ever changes tools, he will be the one deciding on the redirect.
  • The audio files: Cloudflare R2, low-cost file storage, served from his own subdomain, audio.deelud.com. The web hosting stays light: it never serves a 150 MB file.
  • A backup copy of the original files, kept separately.

The site is not just a shop window around the feed: we designed it as the home of the radio show, with every episode, its tracklist, a player and links to each listening platform.

Accueil du site de Dee Lud : titre Need To Escape, bouton Écouter le dernier épisode et liens vers les plateformes d’écoute
The deelud.com home page: the latest episode in one click and the platforms where you can follow the podcast.

Why Cloudflare R2 to host the audio files

A DJ’s podcast means big files: around 145 MB per hour of mix as a 320 kbps MP3. Putting them in the WordPress media library would have filled up the hosting, and every listen would have loaded the website’s server. We compared several options:

  • Personal cloud storage (OneDrive, for example): ruled out for distribution, as it offers no direct, stable link to each file. It is still ideal for the backup.
  • The WordPress media library: ruled out, because of the size.
  • Cloudflare R2: chosen. It is S3-compatible storage with no egress fees: you pay for storage, not for downloads. At the public price checked in December 2026, the first 10 GB are free each month, then $0.015 per GB per month. For just over 17 GB, storage comes to around ten cents a month, however many listens there are.

The test address Cloudflare provides (r2.dev) is rate-limited and meant for testing only, so we connected a real subdomain, audio.deelud.com, which requires the domain to be managed by Cloudflare.

Migrating 123 episodes without creating duplicates

The heart of the project was the migration. A listening app recognises an episode by its unique identifier, the GUID. If the GUID changes, the app thinks it is a new episode and the whole catalogue shows up twice for every subscriber. So we worked in this order:

  • Archive the old feed and build an inventory from it: title, date, GUID, file name, size and duration of every episode.
  • Upload the original files to R2, match them one by one against the inventory, and check their size after copying.
  • Recreate the 123 episodes in WordPress with their original GUID, publication date, duration and tracklist, taken from Dee Lud’s own text files.
  • Compare the two feeds before switching over: same number of episodes, identical GUIDs in the same order, same dates, durations and titles.
  • Switch platform by platform: new feed address in Apple Podcasts Connect, then Amazon Music; a request to Deezer’s support team, as Deezer does not follow redirects; and the podcast added to YouTube Music along the way.

The result: the podcast changed hosting without a single listener having to resubscribe. Since then, a new episode, #108, has joined the feed.

A real website for the podcast, not just an RSS feed

A podcast host usually provides a basic public page. Here, the website has become the show’s reference:

  • a Podcasts page with instant search across titles and tracklists: type an artist’s name and you find every episode where they were played;
  • filters by type (Need To Escape, lives, specials) and sorting;
  • a page for each episode, with its tracklist, duration and links to every listening platform;
  • a fixed player at the bottom of the page that keeps playing when you change page: you can browse the site without cutting the mix;
  • figures worked out automatically at each publication: number of episodes, more than 1,400 different tracks played, years of radio show;
  • a booking form for venues that want him to play.

Each episode also has a unique title and description for search engines, generated from its type, duration and tracklist: the 123 episodes become as many pages that can show up in Google.

Page Podcasts du site de Dee Lud : recherche dans les épisodes et les tracklists, filtres par type, liste des épisodes et lecteur en bas de page
The Podcasts page: search, filters and sorting, with the player still open at the bottom after changing page.
Page de l’épisode Need To Escape 107 : tracklist de 14 titres et lecteur fixe en bas de page en cours de lecture
An episode page: the full tracklist, and the player playing.

Publishing a new episode: drag, drop, done

One key point remained for Dee Lud’s independence: publishing a new episode without going through file transfer software. We built a custom WordPress plugin that adds an audio file box to every episode’s edit screen:

  • he drops his MP3 or M4A file into the box and follows the upload progress in per cent and in MB;
  • the file goes straight from his browser to R2, without passing through the website’s server;
  • once the upload is done, the box checks that the file arrived with the right size, then fills in the address, size and duration in PowerPress on its own;
  • a second tab lets him pick a file already on R2, with a search;
  • an existing file is never overwritten by mistake: he chooses to reuse the file in place or upload under another name. Deliberately replacing an episode’s file is still possible, after confirmation, and Cloudflare’s cache is cleared at the same time.
Boîte Fichier audio dans l’éditeur WordPress : onglet Choisir un fichier déjà sur R2, recherche need to escape 108 et fichier de 145 Mo
The audio file box in an episode’s editor (in French): here, picking a file already uploaded to R2.

Measuring listens without a podcast host

When you leave a host, you also lose your statistics. So we built a module that brings together three sources, without ever mixing them up:

  • the previous host’s history, imported episode by episode and then frozen;
  • plays on the website, counted by the player with no cookie and no IP address stored;
  • listens in the apps, measured by OP3, a free and open podcast analytics service that sits in front of the file addresses in the feed.

It all shows in a dashboard that replaces the WordPress admin home page: key figures, trends by day, week or month, listening apps and countries, episode rankings and a detailed sheet for each one. Dee Lud opens it with his own account, without seeing the rest of the settings.

Tableau de bord des statistiques d’écoute dans l’administration WordPress : écoutes au total, épisode le plus écouté, évolution par jour, sources, applications, pays et types d’épisode
The statistics dashboard, in place of the admin home page: history, plays on the site and listens in the apps.

What this project shows about the way we work

Building a WordPress site is something we know how to do. This project above all required understanding how a podcast works end to end: RSS feed, GUIDs, redirects, each platform’s rules, storage and audience measurement. And making choices that leave the owner free: his own domain, his own feed, files with an interchangeable provider and open tools.

The site then evolved with Dee Lud’s use of it: a default episode type, replacing an audio file in one click, new listening platforms added along the way.

For the more technical: how the podcast works

If you like to look under the bonnet of WordPress, here are the choices that hold it all together. Some code comments are in French, as in the project itself.

1. A feed identical to the old one, down to the GUID

Episodes were recreated by a re-runnable WP-CLI script, from the old feed’s inventory. The original GUID is written as is into wp_posts, and the audio file is declared in the enclosure meta in the exact format PowerPress expects, taken from an episode created by PowerPress itself:

// DjPod GUID kept as is (absolute rule: otherwise platforms create duplicates).
$wpdb->update( $wpdb->posts, array( 'guid' => $e['guid'] ), array( 'ID' => $id ) );

// Audio file: "enclosure" meta in PowerPress format (URL, size, type, then serialised array).
$extra = array(
	'duration'     => dl_import_duree( $e['duree'] ),
	'set_duration' => '1',
	'set_size'     => '1',
	'explicit'     => '0',
	'episode_type' => 'full',
);
$enclosure = $e['url'] . "\n" . (int) $e['taille'] . "\n" . $e['mime'] . "\n" . serialize( $extra );
update_post_meta( $id, 'enclosure', $enclosure );

WordPress’s automatic typography (wptexturize) is turned off in the feed; otherwise quotes and dashes in titles would have changed and the titles would no longer match the old feed.

2. Direct upload to R2 with a presigned URL

The website’s server never sees the audio file. It signs an upload address valid for 15 minutes, in the AWS Signature V4 format that R2 accepts, which fixes the name, type and exact size of the file. The access key stays in wp-config.php and is never sent to the browser:

public function url_envoi( string $nom, string $type, int $taille, int $duree ): string {
	$chemin = $this->chemin( $nom );
	$query  = $this->signataire->presign_query(
		'PUT',
		$this->hote(),
		$chemin,
		array(),
		$duree,
		SigV4::amz_date( $this->maintenant ?? time() ),
		array(
			'content-length' => (string) $taille,
			'content-type'   => $type,
		)
	);
	return $this->point . SigV4::encode_path( $chemin ) . '?' . SigV4::canonical_query( $query );
}

The browser then sends the file with a simple PUT request, which makes it possible to show progress. A CORS rule on the bucket only allows these uploads from the website’s domain:

const xhr = new XMLHttpRequest();
xhr.open( 'PUT', envoi.url );
xhr.setRequestHeader( 'Content-Type', envoi.type );
xhr.upload.addEventListener( 'progress', ( e ) => e.lengthComputable && progression( e.loaded, e.total ) );

The plugin’s REST routes require a security token, the right to upload files and the right to edit the episode concerned. File names are cleaned and any path to another folder is refused.

3. DNS and caching: two traps avoided

A custom subdomain for R2 requires the domain to be a Cloudflare zone, and partial setup (keeping your DNS elsewhere) is reserved for Cloudflare’s paid plans. So deelud.com’s DNS moved to Cloudflare. Another point: the main domain stays “DNS only”, without Cloudflare’s proxy. Stacking Cloudflare’s proxy on top of the host’s CDN caused bursts of 429 errors as soon as a page loaded its resources. Only audio.deelud.com goes through Cloudflare’s cache.

4. Statistics with no personal data

The site’s player reports a play when an episode genuinely starts, using sendBeacon. On the server, a play counts once per visitor, per episode and per day: the fingerprint is hashed with a salt drawn at random each day and thrown away the next, and no IP address is stored in the database:

$cle = 'dl_lec_' . substr( hash_hmac( 'sha256', $adresse . '|' . $ua . '|' . $id, dl_stats_sel_du_jour() ), 0, 32 );
if ( get_transient( $cle ) ) {
	return new WP_REST_Response( array( 'compte' => false, 'raison' => 'deja' ), 200 );
}

Listens in the apps come from OP3, collected daily through its API and linked to episodes by their GUID. A cap per episode and per day limits the effect of any abuse.

5. A player that survives page changes

The player lives outside Elementor, in the footer. While it is open, internal links are loaded with fetch and only the page content is replaced; Elementor then re-initialises its widgets and the browser history is updated. At the slightest problem, the site falls back to normal navigation. It is all tested in Chromium and WebKit, Safari’s engine.

What if we did the same for your podcast?

Here, a podcast that depended on a platform has become a self-hosted podcast: a website in its own name, a feed it owns, files stored for a few cents a month and statistics its creator checks himself.

Are you a DJ, presenter, trainer or business, and do you want to host your podcast yourself, or leave your current host without losing your subscribers? We can design the setup that makes you the owner of your podcast.

See our custom plugins or tell us about your needs

Contents
Read next

More articles that may help you

Illustration au trait : une patinoire vue de dessus, des sapins et un écran d’état avec deux pastilles

Ice rink and skating trail: a municipality’s custom WordPress plugin

Read the article →
WooCommerce e-invoicing: how to make your shop compliant

WooCommerce e-invoicing: how to bring your shop into compliance

Read the article →
Cookies and consent: why a simple banner is no longer enough

Cookies and consent: why a simple banner is no longer enough

Read the article →

A project, a question?

Free quote · Refundable deposit · Balance only if satisfied · No commitment