Holding

A simple .NET Core Razor Page for pointing domains to

I've often purchased domains that I intend to do something with, at a later date - but then never do. Rather than leaving them to be parked on the domain reseller's servers, with advertising and spam for their own services, I like to at least create a holding page for them.

Utilising the error page from framework, .NET Razor Pages and some trickery, I could create one app to point multiple domains to:

juffs.co.uk holding example

As with many of my other projects, the full source code is available on GitHub. There you'll see there's actually not much trickery involved:

var host = HttpContext.Request.Host.Host;