Official Play Documentation: Play Filters Documentation 2.8
Filters are defined in application.conf:
play.de.innfactory.bootstrapplay2.filters.enabled = [
"de.innfactory.bootstrapplay2.filters.logging.AccessLoggingFilter",
"de.innfactory.bootstrapplay2.filters.access.RouteBlacklistFilter",
"play.de.innfactory.bootstrapplay2.filters.cors.CORSFilter"
]
-
Logs all requests where the statusCode is contained in application.conf:
logging.access.statusList = [404,403,401] logging.access.statusList = ${?LOGGING_STATUSLIST}
- Blocks all requests defined in RouteBlacklistFilter.scala