configurable robots.txt #625

Closed
opened 2026-02-04 21:31:08 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @ssddanbrown on GitHub (Mar 31, 2018).

Originally assigned to: @ssddanbrown on GitHub.

The robots.txt file should be configurable and default to false.

Existing related pull request and history: #734

Originally created by @ssddanbrown on GitHub (Mar 31, 2018). Originally assigned to: @ssddanbrown on GitHub. The robots.txt file should be configurable and default to false. Existing related pull request and history: #734
OVERLORD added the 🛠️ Enhancement📖 Docs Update labels 2026-02-04 21:31:08 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Mar 31, 2018):

Added a fully configurable solution to this now.

The default output depends on Allow public viewing app setting.
Otherwise can be overridden in .env file via ALLOW_ROBOTS=false or ALLOW_ROBOTS=true.

Otherwise view file can be customised/extended view theme overrides since the content is contained within a robots.txt view.

@ssddanbrown commented on GitHub (Mar 31, 2018): Added a fully configurable solution to this now. The default output depends on `Allow public viewing` app setting. Otherwise can be overridden in `.env` file via `ALLOW_ROBOTS=false` or `ALLOW_ROBOTS=true`. Otherwise view file can be customised/extended view theme overrides since the content is contained within a `robots.txt` view.
Author
Owner

@userbradley commented on GitHub (May 19, 2022):

@ssddanbrown Was wondering if this allows for custom overrides, as I dont want my bookstack being indexed at all, but would like one page to be indexed.

Not sure if this is an option, or if it's either all or none

@userbradley commented on GitHub (May 19, 2022): @ssddanbrown Was wondering if this allows for custom overrides, as I dont want my bookstack being indexed at all, but would like one page to be indexed. Not sure if this is an option, or if it's either `all or none`
Author
Owner

@ssddanbrown commented on GitHub (May 19, 2022):

@userbradley The contents of robots.txt is driven by this view template.

Any of the view templates in BookStack can be overridden without editing the original files, using our visual theme system. (Video Guide).
Should be able to just override the above template using the visual theme system to do whatever you need.

Just shout if you need further guidance.

@ssddanbrown commented on GitHub (May 19, 2022): @userbradley The contents of robots.txt is driven by [this view template](https://github.com/BookStackApp/BookStack/blob/development/resources/views/misc/robots.blade.php). Any of the view templates in BookStack can be overridden without editing the original files, using our [visual theme system](https://github.com/BookStackApp/BookStack/blob/development/dev/docs/visual-theme-system.md). [(Video Guide)](https://www.youtube.com/watch?v=gLy_2GBse48). Should be able to just override the above template using the visual theme system to do whatever you need. Just shout if you need further guidance.
Author
Owner

@userbradley commented on GitHub (May 19, 2022):

@ssddanbrown Ledge Thanks!!

@userbradley commented on GitHub (May 19, 2022): @ssddanbrown Ledge Thanks!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#625