diff options
author | Yorhel <git@yorhel.nl> | 2010-11-16 11:07:46 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-11-16 11:07:46 +0100 |
commit | afa8f6cb619fd59d164d15d12249560706878639 (patch) | |
tree | 55960b6eb7ae36de95b6daf87d0e96eef439756f /lib/VNDB/Handler/Discussions.pm | |
parent | d48fef4c07d55a4983bfe6df49e72dae0c5d8b5e (diff) |
Handler::Discussions: Added 'noindex' meta tag to all discussion pages
According to my HTTP logs, google searches are commonly used by spammers
to find threads to spam. Not having the discussion board indexed also
removes the reason for spammers to spam in the first place.
Unfortunately, this is a long-term change; search engines don't update
their index that fast. :-(
Diffstat (limited to 'lib/VNDB/Handler/Discussions.pm')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index ed18fcaf..8f7ae76c 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -29,7 +29,7 @@ sub thread { my $p = $self->dbPostGet(tid => $tid, results => 25, page => $page, what => 'user'); return 404 if !$p->[0]; - $self->htmlHeader(title => $t->{title}); + $self->htmlHeader(title => $t->{title}, noindex => 1); div class => 'mainbox'; h1 $t->{title}; h2 mt '_thread_postedin'; @@ -294,7 +294,7 @@ sub board { sort => $type eq 'an' ? 'id' : 'lastpost', reverse => 1, ); - $self->htmlHeader(title => $title, noindex => !@$list || $type eq 'u'); + $self->htmlHeader(title => $title, noindex => 1); $self->htmlMainTabs($type, $obj, 'disc') if $iid; div class => 'mainbox'; @@ -330,7 +330,7 @@ sub board { sub index { my $self = shift; - $self->htmlHeader(title => mt '_disindex_title'); + $self->htmlHeader(title => mt('_disindex_title'), noindex => 1); div class => 'mainbox'; h1 mt '_disindex_title'; p class => 'browseopts'; |