# IP based white listing

**URL:** <https://discuss.elastic.co/t/ip-based-white-listing/8756>\
**Category:** Elasticsearch\
**Created:** [August 16, 2012, 7:03am UTC](https://discuss.elastic.co/t/ip-based-white-listing/8756 "2012-08-16T07:03:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [August 16, 2012, 7:03am UTC](https://discuss.elastic.co/t/ip-based-white-listing/8756/1 "2012-08-16T07:03:03Z")

</div>

Hi ,

I am trying to create a IP based white listing plugin for ES.  
Basically what i want to do is enable insert and delete to ES from only a  
single IP.  
And all read operations can happen from any IP.

Going through http-auth plugin , i could make out that all requests can be  
examined here

```
public void internalDispatchRequest(final HttpRequest request, final

```

HttpChannel channel) in HttpServer class.

But then i was not able to see the ip from the object HttpRequest.

Please advice on how to accomplish this.

Thanks  
Vineeth

--

---

<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 6, 2017, 3:16am UTC](https://discuss.elastic.co/t/ip-based-white-listing/8756/2 "2017-07-06T03:16:11Z")

</div>


