block some more dumb trackback spam from logging
This commit is contained in:
parent
90ff92e008
commit
4cb6606e8c
|
@ -25,6 +25,9 @@ if Rails.env.production?
|
|||
|
||||
# suppress trackback spam bots
|
||||
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
|
||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /api_key/ })
|
||||
|
|
Loading…
Reference in New Issue