# Ignoring Domain

**URL:** <https://discourse.mitmproxy.org/t/ignoring-domain/1274>\
**Category:** Uncategorized\
**Created:** [October 8, 2018, 10:13pm UTC](https://discourse.mitmproxy.org/t/ignoring-domain/1274 "2018-10-08T22:13:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uniQ](https://avatars.discourse-cdn.com/v4/letter/u/bc8723/32.png) [@uniQ](https://discourse.mitmproxy.org/u/uniQ)\
**Post date:** [October 8, 2018, 10:13pm UTC](https://discourse.mitmproxy.org/t/ignoring-domain/1274/1 "2018-10-08T22:13:32Z")

</div>

Hi,  
I am using mitmproxy in transparent mode and want to only accept a certain IP range.

For example only 192.XX.XX.XX IP’s.

But --ignore-host does not allow me to use regex for IP ranges as I have tried to do the following regex: ^(?!192.\d+.\d+.\d+)

Is it possible to only accept certain ip ranges.

Thanks

---

<div class="post-metadata">

**Author:** ![uniQ](https://avatars.discourse-cdn.com/v4/letter/u/bc8723/32.png) [@uniQ](https://discourse.mitmproxy.org/u/uniQ)\
**Post date:** [October 12, 2018, 6:31pm UTC](https://discourse.mitmproxy.org/t/ignoring-domain/1274/2 "2018-10-12T18:31:47Z")

</div>

any help with this please?
