This article has not yet been verified against Umbraco 8.
The concepts and code examples might not work if you are running Umbraco 8.0 or a later version. If you are using Umbraco 7, this article is perfect for you!
You are more than welcome to report any issues found on the Documentation Issue Tracker.
Umbraco Security Hardening
Here you find some tips and trick for hardening the security of your Umbraco installation.
Lock down access to your Umbraco-folders
By default there are some folders in your Umbraco installation that should be only used by authenticated users. It’s considered a good practice to lock down these folders to specific IP-addresses and/or IP-ranges to make sure not everyone can access these. The folders we want to lock down are App_Plugins, Config, Umbraco_Client and Umbraco. The prerequisite of this to work is that you’re using IISRewrite
If you’ve made sure that you’ve installed this on your server we can start locking down our Umbraco-folders. This can be down by following these three steps.
We are going to lock down /Umbraco/, but because API-controllers and Surface-controller will use the path /umbraco/api/ and /umbraco/surface/ these will also be locked down. Our first rule in the IISRewrite.config will be used to make sure that these are not locked by IP-address.
Some older versions of Umbraco also relied on /umbraco/webservices/ for loadbalancing purposes. If you're loadbalancing you should also add umbraco/webservices to the rule.
Get the IP-addresses of your client and write these down like a regular expression. If the IP-addresses are for example 126.96.36.199 and 188.8.131.52 the regular expression would be ‘184.108.40.206|220.127.116.11”.
Lock down the folders App_Plugins, Config, Umbraco_Client and Umbraco (or the renamed version of this folder) by putting this rule into your IISRewrite-rules
Rename your Umbraco-folder
Important note: Renaming your Umbraco folder is currently not supported on Umbraco Cloud.
Important note 2: Not all packages will keep working if you rename your Umbraco folder. Please be aware of this risk and test it at your local environment first.
By default the login page of Umbraco is available at the path /umbraco/. This page is the entrance to your installation and it’s considered a good practice to rename your path to a more secure path. This can be done by following these two steps.
- Rename you /umbraco/-folder on disk to another path (for example: /my-secret-loginpanel/)
- Change the two keys in your web.config “umbracoReservedPaths” and “umbracoPath” to your new path.
From now on, you can only get access to the login screen by going to this path and no longer by going to /umbraco/.