I have a self-hosted Ghost blog running. I want to check for the presence of a custom header, for example X-Den-Was-Here
.
What I want to implement is a conditional check, where:
- If the header is present - load the blog cotnents.
- If the header is not present - return a 401 Unauthorized.
Where would be the most appropriate place to perform this check within the Ghost infra?