Skip to content

Commit c3b7bc0

Browse files
committed
Added robots.txt for roundcube webmail to prevent search bot crawling.
This closes hestiacp#654
1 parent 402530a commit c3b7bc0

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ All notable changes to this project will be documented in this file.
5757
- Fixed MultiPHP upgrade script to update all web templates.
5858
- Fixed report issue link in installer scripts.
5959
- Fixed database user authentification on backup restore.
60+
- Added robots.txt for roundcube webmail to prevent search bot crawling.
6061

6162
## [1.0.6] - 2019-09-24 - Hotfix
6263
### Bugfixes

install/hst-install-debian.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,10 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
15591559
# Configure webmail alias
15601560
echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
15611561

1562+
# Add robots.txt
1563+
echo "User-agent: *" > /var/lib/roundcube/robots.txt
1564+
echo "Disallow: /" >> /var/lib/roundcube/robots.txt
1565+
15621566
# Restart services
15631567
if [ "$apache" = 'yes' ]; then
15641568
systemctl restart apache2

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,10 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
14841484
# Configure webmail alias
14851485
echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
14861486

1487+
# Add robots.txt
1488+
echo "User-agent: *" > /var/lib/roundcube/robots.txt
1489+
echo "Disallow: /" >> /var/lib/roundcube/robots.txt
1490+
14871491
phpenmod mcrypt > /dev/null 2>&1
14881492

14891493
# Restart services

0 commit comments

Comments
 (0)