Skip to main content

How to Show Popups Based on Visitor Location or IP Address

A guide to targeting popup displays by geographic location (country/state) or IP address.

Promolayer allows you to control which visitors see your popups based on their geographic location (country/state) or IP address. You can limit display to users from specific countries or regions, or control popup visibility based on specific IP addresses.


Location-Based Targeting (Country/Prefecture)

Setup Instructions

  1. Open the Display settings and navigate to the Rules section.

  2. Under Target Users, enable the toggle for User Location (Country/Prefecture).

  3. Click the dropdown and select one or more countries.

  4. Optionally, select a specific state or prefecture from the Prefecture dropdown. If left blank, the popup will be shown to all visitors from the selected country.

  5. Save your settings.

Location detection is based on IP geolocation data and may not always be accurate.

Use Cases

  • Show a campaign exclusively to users within Japan.

  • Display region-specific offers to users in particular prefectures such as Tokyo or Osaka.


IP Address Blocking

Hide popups from visitors accessing from specific IP addresses, such as your office or development environment.

Setup Instructions

  1. Open the Display settings and navigate to the Rules section.

  2. Under Only show to users who, enable the toggle for Block IP Address.

  3. Enter the IP address you want to block in the IP Address field (one IP address per field). Your current IP address is displayed and can be copied to the clipboard using the copy icon.

  4. Click the + button to add more entries, or the × button to remove one.

  5. Save your settings.

Multiple IP addresses can be blocked. The IP blocking feature works on an OR basis — if a visitor's IP matches any entry on the block list, the popup will be hidden.

Use Cases

  • Block your office IP address to prevent your team from seeing popups during testing.

  • Block your development environment IP to avoid skewing analytics data.

Did this answer your question?