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

Nicole Engard nengard at gmail.com
Wed Dec 9 18:35:02 CET 2009


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
>



More information about the Koha-patches mailing list