nginx-bbb-sent.conf 593 B

1234567891011121314151617
  1. # A filter to block requests with a suspicious $body_bytes_sent
  2. #
  3. # Matches e.g.
  4. # put some new matches here
  5. #
  6. [Definition]
  7. ## Matches requests for demu.red/ that have a $body_bytes_sent of set ammount, as these requests look suspicious and never ask for the favicon
  8. ## This number must be updated after making a new blog post. A basic curl will give a log line with the correct number
  9. failregex = ^<HOST> -.* "(GET|POST|HEAD) / HTTP/.*" 200 29091
  10. #^<HOST> -.* "(POST|HEAD|GET)
  11. ## Ignore approved CLI useragents
  12. ignoreregex = ^<HOST> -.* "(GET|POST|HEAD).*HTTP.*".*(w3m|Lynx)