Log in
Model

DomainManager

Magento\Downloadable\Model\DomainManager

What it does

This class manages a whitelist of allowed domains for downloadable product files in Magento 2.

Developers use it to add or remove trusted domains from the environment configuration, ensuring downloadable content URLs can only point to approved hosts.

This is a security feature to prevent malicious external file links in downloadable products.

Public Methods

  • getDomains()
  • addDomains()
  • removeDomains()