Skip to content

responseFor

Customize the ServerIP displayed on the Whistle Network dashboard by setting the x-whistle-response-for response header field.

Equivalent to: resHeaders://x-whistle-response-for=xxx

Rule Syntax

txt
pattern responseFor://ip [filters...]
ParametersDescriptionDetailed Documentation
patternExpression to match the request URLMatch Pattern Documentation
ipCustom client IP
⚠️ Loading data from files/remote URLs is not supported
filtersOptional filters, supports matching:
• Request URL/Method/Header/Content
• Response Status Code/Header
Filter Documentation

Configuration Example

txt
www.example.com/path responseFor://1.1.1.1,2.2.2.2
  1. Custom Response Headers: resHeaders://x-whistle-response-for=xxx