Show IP Address
| 开发者 |
keithgriffiths76
|
| 更新时间 |
2026年11月3日 06:22 |
| PHP版本: |
7.4 及以上 |
| WordPress版本: |
6.8.12 |
| 版权: |
GPLv2 or later |
| 版权网址: |
版权信息
|
详情介绍:
Show IP Address provides a small set of shortcodes for displaying request information. It does not store visitor information or call a third-party IP lookup API.
The default shortcode output is loaded from this site's own WordPress REST API. This avoids putting one visitor's IP address into HTML that may be served to other visitors by a full-page cache. If a host or security plugin blocks the REST API, the shortcode displays an unavailable message rather than a potentially incorrect cached address.
By default, the plugin uses the address seen by the web server (REMOTE_ADDR). If a site is behind a proxy or CDN, this may be the proxy's address. Forwarded headers are not trusted automatically because they can be forged unless the proxy is configured to set them securely. Hosting providers or site developers can add trusted proxy support with the show_ip_address_client_ip filter.
屏幕截图:
更新日志:
2.0.0
- Retained the original four shortcodes and legacy
get_the_user_ip() helper.
- Added cache-safe, same-site dynamic output and clear fallback when the REST request is unavailable.
- Uses
REMOTE_ADDR by default and validates IP values; added a filter for trusted proxy integrations.
- Removed unnecessary global CSS and host-specific server calls.
- Added a simple dashboard widget that displays the current administrator's connection IP.
- Namespaced plugin functions and CSS classes to reduce conflicts with themes and other plugins.
1.8
- Added hostname, user-agent, and referrer shortcodes.
- Refactored the plugin to remove external dependencies.
1.7
- Improved shortcode handling for forwarded IP headers and escaped output.