Skip to content

ua

A shortcut protocol for modifying the User-Agent field in the request header. This can be used to simulate access from various machines.

Rule Syntax

txt
pattern ua://value [filters...]
ParametersDescriptionDetailed Documentation
patternExpression to match request URLsMatch Pattern Documentation
valueCustom request User-Agent string
• Inline/Embedded/Values content
⚠️ Loading data from files/remote URLs is not supported
filtersOptional filters, supports matching:
• Request URL/Method/Headers/Content
• Response Status Code/Headers
Filter Documentation

Configuration Example

txt
# Change the original user-agent to `Whistle/2.9.100`
www.example.com/path ua://Whistle/2.9.100

# Spaces UA
``` ua.txt
Test Whistle/2.9.100
```
www.example.com/path ua://{ua.txt}

# Using reqHeaders
``` ua.json
user-agent: Test Whistle/2.9.100
```
www.example.com/path reqHeaders://{ua.json}

Associated Protocols

  1. Directly modify the request header: reqHeaders://User-Agent=value