International Telephone Box

Documentation

Privacy: the optional IP lookup

The only external request International Telephone Box makes is an optional ipapi.co lookup. What it sends, and how to turn it off.

Last updated

View as Markdown

International Telephone Box is private and light. All CSS, JavaScript, flags and country data are bundled with the plugin: no external CSS, JavaScript or fonts, no CDN, no jQuery needed. The only external request it can make is the optional IP lookup, and you can turn it off. The admin preview never contacts ipapi.co. This website's live demo never contacts any IP service.

The optional IP lookup

Privacy → Detect the visitor's country with ipapi.co on Phone Box → Countries.

  • When enabled (default): "When enabled, this sends the visitor's IP address to ipapi.co to guess their country." The request is to https://ipapi.co/json.
  • When it is off: "When it is off, the fallback country is used." No external request is made; the Fallback country is used.

ipapi.co's terms and privacy policy: https://ipapi.co/terms/ and https://ipapi.co/privacy/. International Telephone Box itself does not collect, store or send visitor data anywhere else.

How to turn it off

  1. Go to Phone Box → Countries.
  2. Find the Privacy section.
  3. Turn off Detect the visitor's country with ipapi.co.
  4. Set a Fallback country to use instead.
  5. Save changes.

With IP detection off, no request is made to ipapi.co.

Server-side validation

On the server, numbers are re-checked with libphonenumber (bundled; Google's phone number data). No phone number is sent to any external service for validation. Server validation needs PHP 8.1+; older PHP keeps browser validation only.