We have a very simple ASP.NET web application comprising mostly static content and a single form which we want to protect with SSL. The secured page is in its own folder, but it inherits from an unsecured master page, and it shares some other resources (the logo, css file and some pictures) with the rest of the website. The site is hosted by a third-party, and changing the IIS configuration (or changing to a different host) is not an option.
As we understand, there are a few challenges when dealing with partial SSL on ASP.NET:
- Preventing the “This page contains both secure and nonsecure items” message.
- Providing support for relative URLs as they won’t work by default when redirecting to a secured page.
We don’t want to secure the whole site, because of the potential performance issues, so what is the best way to protect only one particular page or folder, guaranteeing at the same time that any resource loaded by this page will be secured as well?