# How to add filter to mitmdump while generating har file

**URL:** <https://discourse.mitmproxy.org/t/how-to-add-filter-to-mitmdump-while-generating-har-file/1639>\
**Category:** help\
**Created:** [August 14, 2019, 6:50pm UTC](https://discourse.mitmproxy.org/t/how-to-add-filter-to-mitmdump-while-generating-har-file/1639 "2019-08-14T18:50:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fasty23](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@fasty23](https://discourse.mitmproxy.org/u/fasty23)\
**Post date:** [August 14, 2019, 6:50pm UTC](https://discourse.mitmproxy.org/t/how-to-add-filter-to-mitmdump-while-generating-har-file/1639/1 "2019-08-14T18:50:34Z")

</div>

I’m trying to create har file while filtering data from specific IP address 192.168.1.3 my command is like this:  
mitmdump -s ./har\_dump.py --set hardump=./dump.har ~src 192.168.1.3  
But still see traffic from other devices in dump.har file.  
Is my filter wrong?  
how can I use the correct one?  
Thank you
