Parcourir la source

Added robots.txt for roundcube webmail to prevent search bot crawling.
This closes #654

Raphael Schneeberger il y a 6 ans
Parent
commit
c3b7bc0a72
3 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 1 0
      CHANGELOG.md
  2. 4 0
      install/hst-install-debian.sh
  3. 4 0
      install/hst-install-ubuntu.sh

+ 1 - 0
CHANGELOG.md

@@ -57,6 +57,7 @@ All notable changes to this project will be documented in this file.
 - Fixed MultiPHP upgrade script to update all web templates.
 - Fixed MultiPHP upgrade script to update all web templates.
 - Fixed report issue link in installer scripts.
 - Fixed report issue link in installer scripts.
 - Fixed database user authentification on backup restore.
 - Fixed database user authentification on backup restore.
+- Added robots.txt for roundcube webmail to prevent search bot crawling.
 
 
 ## [1.0.6] - 2019-09-24 - Hotfix
 ## [1.0.6] - 2019-09-24 - Hotfix
 ### Bugfixes
 ### Bugfixes

+ 4 - 0
install/hst-install-debian.sh

@@ -1559,6 +1559,10 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
     # Configure webmail alias
     # Configure webmail alias
     echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
     echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
 
 
+    # Add robots.txt
+    echo "User-agent: *" > /var/lib/roundcube/robots.txt
+    echo "Disallow: /" >> /var/lib/roundcube/robots.txt
+
     # Restart services
     # Restart services
     if [ "$apache" = 'yes' ]; then
     if [ "$apache" = 'yes' ]; then
         systemctl restart apache2
         systemctl restart apache2

+ 4 - 0
install/hst-install-ubuntu.sh

@@ -1484,6 +1484,10 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
     # Configure webmail alias
     # Configure webmail alias
     echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
     echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
 
 
+    # Add robots.txt
+    echo "User-agent: *" > /var/lib/roundcube/robots.txt
+    echo "Disallow: /" >> /var/lib/roundcube/robots.txt
+
     phpenmod mcrypt > /dev/null 2>&1
     phpenmod mcrypt > /dev/null 2>&1
 
 
     # Restart services
     # Restart services