diff options
author | Wade Catron <onlywade@gmail.com> | 2015-07-29 16:18:49 -0700 |
---|---|---|
committer | Wade Catron <onlywade@gmail.com> | 2015-07-29 16:18:49 -0700 |
commit | 3346daa65aa95db0b81c35827da037fbc3c87af7 (patch) | |
tree | 9e5b6b0d10a166ccf2b1867fe567b75704fd563d /doc-src/features/passthrough.html | |
parent | d2ae6b630e7924479aefbb9f0193fdfcbae8fea6 (diff) | |
download | mitmproxy-3346daa65aa95db0b81c35827da037fbc3c87af7.tar.gz mitmproxy-3346daa65aa95db0b81c35827da037fbc3c87af7.tar.bz2 mitmproxy-3346daa65aa95db0b81c35827da037fbc3c87af7.zip |
Update docs to reflect current shortcut keys for features which have been moved into the options menu.
Diffstat (limited to 'doc-src/features/passthrough.html')
-rw-r--r-- | doc-src/features/passthrough.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc-src/features/passthrough.html b/doc-src/features/passthrough.html index 17cc0259..101a337a 100644 --- a/doc-src/features/passthrough.html +++ b/doc-src/features/passthrough.html @@ -18,18 +18,18 @@ If you want to ignore traffic from mitmproxy's processing because of large respo <th width="20%">command-line</th> <td>--ignore regex</td> </tr> <tr> - <th>mitmproxy shortcut</th> <td><b>I</b></td> + <th>mitmproxy shortcut</th> <td><b>o</b> then <b>I</b></td> </tr> </tbody> </table> mitmproxy allows you to specify a regex which is matched against a <code>host:port</code> string (e.g. "example.com:443") -to determine hosts that should be excluded. +to determine hosts that should be excluded. There are two important quirks to consider: -- **In transparent mode, the ignore pattern is matched against the IP.** While we usually infer the hostname from the +- **In transparent mode, the ignore pattern is matched against the IP.** While we usually infer the hostname from the Host header if the --host argument is passed to mitmproxy, we do not have access to this information before the SSL handshake. - In regular mode, explicit HTTP requests are never ignored.[^explicithttp] The ignore pattern is applied on CONNECT @@ -40,9 +40,9 @@ There are two important quirks to consider: If you just want to ignore one specific domain, there's usually a bulletproof method to do so: -1. Run mitmproxy or mitmdump in verbose mode (-v) and observe the host:port information in the serverconnect +1. Run mitmproxy or mitmdump in verbose mode (-v) and observe the host:port information in the serverconnect messages. mitmproxy will filter on these. -2. Take the host:port string, surround it with ^ and $, escape all dots (. becomes \\.) +2. Take the host:port string, surround it with ^ and $, escape all dots (. becomes \\.) and use this as your ignore pattern: <pre class="terminal"> @@ -60,16 +60,16 @@ $ mitmproxy --ignore ^example\.com:443$ Here are some other examples for ignore patterns: <pre> # Exempt traffic from the iOS App Store (the regex is lax, but usually just works): ---ignore apple.com:443 +--ignore apple.com:443 # "Correct" version without false-positives: --ignore '^(.+\.)?apple\.com:443$' - + # Ignore example.com, but not its subdomains: --ignore '^example.com:' # Ignore everything but example.com and mitmproxy.org: --ignore '^(?!example\.com)(?!mitmproxy\.org)' - + # Transparent mode: --ignore 17\.178\.96\.59:443 # IP address range: |