How to make an index read-only (not .kibana index)

Sorry, maybe that link was misleading.

I asking about how to make all access to an index read-only, regardless of the app.