Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

GitHub returns 404 instead of 403 to prevent these information leaks.


> GitHub returns 404 instead of 403 to prevent these information leaks.

This behavior is explicitly permitted by the standard, FWIW: An origin server that wishes to "hide" the current existence of a forbidden target resource MAY instead respond with a status code of 404 (Not Found).

https://tools.ietf.org/html/rfc7231#section-6.5.3




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: