Read-only mode of configurations

PREREQUISITES: Your system must be in Auto-storage mode of configuration

When the system is in Auto-storage mode, you can further apply restriction to modify configuration files. This is the most common scenario of a production website delivery process.

This way, you make changes to config files only on the development environment. On the staging and the live environment, this restriction should be applied, because changes in the config files in these environments would be lost during deployment process.

What is restricted 

The types of restriction level are:

  • Default
    No restrictions. This is the default value. Ensure that this value is set on your local development environment.
  • ReadOnlyConfigFile
    Restricts writing to configuration files and hides pages from the backend UI used for modifying configurations. Following are some of the sections that are hidden from the UI:
    • Administration » Settings & Configurations » Settings
    • Administration » Settings & Configurations » Version & Licensing
    • Administration » Tools » File manager
    • Administration » Connectivity » Connector for Telerik BaaS
    • Administration » Connectivity » Connector for SharePoint
    • Administration » Connectivity » Connector for Marketo
    • Administration » Connectivity » Connector for SalesForce
    • Settings links on pages are hidden in News, Blogs, Events, Forums, Images, Videos, Documents list, Lists, Web services, Sitemap
    • SiteSync module is not active

Turn Read-only mode on and off

You can do this in the following way: 

  1. Open you web.config file
  2. Add or delete the restrictionLevel in section <telerik> in the following way:
  3. Save and close the web.config.

Override the restriction level

You can override the restriction level when it is turned on, but you intentionally wants to change a config file. Use UnrestrictedModeRegion in the following way:

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?