frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

What is X-Forwarded-For and when can you trust it? (2024)

https://httptoolkit.com/blog/what-is-x-forwarded-for/
11•ayoisaiah•7h ago

Comments

westurner•3h ago
From the article: https://httptoolkit.com/blog/what-is-x-forwarded-for/ :

> Dropping all external values like this is the safest approach when you're not sure how secure and reliable the rest of your call chain is going to be. If other proxies and backend apps are likely to blindly trust the incoming information, or generally make insecure choices (which we'll get into more later) then it's probably safest to completely replace the X-Forwarded-For header at that outside-world facing reverse proxy, and ditch any untrustworthy data in the process.

X-Forwarded-For: https://en.wikipedia.org/wiki/X-Forwarded-For :

> Just logging the X-Forwarded-For field is not always enough as the last proxy IP address in a chain is not contained within the X-Forwarded-For field, it is in the actual IP header. A web server should log both the request's source IP address and the X-Forwarded-For field information for completeness

HTTP header injection: https://en.wikipedia.org/wiki/HTTP_header_injection

This OWASP page has a list of X-Forwarded-For and X-FORWARDED-foR and similar headers; "Headers for IP Spoofing" https://owasp.org/www-community/pages/attacks/ip_spoofing_vi...

A sufficient WAF should detect all such attempts.

The X-Forwarded-For Wikipedia article mentions that RFC 7239 actually standardizes the header and parsing:

  Forwarded: for=192.0.2.60;proto=http;by=203.0.113.43
  Forwarded: for="[2001:db8::1234]"
RFC 7239: "Forwarded HTTP Extension" (2014): https://www.rfc-editor.org/rfc/rfc7239

Suzuki Fronx: An affordable city SUV with one tonne weight

https://www.globalsuzuki.com/automobile/lineup/fronx/
1•teleforce•1m ago•0 comments

Interactive Programming in C

https://nullprogram.com/blog/2014/12/23/
2•ofalkaed•3m ago•0 comments

Palmer Luckey considering entering laptop market with US-made model

https://www.tomshardware.com/laptops/palmer-luckey-considering-entering-laptop-market-with-fully-us-made-model-wants-to-know-if-youd-spend-20-percent-more-for-an-american-made-pc
1•simonpure•4m ago•0 comments

Why Is There a Date of 1968 in the Intel Chipset Device Software Utility?

https://www.intel.com/content/www/us/en/support/articles/000095169/processors.html
1•vegadw•5m ago•0 comments

Cable Bacteria Are Living Batteries

https://www.asimov.press/p/cable-bacteria
1•mailyk•7m ago•0 comments

Scottie Scheffler raised questions about happiness and fulfillment

https://www.nytimes.com/athletic/6502755/2025/07/18/scottie-scheffler-arthur-brooks-happiness-fulfillment-open/
1•ricciardo•7m ago•0 comments

Voltaire: Enlightenment Philosopher and Lottery Scammer

https://www.smithsonianmag.com/smart-news/voltaire-enlightenment-philosopher-and-lottery-scammer-180967265/
1•rbanffy•7m ago•0 comments

The Science Behind Coincidences. July 14, 1993, Joan Ginther Walks Into

https://medium.com/@polovenko.tetyana/the-science-behind-coincidences-de5b9eb8726
1•rbanffy•8m ago•0 comments

SoftBank and OpenAI's $500B AI Project Struggles to Get Off Ground

https://www.wsj.com/tech/ai/softbank-openai-a3dc57b4
2•radialstub•8m ago•0 comments

Ask HN: Helping people medically with technology, what is the reality?

2•ge96•9m ago•1 comments

FastVLM: Efficient Vision Encoding for Vision Language Models

https://machinelearning.apple.com/research/fast-vision-language-models
1•2bit•10m ago•0 comments

Seeing the Lottery

https://seths.blog/2025/07/seeing-the-lottery/
2•herbertl•11m ago•0 comments

Zero Knowledge Proofs (2024)

https://code.sgo.to/2024/10/10/zero-knowledge-proof.html
1•mooreds•11m ago•0 comments

I Have vs. I Am

https://nik.art/i-have-vs-i-am/
1•herbertl•11m ago•0 comments

Warp: The Agentic Development Environment

https://www.warp.dev
1•thunderbong•11m ago•0 comments

Ask HN: Why do vibecoding tools still struggle so much with back end generation?

1•stosssik•14m ago•0 comments

The Many Faces of Agentic Identities

https://www.cyata.ai/blog/many-faces-of-agentic-identities/
1•mooreds•15m ago•0 comments

Show HN: ProdE – Give AI coding tools context for multi-repo codebases

https://prode.ai/
1•curious_nile•17m ago•1 comments

Top UN court says countries can sue each other over climate change

https://www.bbc.com/news/articles/ce379k4v3pwo
1•tartoran•18m ago•0 comments

File Storage vs. Object Storage vs. Block Storage

https://blog.algomaster.io/p/file-vs-object-vs-block-storage
1•stosssik•18m ago•0 comments

The big winner from Coca-Cola's Trump-inspired sugar push

https://www.bbc.com/news/articles/cp8263jn20zo
1•tartoran•18m ago•0 comments

Kimi K2 vs. Claude 4 Sonnet: what you should pick for agentic coding

https://composio.dev/blog/kimi-k2-vs-claude-4-sonnet-what-you-should-pick-for-agentic-coding
2•homarp•18m ago•0 comments

IRS has lost one-quarter of its IT staff since Trump took office

https://www.theregister.com/2025/07/23/irs_it_staff_down_25_percent/
2•rntn•19m ago•0 comments

Researchers improve radiant cooling to make outdoor temperatures feel cooler

https://techxplore.com/news/2025-07-radiant-cooling-outdoor-temperatures-cooler.html
2•PaulHoule•19m ago•0 comments

Base58 versus Base85 Encoding

https://www.johndcook.com/blog/2025/07/23/base58-base85/
2•zdw•20m ago•0 comments

AI Image to Video Generator – Create Videos from Images

https://www.imideo.net
1•jacobgor502•21m ago•0 comments

Show HN: Apache Fluss (Incubating) – Streaming Storage for Real-Time Analytics

https://github.com/apache/fluss
2•michaelkoepf•21m ago•0 comments

OneNoughtOne – AI That Turns Conversations into Actions Across Your Digital Life

1•anshik1998•21m ago•0 comments

Show HN: Open-source business management tool for small business

https://github.com/oitcode/samarium
2•zaza12•21m ago•0 comments

Floor796

https://floor796.com/#t1r1,524,201
2•evo_9•21m ago•1 comments