---
title: "Discussion on \"HTTP 请求头中的 X-Forwarded-For\" | Hashnode"
description: "Discussion on \"HTTP 请求头中的 X-Forwarded-For\". 背景\n通过名字就知道，X-Forwarded-For 是一个 HTTP 扩展头部。HTTP/1.1（RFC 2616）协议并没有对它的定义，它最开始是由 Squid 这个缓存代理软件引入，用来表示 HTTP 请求端真实 IP。如今它已经成为事实上的标准，被各大 HTTP 代理、负载均衡等转发服务广泛使用，并被写入 RFC 7239（Forwarded HTTP Extension）标准之中。\nX-Forwarded-For 请求头格式非常简单，就这样：\nX-Forwarded-For: clie..."
url: "https://hashnode.com/posts/x-forwarded-for-header-in-http/65aa3a28642aea307bdf00bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [HTTP 请求头中的 X-Forwarded-For](https://docs.inorah.xyz/x-forwarded-for-header-in-http?utm_source=hashnode&utm_medium=feed)

背景 通过名字就知道，X-Forwarded-For 是一个 HTTP 扩展头部。HTTP/1.1（RFC 2616）协议并没有对它的定义，它最开始是由 Squid 这个缓存代理软件引入，用来表示 HTTP 请求端真实 IP。如今它已经成为事实上的标准，被各大 HTTP 代理、负载均衡等转发服务广泛使用，并被写入 RFC 7239（Forwarded HTTP Extension）标准之中。 X-Forwarded-For 请求头格式非常简单，就这样： X-Forwarded-For: clie...

Jan 19, 2024 · 3 min read · docs.inorah.xyz  
Read the article

-   [#x-forwarded-for](https://hashnode.com/tag/x-forwarded-for)
-   [#http](https://hashnode.com/tag/http)
-   [#proxy](https://hashnode.com/tag/proxy)

## Written by

[shiney](https://hashnode.com/@eddychu)

@eddychu

  
[View profile](https://hashnode.com/@eddychu)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
