Skip to content

Commit

Permalink
Merge pull request #813 from pulibrary/811-disallow-more
Browse files Browse the repository at this point in the history
Try Disallow: /*?*, as used in orangelight
  • Loading branch information
tpendragon committed Jul 20, 2020
2 parents b244104 + 1aaa2a0 commit b485cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/pages/robots.text.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if Rails.env.production? %>
User-agent: *
Crawl-delay: 10
Disallow: /*?
Disallow: /*?*
<% else %>
User-Agent: *
Disallow: /
Expand Down
2 changes: 1 addition & 1 deletion spec/views/pages/robots.text.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

it "slows down spiders and disallows indexing anything with a query-string" do
expect(response).to include "Disallow: /*?"
expect(response).to include "Disallow: /*?*"
expect(response).to include "Crawl-delay: 10"
end
end
Expand Down

0 comments on commit b485cba

Please sign in to comment.