# Blocking writes and new index creation

**URL:** <https://discuss.elastic.co/t/blocking-writes-and-new-index-creation/44228>\
**Category:** Elasticsearch\
**Created:** [March 12, 2016, 10:38am UTC](https://discuss.elastic.co/t/blocking-writes-and-new-index-creation/44228 "2016-03-12T10:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dPsipher](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@dPsipher](https://discuss.elastic.co/u/dPsipher)\
**Post date:** [March 12, 2016, 10:38am UTC](https://discuss.elastic.co/t/blocking-writes-and-new-index-creation/44228/1 "2016-03-12T10:38:56Z")

</div>

Hi,

We have a usecase where we need to block all writes on present indices as well as prevent creation of any new index. While exploring options I found below solution -

1. Block index level writes, but again it won't prevent new index creation.
2. In `config/elasticsearch.yml` use `action.auto_create_index: false` which will prevent automatic index creation. Thus will not allow users to create new indices without specifying mapping.

Let me know if there is some clean solution or plugin which can block all writes without effecting any read queries and is a reversible setting.

Thanks  
-Rishabh

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:08pm UTC](https://discuss.elastic.co/t/blocking-writes-and-new-index-creation/44228/2 "2017-07-05T23:08:53Z")

</div>


