mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:01:13 +08:00
block some more dumb trackback spam from logging
This commit is contained in:
@ -25,6 +25,9 @@ if Rails.env.production?
|
|||||||
|
|
||||||
# suppress trackback spam bots
|
# suppress trackback spam bots
|
||||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }),
|
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }),
|
||||||
|
# suppress trackback spam bots submitting to random URLs
|
||||||
|
# test for the presence of these params: url, title, excerpt, blog_name
|
||||||
|
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { params: { url: /./, title: /./, excerpt: /./, blog_name: /./} },
|
||||||
|
|
||||||
# API calls, TODO fix this in rails
|
# API calls, TODO fix this in rails
|
||||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /api_key/ })
|
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /api_key/ })
|
||||||
|
Reference in New Issue
Block a user