xwp / stream

🗄️ Stream plugin for WordPress
https://wordpress.org/plugins/stream/
GNU General Public License v2.0
407 stars 116 forks source link

Improve event source IP reporting #1456

Closed kasparsd closed 11 months ago

kasparsd commented 12 months ago

Feature Request

Determining user's IP reliably is difficult when the web server is behind layers of proxies as the request is made by the intermediary on behalf of the client. Here is how various services pass the origin IP to the server:

There is no reliable way for the WP plugin or WP core to detect the client IP so it would be useful to offer a filter for the current logic here:

https://github.com/xwp/stream/blob/bfc0530d617007040ce938f9eb20e7efb87c9fde/classes/class-log.php#L45-L49

kasparsd commented 8 months ago

Version 4.0.0 has been tagged https://github.com/xwp/stream/releases/tag/4.0.0 and deployed to WP.org https://plugins.trac.wordpress.org/changeset/3019411/stream