mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FIX: simplify so we ban all auth paths
previously plugins that have auth paths were not disallowed and robots tend to call them
This commit is contained in:
parent
f62073a22a
commit
baa72d18f8
1 changed files with 1 additions and 7 deletions
|
@ -4,13 +4,7 @@ class RobotsTxtController < ApplicationController
|
|||
|
||||
# NOTE: order is important!
|
||||
DISALLOWED_PATHS ||= %w{
|
||||
/auth/cas
|
||||
/auth/facebook/callback
|
||||
/auth/twitter/callback
|
||||
/auth/google/callback
|
||||
/auth/yahoo/callback
|
||||
/auth/github/callback
|
||||
/auth/cas/callback
|
||||
/auth/
|
||||
/assets/browser-update*.js
|
||||
/users/
|
||||
/u/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue