Ignoring domains

Hello!

Is it possible to make a list of all the hosts that should be ignored and update it without restarting mitmproxy? Like creating an addon or a script for that? Thanks.

Hi, You can update the ignore_hosts option during runtime, either from the mitmproxy UI or from your own scripts. :slight_smile:

In regular mode with this option mitmproxy ignores only TLS traffic or unencrypted calls too?
If a call matches ignored domain does it not appear in log?

@Gigiarum: https://docs.mitmproxy.org/stable/howto-ignoredomains/#limitations

Hello!

I’m sorry but can you give me an example how can I do it using a script? I’m having hard time figurig out! like what modules shoud I import and where the ignoring domain’s name will go?
Thank you so much.