From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH] searchview: nofollow on mbox downloads
Date: Thu, 7 Dec 2017 20:30:56 +0000 [thread overview]
Message-ID: <20171207203056.5347-1-e@80x24.org> (raw)
Some search results are gigantic, and search engines are
unlikely to be able to handle gzipped mboxes anyways.
---
lib/PublicInbox/SearchView.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm
index 3eff708..8e0c3cf 100644
--- a/lib/PublicInbox/SearchView.pm
+++ b/lib/PublicInbox/SearchView.pm
@@ -168,7 +168,8 @@ sub search_nav_top {
$rv .= qq{|<a\nhref="?$A">Atom feed</a>]};
my $m = $q->qs_html(x => 'm', r => undef);
warn "m: $m\n";
- $rv .= qq{\n\t\t\t\t\t\tdownload: <a\nhref="?$m">mbox.gz</a>};
+ $rv .= qq{\n\t\t\t\t\t\tdownload: };
+ $rv .= qq{<a\nhref="?$m"\nrel="nofollow">mbox.gz</a>};
}
sub search_nav_bot {
--
EW
next reply other threads:[~2017-12-07 20:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-07 20:30 Eric Wong [this message]
2017-12-08 21:01 ` [PATCH] search: force large mbox result downloads to POST Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171207203056.5347-1-e@80x24.org \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).