Rule-Based Captive Portal Selection by Time, Device, and Locale

· Guest WiFi and Captive Portal

Why One Physical WiFi Network Often Needs Multiple Login Flows

In real hospitality, retail, and campus deployments, a single physical WiFi network rarely serves one static audience from morning to night. A hotel lobby may welcome brief morning breakfast visitors before transitioning into an evening corporate seminar, while a clinic or campus often broadcasts both staff and guest networks through the same gateway hardware. Relying on one rigid captive portal layout forces unnecessary form clutter onto users or compels IT staff to swap themes manually before every event.

Included among Hotspotly's captive portal capabilities, rule-based page and method selection lets administrators tailor what guests see on a single hotspot without fragmenting hardware configurations. By evaluating the time of connection, selected language, network context, or device history, the portal adapts both visual presentation and login priorities dynamically.

How Page Rules Work and Core Prerequisites

Page rules sit on top of the portal versioning model with explicit structural boundaries, deterministic priority order, and fallback behavior to the default published version.

Published Design Version Prerequisite and Scope

Before creating any rule, the target hotspot needs at least one published design version inside the login page designer. A rule does not build arbitrary HTML from scratch; instead, it picks the visual styling—theme, color tokens, logo, background, and copy—of an existing published version and overrides method visibility or display order. Underlying legal documents, promotional slots, landing actions, and trusted-device behavior continue to come from the active published baseline, and by design a rule does not enable a login method that is disabled on that hotspot.

Top-to-Bottom Priority and Safe Fallback

Enabled rules are evaluated from top to bottom in priority order, and the first matching rule wins. If no rule matches the incoming request—or if a rule references a version that is no longer available—the portal falls back smoothly to the hotspot's default published version. When a rule applies a specific visual version on the login page, the post-login landing and status pages render with that exact same version so the guest journey stays visually consistent, and A/B test variants do not override a rule-selected visual version. Complete setup instructions are documented in the page rules guide.

Rule Conditions: Time, Locale, Network Context, and Device State

A single rule can combine multiple conditions using logical conjunction: empty fields impose no restriction, whereas every configured condition matches simultaneously. Each hotspot supports up to 25 ordered rules, and saving or reordering rules clears the live evaluation cache immediately so changes take effect without restarting router services.

Day, Time Window, SSID, and Router Identity

Schedule-based rules accept specific days of the week (Monday through Sunday) and HH:MM start-to-end windows, including overnight ranges that cross midnight, evaluated in the hotspot's configured IANA timezone (defaulting to Europe/Istanbul, UTC+3, when unset). Network-context filters match against router hotspot server names, interface or SSID labels (supporting trailing * wildcard prefixes), and router identity strings. Server name and router identity conditions work immediately, whereas SSID and interface matching depend on up-to-date router portal provisioning files; if the panel indicates re-provisioning is needed, re-applying portal files resolves the mismatch.

Locale and New vs. Returning Device Conditions

Rules can also target the visitor's active portal language (locale) or distinguish between new and returning devices when trusted-device memory is active and the router supplies the guest's MAC address. Whenever a device's MAC address is unavailable or trusted-device memory is disabled, any rule carrying a device condition automatically skips without matching and passes evaluation down to the next priority row. Review the prerequisites for each login flow in the login methods overview.

Practical Rule Scenarios in Production

Combining schedule, locale, and interface conditions unlocks tailored guest journeys across everyday venues:

  • Breakfast hours vs. evening conference schedule: Between 07:00 and 11:30, a rule displays a bright daytime design placing Click-to-Connect and PMS room login at the top. From 18:00 to 23:30, a higher-priority evening rule switches to an event-branded published version, moves Voucher codes to the top, and hides Click-to-Connect so only registered attendees join.
  • Locale-based prioritization for international guests: When a visitor selects English, German, Arabic, or Russian, a locale rule suppresses country-specific national ID verification (for example in Türkiye; availability varies by country) and prioritizes PMS room number and Voucher fields, avoiding dead-end forms for foreign travelers.
  • Staff SSID vs. guest SSID separation: Matching the staff interface shows only username-and-password authentication, while the public SSID prioritizes SMS verification and click-through access.

One architectural boundary deserves special emphasis: because SSID and server name hints travel through the guest browser redirect, page rules are a presentation control rather than a network security boundary. Hotspotly also rejects rule-hidden methods at the server-side verification gate, while network-level traffic isolation between employees and visitors relies on separate SSIDs and VLANs configured directly on the router.

Testing with the Built-In Simulator Before Going Live

Validating overlapping schedules or multi-condition priorities before guests hit the portal is built straight into the Rules tab. Using the integrated simulator panel, administrators enter any combination of server name, interface, router identity, weekday, time, language, and new-or-returning status to preview both the login screen and the post-login landing view rendered by the exact server engine.

When you want to inspect a specific rule's visual design without waiting for its scheduled hour or mimicking its SSID, clicking the eye icon on that rule row previews it unconditionally. Pressing the eye icon again or clearing the forced override restores normal priority matching immediately, letting teams verify fallback safety, rule order, and method visibility across desktop and mobile frames before going live.

As a practical maintenance habit, place narrow multi-condition rules—such as rules combining a specific SSID with evening conference hours—above broader locale-only or day-only rules. Keeping rules cleanly ordered with arrows or drag-and-drop handles maintains predictable first-match routing, routes unmatched visitors to your published default layout by design, and simplifies busy event transitions.

All posts