# Read only access to elasticsearch

**URL:** <https://discuss.elastic.co/t/read-only-access-to-elasticsearch/25248>\
**Category:** Elasticsearch\
**Created:** [July 9, 2015, 3:31pm UTC](https://discuss.elastic.co/t/read-only-access-to-elasticsearch/25248 "2015-07-09T15:31:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [July 9, 2015, 3:31pm UTC](https://discuss.elastic.co/t/read-only-access-to-elasticsearch/25248/1 "2015-07-09T15:31:40Z")

</div>

Hi,

I am interested in restricting users to read only access to elasticsearch data.  
So I would like to limit curl commands to GET method.

But if I do so head plugin is not displaying any data.  
So I allowed POST method and I can view data in head plugin.

But with allowing POST users can modify data too.

**So how can I restrict only read using POST and block write?**

**PS** :_I am using ReadOnly REST plugin for achieving this_

Thanks.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 10, 2015, 1:31am UTC](https://discuss.elastic.co/t/read-only-access-to-elasticsearch/25248/2 "2015-07-10T01:31:09Z")

</div>

Shield will handle this for you. Otherwise you have to build something yourself.

---

<div class="post-metadata">

**Author:** ![dfaropennetwork](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@dfaropennetwork](https://discuss.elastic.co/u/dfaropennetwork)\
**Post date:** [July 13, 2016, 2:31am UTC](https://discuss.elastic.co/t/read-only-access-to-elasticsearch/25248/3 "2016-07-13T02:31:11Z")

</div>

But the shield is a payment plugin

---

<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, 10:36pm UTC](https://discuss.elastic.co/t/read-only-access-to-elasticsearch/25248/4 "2017-07-05T22:36:12Z")

</div>


