This page is about Caddy 1 and will stay here forever.

User Guide


This plugin allows you to see the actual client IP from X-Forwarded-For headers if you are running behind a CDN or Proxy. It will make it so logs and other downstream directives will see the actual client IP, not the proxy's. Implements security measures so that X-Forwarded-For cannot be spoofed from unauthorized IP ranges.

Full documentation


Accept X-Forwarded-For from known IPs only
realip { from from }
Cloudflare Preset
realip cloudflare

Automatically adds cloudflare ips to allowed set.

Related Links

Access the full documentation for this plugin off-site:

Plugin Help

Get help from the maintainers of the http.realip plugin:

Plugin Website

Visit http.realip's website for more information:

Plugin Author: captncraig
Last Updated: 19 Apr 2017, 4:29 PM
This plugin is independent of the Caddy project and is not endorsed or maintained by Caddy developers. Use at your own risk. Do not file issues for this plugin on Caddy's bug tracker.