mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:42:46 +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
|
@ -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…
Reference in New Issue
Block a user