mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
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| %>
|
||||
User-agent: <%= agent %>
|
||||
Crawl-delay: <%= delay %>
|
||||
<% RobotsTxtController::DISALLOWED_PATHS.each do |path| %>
|
||||
Disallow: <%= Discourse.base_uri + path %>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user