per spec we need to repeat disallow paths per agent
This commit is contained in:
parent
a1ef455c78
commit
223379e21a
|
@ -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 %>
|
||||||
|
|
Loading…
Reference in New Issue