seo: prevent crawling comment, show_seq links.

* Mark /comments/:id links in comment timestamps as nofollow to prevent
  Googlebot from crawling these links.
* Mark /posts/:id/show_seq links as disallowed in robots.txt to prevent
  Googlebot from crawling forward/back links on posts.
This commit is contained in:
evazion
2021-12-13 03:32:16 -06:00
parent c0610cb809
commit fbcf98db96
2 changed files with 2 additions and 1 deletions

View File

@@ -24,7 +24,7 @@
<% end %> <% end %>
<% end %> <% end %>
</div> </div>
<%= link_to time_ago_in_words_tagged(comment.created_at), comment, class: "message-timestamp" %> <%= link_to time_ago_in_words_tagged(comment.created_at), comment, class: "message-timestamp", rel: "nofollow" %>
</div> </div>
<div class="content"> <div class="content">

View File

@@ -9,6 +9,7 @@ Disallow: /posts?tags=source:*
Disallow: /posts?tags=ordfav:* Disallow: /posts?tags=ordfav:*
Disallow: /posts?tags=approver:* Disallow: /posts?tags=approver:*
Disallow: /posts/*/favorites Disallow: /posts/*/favorites
Disallow: /posts/*/show_seq*
Disallow: <%= artist_urls_path %> Disallow: <%= artist_urls_path %>
Disallow: <%= artist_versions_path %> Disallow: <%= artist_versions_path %>