1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-11 01:51:32 +00:00
redmine/app/views/welcome/robots.text.erb
Go MAEDA 0f8c36869e Disallow all in /robots.txt if login is required (#37807).
Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@21940 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-11-01 03:28:08 +00:00

25 lines
980 B
Plaintext

User-agent: *
<% if Setting.login_required? -%>
Disallow: /
<% else -%>
<% @projects.each do |project| -%>
<% [project, project.id].each do |p| -%>
Disallow: <%= url_for(:controller => 'repositories', :action => :show, :id => p) %>
Disallow: <%= url_for(project_issues_path(:project_id => p)) %>
Disallow: <%= url_for(project_activity_path(:id => p)) %>
<% end -%>
<% end -%>
Disallow: <%= url_for(issues_gantt_path) %>
Disallow: <%= url_for(issues_calendar_path) %>
Disallow: <%= url_for(activity_path) %>
Disallow: <%= url_for(search_path) %>
Disallow: <%= url_for(issues_path(:sort => '')) %>
Disallow: <%= url_for(issues_path(:query_id => '')) %>
Disallow: <%= url_for(issues_path) %>?*set_filter=
Disallow: <%= url_for(issues_path(:trailing_slash => true)) %>*.pdf$
Disallow: <%= url_for(projects_path(:trailing_slash => true)) %>*.pdf$
Disallow: <%= url_for(signin_path) %>
Disallow: <%= url_for(register_path) %>
Disallow: <%= url_for(lost_password_path) %>
<% end -%>