From 6822d69d955627302abe3f78bcbc5bf2c8db2a36 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Wed, 9 Dec 2009 10:09:56 -0700 Subject: [PATCH] Add basic restrictive robots.txt file to opac I don't need Google and MSN looking at every view of every title in my catalog. So I'll ask all search engine robots to leave the OPAC alone. --- Makefile.PL | 1 + koha-tmpl/robots.txt | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 koha-tmpl/robots.txt diff --git a/Makefile.PL b/Makefile.PL index 826753c67c..7f97292788 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -261,6 +261,7 @@ my $target_map = { './errors' => {target => 'INTRANET_CGI_DIR'}, './koha-tmpl/intranet-tmpl' => {target => 'INTRANET_TMPL_DIR', trimdir => -1}, './koha-tmpl/opac-tmpl' => {target => 'OPAC_TMPL_DIR', trimdir => -1}, + './koha-tmpl/robots.txt' => {target => 'OPAC_WWW_DIR', trimdir => -1}, './kohaversion.pl' => 'INTRANET_CGI_DIR', './labels' => 'INTRANET_CGI_DIR', './mainpage.pl' => 'INTRANET_CGI_DIR', diff --git a/koha-tmpl/robots.txt b/koha-tmpl/robots.txt new file mode 100644 index 0000000000..e62cb3883d --- /dev/null +++ b/koha-tmpl/robots.txt @@ -0,0 +1,4 @@ +# go away +User-agent: * +Disallow: / + -- 2.20.1