Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update robots.txt with new URL endpoints; #504 #1427

Merged
merged 1 commit into from
Jun 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 46 additions & 17 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,50 @@
User-agent: *
Disallow: /admin/
Disallow: /accounts/
Disallow: /500
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit: we should probably sort these so that checking if a URL is in this file is not O(n) for a human. sort < robots.txt should do that for you; you'd just need to move User-agent back up.

Disallow: /accounts
Disallow: /admin
Disallow: /api
Disallow: /comments
Disallow: /contest/*/clone
Disallow: /contest/*/join
Disallow: /contest/*/leave
Disallow: /contest/*/moss
Disallow: /contest/*/participation
Disallow: /contest/*/participations
Disallow: /contest/*/rank
Disallow: /contests/tag
Disallow: /contest/*/stats
Disallow: /contest/*/submissions
Disallow: /data
Disallow: /edit/profile/$
Disallow: /feed
Disallow: /judge-select2
Disallow: /mailgun/mail_activate/$
Disallow: /organization/*/edit
Disallow: /organization/*/join
Disallow: /organization/*/kick
Disallow: /organization/*/leave
Disallow: /organization/*/request
Disallow: /organization/*/requests
Disallow: /problem/*/clone
Disallow: /problem/*/data
Disallow: /problem/*/manage/submission
Disallow: /problem/*/pdf
Disallow: /problem/*/rank
Disallow: /problem/*/raw
Disallow: /problem/*/resubmit
Disallow: /problems/random/$
Disallow: /problem/*/submissions
Disallow: /problem/*/submit
Disallow: /problem/*/resubmit/
Disallow: /problem/*/submissions/
Disallow: /user/*/submissions/
Disallow: /submission/
Disallow: /submissions/
Disallow: /single_submission
Disallow: /edit/profile/
Disallow: /src/
Disallow: /comments/
Disallow: /api/
Disallow: /contest/*/submissions/*/*/
Disallow: /contest/*/join
Disallow: /contest/*/leave
Disallow: /contests/*/*/
Disallow: /tickets/*
Disallow: /problem/*/test_data
Disallow: /problem/*/tickets
Disallow: /src
Disallow: /stats
Disallow: /submission
Disallow: /submissions
Disallow: /tasks
Disallow: /ticket
Disallow: /tickets
Disallow: /user/$
Disallow: /users/find/$
Disallow: /user/*/submissions
Disallow: /widgets