block some more dumb trackback spam from logging

This commit is contained in:
Jeff Atwood 2015-01-19 01:19:34 -08:00
parent 90ff92e008
commit 4cb6606e8c
1 changed files with 3 additions and 0 deletions

View File

@ -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/ })