[Koha-patches] [PATCH] Add basic restrictive robots.txt file to opac

Michael Hafen mdhafen at tech.washk12.org
Wed Dec 9 18:09:56 CET 2009


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(+), 0 deletions(-)
 create mode 100644 koha-tmpl/robots.txt

diff --git a/Makefile.PL b/Makefile.PL
index aeeba7f..a2803ee 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 0000000..e62cb38
--- /dev/null
+++ b/koha-tmpl/robots.txt
@@ -0,0 +1,4 @@
+# go away
+User-agent: *
+Disallow: /
+
-- 
1.6.3.3




More information about the Koha-patches mailing list