Skip to content

Instantly share code, notes, and snippets.

@oflg
Forked from yuhangch/header-editor-config.json
Created March 11, 2023 08:20
Show Gist options
  • Save oflg/2d4b596c6554fb0de1d250f8a51ce1c9 to your computer and use it in GitHub Desktop.
Save oflg/2d4b596c6554fb0de1d250f8a51ce1c9 to your computer and use it in GitHub Desktop.
cn.bing redirect to www.bing
{
"request": [
{
"enable": true,
"name": "bing-cn-to-www",
"ruleType": "redirect",
"matchType": "prefix",
"pattern": "https://cn.bing.com",
"exclude": "",
"group": "bing-redirect",
"isFunction": false,
"action": "redirect",
"to": "https://www.bing.com"
}
],
"sendHeader": [
{
"enable": true,
"name": "bing",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": "^http(s?)://www\\.bing\\.com/(.*)",
"exclude": "",
"group": "bing-direct",
"isFunction": false,
"action": {
"name": "x-forwarded-for",
"value": "8.8.8.8"
}
}
],
"receiveHeader": [],
"receiveBody": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment