Forwarded Header Parser
標準Forwardedヘッダー
RFC 7239 Forwardedプロキシチェーンを解析し、各ホップのfor / by / host / protoの値を表示します。
Hop #1
for203.0.113.43
protohttps
hostapp.geekformat.com
Hop #2
for10.0.0.9
byingress
X-Forwarded-*互換ヘッダー
多くのゲートウェイはまだX-Forwarded-For / Host / Protoを使用します。これはチェーン順序でクライアントとプロキシアドレスを解析します。
2個のX-Forwarded-Forノードこれらのヘッダーは信頼できるプロキシチェーンでのみ意味を持ち、本当のクライアントIPとして扱うべきではありません。
#1203.0.113.43
#210.0.0.9
JSONプレビュー
{
"standardized": [
{
"index": 0,
"pairs": {
"for": "203.0.113.43",
"proto": "https",
"host": "app.geekformat.com"
}
},
{
"index": 1,
"pairs": {
"for": "10.0.0.9",
"by": "ingress"
}
}
],
"legacy": {
"x-forwarded-for": [
"203.0.113.43, 10.0.0.9"
],
"x-forwarded-proto": [
"https"
],
"x-forwarded-host": [
"app.geekformat.com"
]
}
}