Getting Started
Getting Started
Installation
Installation
Inspect Traffic
Inspect Traffic
HTTP Rules (Modify Traffic)
HTTP Rules (Modify Traffic)
Overview
Request Modification — Redirect URL (Map Local, Map Remote)
Request Modification — Replace Strings (Switch Hosts, API Endpoints)
Request Modification — Modify Headers
Request Modification — Modify Request Body
Response Modification — Modify Response Body
Request Modification — Modify Query Params
Request Modification — Modify User Agents
Request Modification — Delay Request
Request Modification — Map Local
Request Modification — Map Remote
Response Modification — Modify DOM/Inject scripts
Response Modification — Cancel Rule
Predefined Functions
Organizing Rule — Grouping
Organizing Rule — Import/Export Rules from File
Organizing Rule — Pause/Resume Requestly
Organizing Rule — Rule Operators
Organizing Rule — Advance Targeting
Organizing Rule — Sharing Rules
Organizing Rule — Pinning Rules
GraphQL - Modify Request & Response
Import / Export — Charles Proxy Rules
Test Rules — Test URL Condition
Test Rules — Test this Rule
Session Book
Session Book
File Server
File Server
Public API
Public API
FAQ
FAQ
Guides
Guides
TroubleShooting
TroubleShooting
Subscription & Billing
Subscription & Billing
Getting Started
Getting Started
Installation
Installation
Inspect Traffic
Inspect Traffic
HTTP Rules (Modify Traffic)
HTTP Rules (Modify Traffic)
Overview
Request Modification — Redirect URL (Map Local, Map Remote)
Request Modification — Replace Strings (Switch Hosts, API Endpoints)
Request Modification — Modify Headers
Request Modification — Modify Request Body
Response Modification — Modify Response Body
Request Modification — Modify Query Params
Response Modification — Modify DOM/Inject scripts
Request Modification — Modify User Agents
Request Modification — Delay Request
Response Modification — Cancel Rule
Organizing Rule — Grouping
Organizing Rule — Import/Export Rules from File
Organizing Rule — Pause/Resume Requestly
Organizing Rule — Rule Operators
Organizing Rule — Advance Targeting
Organizing Rule — Sharing Rules
Request Modification — Map Local
Request Modification — Map Remote
Organizing Rule — Pinning Rules
GraphQL - Modify Request & Response
Import / Export — Charles Proxy Rules
Test Rules — Test URL Condition
Predefined Functions
Test Rules — Test this Rule
File Server
File Server
Public API
Public API
Sessions Replay
Sessions Replay
Guides
Guides
Session Book
Session Book
Subscription & Billing
Subscription & Billing
Rule Operators
When you create a modification rule, you will find the following operators:
- Equals
- Contains
- Matches (Regex)
- Matches (Wildcard)
Lets understand the use cases for each.
Equals Operator
Equals operator does strict matching of URL intercepted by the browser with the URL given in rule.
Example
URL given in rule: http://www.google.com Intercepted URL: http://www.google.com/ (Observe trailing slash) Result: ❌ Does not match
Reason
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
Contains operator does a substring search of string provided in rule inside the URL intercepted by chrome.
Example 1
String in rule: yahoo Intercepted URL: https://www.yahoo.com/ Result: ✅ Match
Example 2
String in rule: com?a=1 Intercepted URL: https://www.got.com?a=2 Result: ❌ Does not match
Reason
com?a=1
is not a substring of a URL and hence it does not match.RegEx Match Operator
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.
Example
URL Matches (Regex): /(.+).google/ig Destination: https://$1.google.com Result: ✅ Match
Reason
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
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.Caution
In wildcard match, complete URL is matched with given expression and
\*
can be replaced with respective values in destination URL.Example 1
Expression: *://*.yahoo.com URL: http://cricket.yahoo.com Result: $1 = http, $2 = cricket
Example 2
Expression: *yahoo URL: http://www.yahoo.com (Note the trails does not match ie.com
) Result: ❌ Does not match
Example 3
Expression: *yahoo* URL: http://www.yahoo.com Result: $1 = http://www. $2=.com
Example 4
Expression: http://*.yahoo.com URL: http://cricket.yahoo.com/ (Note the trailing/
slash in URL) Result: ❌ Does not match