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

Michael Hafen mdhafen at tech.washk12.org
Wed Dec 9 18:53:03 CET 2009


Yeah, I was thinking that most people would want to be indexed.  This is
more for my benefit.

I don't know how this could be a sys.pref.  The apache config would have
to be modified to parse .txt files as perl files for that to work I
think.

On Wed, 2009-12-09 at 12:35 -0500, Nicole Engard wrote:
> There are plenty of people who do want their records indexed on search
> engines.  This should be a sys pref so that people can decide if they
> want their OPAC indexed or not.
> 
> Thanks
> Nicole
> 
> On Wed, Dec 9, 2009 at 12:09 PM, Michael Hafen <mdhafen at tech.washk12.org> wrote:
> > 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
> >
> > _______________________________________________
> > Koha-patches mailing list
> > Koha-patches at lists.koha.org
> > http://lists.koha.org/mailman/listinfo/koha-patches
> >


-- 
Michael Hafen
Systems Analyst and Programmer
Washington County School District
Utah, USA

for Koha checkout
http://development.washk12.org/gitweb/
or
git://development.washk12.org/koha





More information about the Koha-patches mailing list