Making a secure page

If you want to have a page only come from a secure URL

@if(BRT.RenderContext.IsDesign || BRT.RenderContext.IsSecureUrl) {
    @RenderBody()
} else {
    <h4>Sorry you do not have access to this page</h4>
    <p>Please contact your system administrator if you require access</p>
}