PHPackages                             code711/updatetrutstedhostsfromsite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. code711/updatetrutstedhostsfromsite

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

code711/updatetrutstedhostsfromsite
===================================

TYPO3 Extension to automatically update the $GLOBALS\['TYPO3\_CONF\_VARS'\]\['SYS'\]\['trustedHostsPattern'\] setting based on the configured sites

1.1.0(3y ago)01.6kMITPHPPHP 7.4.\*||8.0.\*||8.1.\*||8.2.\*

Since Mar 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/codeseveneleven/typo3-updatetrutstedhostsfromsite)[ Packagist](https://packagist.org/packages/code711/updatetrutstedhostsfromsite)[ RSS](/packages/code711-updatetrutstedhostsfromsite/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (11)Versions (3)Used By (0)

TYPO3 Site config - automatic updates to $GLOBALS\['TYPO3\_CONF\_VARS'\]\['SYS'\]\['trustedHostsPattern'\]
==========================================================================================================

[](#typo3-site-config---automatic-updates-to-globalstypo3_conf_varssystrustedhostspattern)

[![Latest Stable Version](https://camo.githubusercontent.com/67c51bc1dfb4032b83661c857b0f12f8c65d63fe8e8399560d1d4ca45f41a8c5/68747470733a2f2f706f7365722e707567782e6f72672f636f64653731312f7570646174657472757473746564686f73747366726f6d736974652f762f737461626c652e737667)](https://extensions.typo3.org/extension/updatetrustedhostfromsites)[![TYPO3 12](https://camo.githubusercontent.com/08afacc49187e63c796f7d1c4401d0f0563bab574d9c525312b2827acb09a7c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31322d6f72616e67652e737667)](https://get.typo3.org/version/12)[![TYPO3 11](https://camo.githubusercontent.com/5432de37ab8517e6d9e6f803a2e1a7674a308c6d93896fe8a6fbc8a4cb50aece/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31312d6f72616e67652e737667)](https://get.typo3.org/version/11)[![Total Downloads](https://camo.githubusercontent.com/aba8e45230f691f0bcd4339b7c6e0bd03182c962bc01694a0ed4051335d3fe9b/68747470733a2f2f706f7365722e707567782e6f72672f636f64653731312f7570646174657472757473746564686f73747366726f6d736974652f642f746f74616c2e737667)](https://packagist.org/packages/code711/updatetrutstedhostsfromsite)[![Monthly Downloads](https://camo.githubusercontent.com/1522bfc67b82d5b6cc96e8e0bfa6e57759d8cb973ef0c9ea0c00c1da640154f3/68747470733a2f2f706f7365722e707567782e6f72672f636f64653731312f7570646174657472757473746564686f73747366726f6d736974652f642f6d6f6e74686c79)](https://packagist.org/packages/code711/updatetrutstedhostsfromsite)[![PHPSTAN:Level 9](https://camo.githubusercontent.com/9cf3eedeb93d7af9f2259cf85f1426ad523b064238a272d9cc6b69343fb5cb91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174253544)](https://camo.githubusercontent.com/9cf3eedeb93d7af9f2259cf85f1426ad523b064238a272d9cc6b69343fb5cb91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174253544)[![build:passing](https://camo.githubusercontent.com/989e45ca817066fe8c5d1460cb806846261eaf6753be5021bb809440ff2e9c0c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e7376673f7374796c653d666c6174253544)](https://camo.githubusercontent.com/989e45ca817066fe8c5d1460cb806846261eaf6753be5021bb809440ff2e9c0c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e7376673f7374796c653d666c6174253544)

This TYPO3 extension will automatically update the $GLOBALS\['TYPO3\_CONF\_VARS'\]\['SYS'\]\['trustedHostsPattern'\] variable when changes to the Site Configurations are made, reflecting the used domains in the system.

This is achieved with the Extension [EXT:siteconfigurationevents](https://extensions.typo3.org/extension/siteconfigurationevents) which provides PSR-14 events when changing the Site config in the backend.

Additionally a command for CLI is available to update the trusted host pattern from the shell or during CI/CD or as a scheduler task via cron.

```
./vendor/bin/typo3 code711:updatetrustedhostfromsites -h        ✔  10118  16:52:23
Description:
  update SYS/trustedHostsPattern based on the site configuration

Usage:
  code711:updatetrustedhostfromsites

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```

Calling the command with -v or --verbose will print the new value to the console additionaly to setting it in the config.

Installation
------------

[](#installation)

```
composer req code711/updatetrustedhostfromsites
```

Configuration
-------------

[](#configuration)

to date no configuration options are available

Remarks
-------

[](#remarks)

This extension WILL yield to the TYPO3\_CONTEXT (or other similar) Environment Variable if Variations in the Site Configs are set.

A . will not be escaped (as it should be). This is a limitation as the escape character \\ would be escaped again by the exporter somehow.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~29 days

Total

2

Last Release

1183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35fe42b338d9a56b03685815a4d6b198d7d78be7d75859f0e8978c88f4605afe?d=identicon)[code711](/maintainers/code711)

---

Top Contributors

[![foppelfb](https://avatars.githubusercontent.com/u/7147768?v=4)](https://github.com/foppelfb "foppelfb (2 commits)")

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/code711-updatetrutstedhostsfromsite/health.svg)

```
[![Health](https://phpackages.com/badges/code711-updatetrutstedhostsfromsite/health.svg)](https://phpackages.com/packages/code711-updatetrutstedhostsfromsite)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[wazum/sluggi

TYPO3 extension for URL slug management with inline editing, auto-sync, locking, access control, and redirects

40529.5k](/packages/wazum-sluggi)[typo3/cms-scheduler

TYPO3 CMS Scheduler - Schedule tasks to run once or periodically at a specific time.

169.3M231](/packages/typo3-cms-scheduler)[typo3/cms-lowlevel

TYPO3 CMS Lowlevel - Technical analysis of the system. This includes raw database search, checking relations, counting pages and records etc.

178.2M316](/packages/typo3-cms-lowlevel)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.4M80](/packages/typo3-cms-redirects)[typo3/cms-form

TYPO3 CMS Form - Flexible TYPO3 frontend form framework that comes with a backend editor interface.

147.6M265](/packages/typo3-cms-form)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
