PHPackages                             rotassator/silverstripe-subsites-robotstxt - 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. rotassator/silverstripe-subsites-robotstxt

ActiveSilverstripe-module[Utility &amp; Helpers](/categories/utility)

rotassator/silverstripe-subsites-robotstxt
==========================================

Generate custom robots.txt for subsites

1.0(8y ago)07621MITPHP

Since May 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/rotassator/silverstripe-subsites-robotstxt)[ Packagist](https://packagist.org/packages/rotassator/silverstripe-subsites-robotstxt)[ Docs](https://github.com/rotassator/silverstripe-subsites-robotstxt)[ RSS](/packages/rotassator-silverstripe-subsites-robotstxt/feed)WikiDiscussions master Synced today

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

SilverStripe Subsites Robots.txt Module
=======================================

[](#silverstripe-subsites-robotstxt-module)

Generate custom `robots.txt` for each subsite.

This module aims to prevent indexing of subsite-specific folder assets that belong to *other* subsites. It creates a `robots.txt` file with `Disallow` rules for folders belonging to other subsites (ie. not folders that are common or for the current subsite).

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

[](#installation)

```
composer require rotassator/silverstripe-subsites-robotstxt

```

### Live mode

[](#live-mode)

Set the site to *live* mode to see subsite-specific `robots.txt`. On `dev` or `test` environments, robots are disallowed for all files.

See [Environment management](https://docs.silverstripe.org/en/3/getting_started/environment_management/) documentation for more details.

Example `robots.txt` for live site
----------------------------------

[](#example-robotstxt-for-live-site)

For `example1.com` subsite:

```
# robots.txt for Example 1

User-agent: *
Disallow: assets/example2/
Disallow: assets/example2-documents/

```

For `example2.com` subsite:

```
# robots.txt for Example 2

User-agent: *
Disallow: assets/example1/

```

### Example for non-live site

[](#example-for-non-live-site)

```
# robots.txt for Example 1

User-agent: *
Disallow: /

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Unknown

Total

1

Last Release

3282d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa536f6c1ffc396423a81f8cf70f328e02676781287265513b07d61bd3e2bbe7?d=identicon)[rotassator](/maintainers/rotassator)

---

Top Contributors

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

---

Tags

silverstriperobotsrobots.txtsubsites

### Embed Badge

![Health badge](/badges/rotassator-silverstripe-subsites-robotstxt/health.svg)

```
[![Health](https://phpackages.com/badges/rotassator-silverstripe-subsites-robotstxt/health.svg)](https://phpackages.com/packages/rotassator-silverstripe-subsites-robotstxt)
```

###  Alternatives

[silverstripe/subsites

Run multiple sites from a single SilverStripe install.

65392.9k20](/packages/silverstripe-subsites)[tractorcow/silverstripe-robots

Simple robots generation module for Silverstripe

1395.1k7](/packages/tractorcow-silverstripe-robots)[twohill/silverstripe-homepagefordomain

Allows to designate a page anywhere in the tree as the homepage for a specific domain, overruling the usual homepage (which is identified by the 'home' URLSegment).

131.3k](/packages/twohill-silverstripe-homepagefordomain)[silverstripe/multi-domain

Allows multiple domains to access one CMS instance, mapping them to different sections of the hierarchy

141.6k](/packages/silverstripe-multi-domain)

PHPackages © 2026

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