Log in
Model

BaseUrlChecker

Magento\Store\Model\BaseUrlChecker

What it does

This class validates that incoming HTTP requests match the configured base URL of a Magento store.

Developers use it to ensure requests are using the correct protocol (HTTP/HTTPS), host, and path, preventing access through unauthorized domains or URL variations.

It also checks store configuration to determine if base URL verification is enabled and if the frontend should use HTTPS.

Public Methods

  • execute()
  • isEnabled()
  • isFrontendSecure()