Symfony, reverse proxies and IP protection
By Loick Piera
- One minute readFollowing an issue encountered on one of my projects, I had to dive into how IP protection works in Symfony applications when at least one reverse proxy is in front of them. After some research, trial and error, I thought it was the perfect opportunity to go back to the basics, then explain how to find the origin of the problem and solve it.
This blog post allows me to explain how client IP forwarding works with reverse proxies, how to use Forwarded
header (and differences with headers X-Forwarded-*
).
Read the article on JoliCode’s blog.