-
Notifications
You must be signed in to change notification settings - Fork 166
Change robots to deny by default with allowlist #10292
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
ea0ad3f
77e7848
e594775
3ee1ae8
13394eb
2b15d49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| User-agent: * | ||
| Disallow: /users/password/edit | ||
| Disallow: /sign_up/enter_password | ||
| Disallow: /sign_up/email/confirm | ||
| Disallow: /api/saml/ | ||
| Disallow: / | ||
| Allow: /$ | ||
| Allow: /es$ | ||
| Allow: /fr$ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to try to do this programmatically with https://github.com/18F/identity-idp/blob/4087aba3d76b0607fdf7f441781ff581d203ba0b/lib/idp/constants.rb#L3?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, you're probably right, we could do this with a custom route + controller and it'd probably be better, and it would also let us use URL route helpers as well.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are you suggesting making that a live file served by a Rails controller, or an ERB that we write out to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I was thinking a controller, and implemented a first pass in 3ee1ae8, though I do like the idea of a static file since it wouldn't be something we expect to change. Then again, we probably don't get much traffic to this so hopefully it's not a big deal either way? |
||
| Allow: /sign_up/enter_email$ | ||
| Allow: /es/sign_up/enter_email$ | ||
| Allow: /fr/sign_up/enter_email$ | ||
| Allow: /users/password/new$ | ||
| Allow: /es/users/password/new$ | ||
| Allow: /fr/users/password/new$ | ||
Uh oh!
There was an error while loading. Please reload this page.