I have a bot that is hitting my page with weird damaged urls like this one: /about/.html
. This leads to an entry in bugsnag and I would love to get rid of them. I know how to add a filter to my nginx to fix this, but out of curiosity : how would I send those requests to a special 404 page just using the phoenix router system? The bot appends .html
to every url it finds, so this needs a very generic approach.
Catch-all route or Plug early in the pipeline that will respond with 404 and halt.
1 Like