SimulPiscator / AirSane

Publish SANE scanners to MacOS, Android, and Windows via Apple AirScan.
GNU General Public License v3.0
247 stars 26 forks source link

404 should be silent if needed #71

Closed bastien-roucaries closed 2 years ago

bastien-roucaries commented 3 years ago

ultra low priority some admin prefer to redirect 404 to something else for security point of view

SimulPiscator commented 3 years ago

Right now, a warning is written to stderr when an invalid path is requested, and a 404 Error page is served. Do you suggest to suppress the error page, and not respond anything, just close the connection when 404 would be the response?

bastien-roucaries commented 3 years ago

You are right removed the bad advice

Good advice will be to return

But it is superlow priority

bastien-roucaries commented 3 years ago

Or better return pure html5 and use import from 404.html https://www.html5rocks.com/en/tutorials/webcomponents/imports/

SimulPiscator commented 2 years ago

From the linked site:

HTML Imports are deprecated and was removed from Chrome in February 2020.