IP widgets and privacy-safe embedding
Adding a “your IP” widget to a page takes one snippet of code, and that snippet makes your page depend on someone else’s server. The embed arrives as an image, an iframe or JavaScript and brings network requests, caching and logging with it. Before you publish it, check that it works with HTTPS and your content security policy (CSP), what it costs in performance and availability, and which technical data the third party sees.
What an embedded widget changes on your page
Each visitor’s browser requests the widget from its provider. That request carries the visitor’s public IP address, which is network metadata and can appear in the provider’s server logs. This holds for an IP widget and an embedded speed test alike. Tell visitors about it in your privacy notice, and document the third-party requests and data retention where applicable.
What to test before publishing
Check the layout on small and large screens and how the page behaves while the widget loads. Then block third-party requests, as many browser extensions do, and see what happens. The widget’s failure must not block the host page.
Keeping visitor data out of URLs and caches
A widget should display only the information its purpose requires. Do not pass secrets or personal data in query strings, and do not let data derived from an IP address or an account become part of a public URL or cache key, where another visitor could receive it. To see how such an embed looks in practice, open the 2ip IP widget.