How to make Sitecore media to be downloaded from authenticated users only?

Recently, I have had a requirement that besides the public assets, some Sitecore media items (e.g. pdf files, doc files, reports, etc.) must be protected and only allowed to access and download by authenticated users (using login feature) on the website. This requirement also required that there was a flexibility for CMS users when they…More

Secure Sitecore website with Basic Authentication using Global.asax

When it comes to websites generally or Sitecore individually, they should be protected and prevented from external access while they are being developed or under staging or UAT. There are some approaches to do this such as internal network restriction, whitelist IP limitation. In Sitecore, we can write custom code and inject to Sitecore pipeline…More