Is there a way to block request using mitmproxy UI?

Hi the Team, or hi Max.

I am just install version 0.18 success. I know that mitmproxy is able to monitoring traffic. But I wonder if mitmproxy UI have some feature allow me do deny/block request by pattern, such as block facebook.com pass throught my mitmproxy?

I found some google post here:
https://groups.google.com/forum/#!topic/mitmproxy/2UqdZb6-Gmg
Tell me to dig in to the code. But before I do that, I want to ask you if any UI solution is out there? :slight_smile:
If not, please tell me, and I have to dive in the code nơw :wink:
I am not familiar with Python very much.

PS: The py.test is run very slow in my system wtih sudo mode, I don’t knơw why. But I made mitmproxy 0.18 running in my system so its not important nơw :sunny: D

You can (1) filter traffic by specifying a view filter (in mitmproxy 0.17 and before, this was called limit) or use the ignore domains feature: http://docs.mitmproxy.org/en/stable/features/passthrough.html.

Hi Max

Thanks for your reply. I did it on the UI.

Now I want to modify some mitmproxy code to block the request pass through
the proxy, without the mitmproxy UI. Can you give me some tip to find where
to do it in the code.

Thankyou.

Vào 09-08-2016 08:37, “Maximilian Hils” mitmproxy1@discoursemail.com đã
viết: