Add basic restrictive robots.txt file to opac
authorMichael Hafen <mdhafen@tech.washk12.org>
Wed, 9 Dec 2009 17:09:56 +0000 (10:09 -0700)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Sun, 20 Dec 2009 13:27:44 +0000 (14:27 +0100)
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
koha-tmpl/robots.txt [new file with mode: 0644]

index 826753c..7f97292 100644 (file)
@@ -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 (file)
index 0000000..e62cb38
--- /dev/null
@@ -0,0 +1,4 @@
+# go away
+User-agent: *
+Disallow: /
+