Show 404 on page for node path url instead of redirecting to it's alias I'm currently using the Redirect module in Drupal 8 along with Pathauto to create aliases on all url's.  So for example /node/23 would be /article/some-text-here.  When a user types in /node/23 in the url it automatically redirects them to the alias url.  I want to show a 404 whenever the user uses the node path url instead of redirecting that way they don't ever have a chance to find something they shouldn't by traversing through my site with that pattern.
Make sure apache mod_alias is enabled and create a rule in .htaccess like:

Redirect 404 /node/.*$