SELF-HOSTED EXAMPLE · NO BUILD STEP
Your controls. Your decisions.
Open this folder through an HTTP server. All modules and country metadata load locally. The initial country is a labelled example, not an IP lookup.
1. Country and calling-code form
Submit to inspect FormData.
2. Invisible language preselection
The custom element below renders nothing. Its callback updates this separate HTML output.
Suggested code: Waiting…
3. Invisible country decision
US and GB are blocked in this example policy. Change the country field above to show or hide your own HTML.
4. Optional real IP detection
No network lookup is made automatically in this example. Create a publishable lookup key that allows the exact origin shown below. Keep secret server keys out of browser code.
Allow this origin:
Using sample country IN. No IP request made.
Read example.js for the callbacks, FormData handling and optional detection request. Full widget setup guide.