Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Unpublished 404 is a simple module that emits a 404 (Not Found) error when a user tries to access an unpublished node instead of the default behaviour of emitting a 403 (Access Denied).