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

View File

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