From 253daab50e12a44d45509ca1d2da57702b552698 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 23 Dec 2016 08:17:08 +0000 Subject: [PATCH] add robots.txt file to avoid scan of directory by google, bing, etc robots --- conf/robots.txt | 2 ++ scripts/install | 1 + scripts/upgrade | 2 ++ 3 files changed, 5 insertions(+) create mode 100755 conf/robots.txt diff --git a/conf/robots.txt b/conf/robots.txt new file mode 100755 index 0000000..1f53798 --- /dev/null +++ b/conf/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / diff --git a/scripts/install b/scripts/install index d8a3156..d87d76f 100755 --- a/scripts/install +++ b/scripts/install @@ -63,6 +63,7 @@ sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php timezone=`sudo cat /etc/timezone`; sed -i "s@TIMEZONETOCHANGE@$timezone@g" ../sources/config_local.php +sudo cp ../conf/robots.txt ../sources/ # To be done : make it an if loop diff --git a/scripts/upgrade b/scripts/upgrade index 4866ef0..746e971 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,6 +78,8 @@ sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php timezone=`sudo cat /etc/timezone`; sed -i "s@TIMEZONETOCHANGE@$timezone@g" ../sources/config_local.php +sudo cp ../conf/robots.txt ../sources/ + # Base site sudo cp -a ../sources/* $final_path/