per spec we need to repeat disallow paths per agent

This commit is contained in:
Sam 2018-04-16 15:38:10 +10:00
parent a1ef455c78
commit 223379e21a
1 changed files with 4 additions and 0 deletions

View File

@ -23,4 +23,8 @@ Disallow: <%= Discourse.base_uri + "/" %>
<% @crawler_delayed_agents.each do |agent, delay| %> <% @crawler_delayed_agents.each do |agent, delay| %>
User-agent: <%= agent %> User-agent: <%= agent %>
Crawl-delay: <%= delay %> Crawl-delay: <%= delay %>
<% RobotsTxtController::DISALLOWED_PATHS.each do |path| %>
Disallow: <%= Discourse.base_uri + path %>
<% end %>
<% end %> <% end %>