# Disable Connecting form Transport Client

**URL:** <https://discuss.elastic.co/t/disable-connecting-form-transport-client/31890>\
**Category:** Elasticsearch\
**Created:** [October 9, 2015, 4:03am UTC](https://discuss.elastic.co/t/disable-connecting-form-transport-client/31890 "2015-10-09T04:03:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [October 9, 2015, 4:03am UTC](https://discuss.elastic.co/t/disable-connecting-form-transport-client/31890/1 "2015-10-09T04:03:53Z")

</div>

Hi,

We are using ES 1.4.4 and have built plugin for authentication which intercepts the REST calls( RestHandler). We want our ES to be accessed only by Rest calls not using transport client. Coolud you please provide pointers to achive this

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 9, 2015, 5:49am UTC](https://discuss.elastic.co/t/disable-connecting-form-transport-client/31890/2 "2015-10-09T05:49:59Z")

</div>

I suspect [Shield](https://www.elastic.co/products/shield) could help you.

Otherwise, if you have a multi-node cluster you can use firewalling to control which hosts can access port 9300. If it's a single-node cluster you could set transport.host to `_local_` (or `localhost`) so that ES won't bind to non-loopback interfaces. See [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html).

---

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [October 13, 2015, 7:10am UTC](https://discuss.elastic.co/t/disable-connecting-form-transport-client/31890/3 "2015-10-13T07:10:20Z")

</div>

Thanks for your inputs. Is there anyway we can write custom plugins and detect the calls from transport client and block them or process them according to our needs.

Also shield is not an option for us due to licensing

---

<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:45pm UTC](https://discuss.elastic.co/t/disable-connecting-form-transport-client/31890/4 "2017-07-05T23:45:11Z")

</div>

Closed on July 5, 2017, 11:45pm UTC


