Contact
How entries are saved / Public IP address and location
  1. Home
  2. Database for Contact Form 7
  3. How entries are saved
  4. Public IP address and location
How entries are saved

Public IP address and location

1 min readUpdated Nov 5, 2026

The IP address stored with an entry is the connection's address, checked so that a visitor cannot fake it with forwarding headers (Privacy controls).

Local sites and private networks

On a local development site, or inside a company network, the connection address is 127.0.0.1 or a 192.168.x.x style address, which is not a real internet address. The plugin never stores those. When Settings > Privacy & retention > Use the public IP on local sites is on (default), it asks checkip.amazonaws.com for the network's public address (one request, cached for six hours, 2-second limit) and stores that. If the service cannot be reached, no address is stored and the form still works. Visitors on the public internet are never looked up this way; their own address is used.

IPv4 and IPv6 are both supported. Invalid, private or reserved answers are rejected.

Location (optional)

Switch on Look up the location (off by default) to add country, region, city, coordinates and ISP to entries. The lookup runs in the background a few seconds after the entry is saved, so it never slows or blocks a submission, and the answer is cached per address. The result shows as Location in the entry details, as an optional column and in exports. Because this sends the stored IP address to ipwho.is, it needs your own decision and legal basis. It is not used when IP shortening is on.