mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user