Skip to main content
sjoshi
Staff
Staff
July 16, 2025

Technical Tip: Understanding Captive Portal Auto-Detection Mechanisms

  • July 16, 2025
  • 0 replies
  • 4704 views
Description

 

This article describes how captive portal auto-detection works from client devices.

 

Scope

 

FortiGate.

 

Solution

 

Automatic detection of a captive portal is handled by the operating system of the client device, such as a smartphone, laptop, or tablet, through a straightforward verification process.

The system attempts to access a predefined URL known to return a specific, expected response when internet connectivity is unrestricted. If the expected content is received, the system assumes full internet access is available. However, if the response is altered or redirected, it indicates the presence of a captive portal.

In such cases, the device automatically triggers the browser to open the captive portal login (or splash) page, prompting the user for authentication before granting unrestricted network access.

 

While the core mechanism for captive portal detection remains consistent across client devices, attempting to access a predefined URL and evaluating the response, the specific domains used can vary based on the device type, manufacturer, and operating system version.

 

Captive portal detection mechanism from different devices/browsers.

 

Microsoft Edge browser:

Edge browser attempts an HTTP probe http://www.msftconnecttest.com/connecttest.txt during network detection. These get intercepted and redirected to the captive portal login page.

 

1.PNG

 

Firefox browser:

Firefox browser attempts an HTTP probe to detectportal.firefox.com during network detection. These get intercepted and redirected to the captive portal login page.

 

1.PNG

 

Chrome browser:

Chrome browser attempts an HTTP probe http://www.gstatic.com/generate_204 during network detection. These get intercepted and redirected to the captive portal login page.

 

1.PNG

 

Android Captive Portal Detection:

Android phone attempts an HTTP probe to clients2.google.com and connectivitycheck.android.com during network detection. These get intercepted and redirected to the captive portal login page.

 

1.PNG

 

For example, iPhones and iPads running iOS 6 may reach out to gsp1.apple.com, apple.com, and *.akamaitechnologies.com, whereas newer iOS versions (7 and above) and macOS systems may attempt to connect to a broader set of domains, including www.appleiphonecell.comwww.itools.info , and various *.apple.com and Akamai-related domains.

 

These domain checks are essential for each iOS to determine internet connectivity status and decide whether to automatically launch a captive portal login page.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!