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.
This commit is contained in:
Michael Hafen 2009-12-09 10:09:56 -07:00 committed by Henri-Damien LAURENT
parent 32698f217a
commit 6822d69d95
2 changed files with 5 additions and 0 deletions

View 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',

4
koha-tmpl/robots.txt Normal file
View File

@ -0,0 +1,4 @@
# go away
User-agent: *
Disallow: /