Skip to content

Commit

Permalink
Remove robots controller
Browse files Browse the repository at this point in the history
It wasn't actually responding to robots.txt and we never set it to allow.  A static file is simpler
  • Loading branch information
jcoyne committed Jan 21, 2025
1 parent 7011c38 commit 17b524d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 41 deletions.
13 changes: 0 additions & 13 deletions app/controllers/robots_controller.rb

This file was deleted.

5 changes: 2 additions & 3 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ cache_period: <%= 12.hours %>
contact:
email: ~

accessibility_email: 'library-accessibility-contact@lists.stanford.edu'
accessibility_email: "library-accessibility-contact@lists.stanford.edu"

data_dir: tmp/data

allow_robots: false
throttle_searches: false

feature_flags:
allow_json_upload: true

searching_site_slug: 'searching-this-site'
searching_site_slug: "searching-this-site"

# en is placed first in this list so that when the codes are sorted en will be the
# first to come after the codes sorted to the beginning (e.g. *-Arab or *-Latn)
Expand Down
2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
25 changes: 0 additions & 25 deletions spec/requests/robots_spec.rb

This file was deleted.

0 comments on commit 17b524d

Please sign in to comment.