Getting Started
API Client
Inspect Traffic
HTTP Rules (Modify Traffic)
Redirect URL (Map Local, Map Remote)
Replace Strings (Switch Hosts, API Endpoints)
Import Setting from Charles Proxy
Mock Server
File Server
Sessions
When you create a modification rule, you will find the following operators:
Lets understand the use cases for each.
Equals operator does strict matching of URL intercepted by the browser with the URL given in rule.
URL given in rule: http://www.google.com Intercepted URL: http://www.google.com/ (Observe trailing slash) Result: ❌ Does not match
Note a trailing /
slash at the end of URL. A rule with Equals
operator and URL as www.example.com does not match www.example.com/. You may consider adding Slash (/
) at the end of URL in your rule. You can alternatively create two pairs in the same rule as well.
Contains operator does a substring search of string provided in rule inside the URL intercepted by chrome.
String in rule: yahoo Intercepted URL: https://www.yahoo.com/ Result: ✅ Match
String in rule: com?a=1 Intercepted URL: https://www.got.com?a=2 Result: ❌ Does not match
com?a=1
is not a substring of a URL and hence it does not match.
Regex Match Operator matches a given Regex with the URL intercepted by chrome.
You can also use the values of group expressions in your destination URLs.
URL Matches (Regex): /(.+).google/ig Destination: https://$1.google.com Result: ✅ Match
In this case, above regex will be matched with intercepted URL. If regex is matched then $1 will be replaced in the destination URL and redirect will happen.
Wildcard match operator matches expression with the URL intercepted by chrome.
We only support asterisk (*
) as wildcard operator. *
can match 0 or more characters in intercepted url.
<aside>
💡 Caution
In wildcard match, complete URL is matched with given expression and \\*
can be replaced with respective values in destination URL.
</aside>
Expression: ://.yahoo.com URL: http://cricket.yahoo.com Result: $1 = http, $2 = cricket
Expression: *yahoo URL: http://www.yahoo.com (Note the trails does not match ie
.com
) Result: ❌ Does not match
Expression: yahoo URL: http://www.yahoo.com Result: $1 = [http://www.](http://www./) $2=.com
Expression: http://*.yahoo.com URL: http://cricket.yahoo.com/ (Note the trailing
/
slash in URL) Result: ❌ Does not match