How to Make Confluence Read-Only
Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.
Having the option to make Confluence read-only can be very handy for administrators, especially when planning a migration/upgrade on a separate instance and planning to switch-over once testing has finished.
If you're running Confluence Data Center 6.10 or later, you can put your site into read-only mode, to limit what users can do. See Using read-only mode for site maintenance to find out how it works.
If you're running an earlier Confluence version, or have a Confluence Server license, one of the suggested workarounds listed below may work for your site.
If you are running Confluence 6.9 or earlier, you can apply one of the below workarounds.
Revoke all space permissions from all the groups and users. This will prevent users from modifying content or adding comments.
This can be automated by using a third party solution, such as the Confluence CLI tool to remove the permissions across all spaces.
Apply an expired evaluation license to Confluence. This will allow all your users to access the instance, but an expired license will not allow any content to be changed. This is a temporary workaround which is suitable for migrations and upgrades.
You must use an expired evaluation license that has an expiration date later than the release date of the Confluence version it's being applied to, otherwise the license will be considered invalid and cannot be applied. You can find Confluence versions and their build dates in the download archive.
The least secure of all the methods, but rather easy to implement, is obscuring the options altogether.
To disable edit and create, navigate to Confluence Administration > Custom HTML, and under Look and Feel add the following to the end of BODY section (this will hide the create and edit button as well as the copy, move, and delete links site-wide for Confluence). This change is instantaneous and does not require a restart.
- To disable keyboard shortcuts for createandedit, go to Admin > Manage Add-ons. Expand the list to All Add-ons and search for Confluence Keyboard Shortcuts Plugin. Expand it and expand the modules, then disable each that you require, eg Create Page, Create Blog, Edit Page, Add Comment.
Please keep in mind that this only hides the options from pages. If users know the URL for editing pages etc, they may still be able to make changes.
To disable attachments upload, please refer to this KB article