[GH-ISSUE #413] 获取真实IP地址 #306

Closed
opened 2026-05-05 12:06:34 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @motolvla on GitHub (Jul 30, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/413

求指教:
apache+php环境
按文档所述,用户第一次访问可以通过X-Forwarded-For 和 X-Real-IP获取真实IP。
之后的访问有时能获取有时不能,请问为何不每次访问都带上X-Forwarded-For 和 X-Real-IP,还是说可以通过其他配置实现?
获取真实IP对做站有较大作用,诚心求教。
另感谢作者辛勤开发,从第一个版本开始用,功能越来越强大了。

Originally created by @motolvla on GitHub (Jul 30, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/413 求指教: apache+php环境 按文档所述,用户第一次访问可以通过X-Forwarded-For 和 X-Real-IP获取真实IP。 之后的访问有时能获取有时不能,请问为何不每次访问都带上X-Forwarded-For 和 X-Real-IP,还是说可以通过其他配置实现? 获取真实IP对做站有较大作用,诚心求教。 另感谢作者辛勤开发,从第一个版本开始用,功能越来越强大了。
Author
Owner

@motolvla commented on GitHub (Jul 30, 2017):

已通过在frps前加apache代理解决,希望以后版本每次都能附上真实IP

<!-- gh-comment-id:318884781 --> @motolvla commented on GitHub (Jul 30, 2017): 已通过在frps前加apache代理解决,希望以后版本每次都能附上真实IP
Author
Owner

@hrj5032188 commented on GitHub (Jan 27, 2019):

如果直接访问frps是没有真实ip的吗?

<!-- gh-comment-id:457891446 --> @hrj5032188 commented on GitHub (Jan 27, 2019): 如果直接访问frps是没有真实ip的吗?
Author
Owner

@busyhe commented on GitHub (Mar 26, 2020):

怎么解决的?

<!-- gh-comment-id:604223756 --> @busyhe commented on GitHub (Mar 26, 2020): 怎么解决的?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#306
No description provided.