How to restrict access to a node via node/12 and allow access via a path like content/sometitle? Problem: I want to restrict direct node access using node number www.example.com/node/12 and allow access using pathauto alias www.example.com/content/sometitle to anonymous user. This user should be allowed to see all content of node using only Pathauto title path but not with node number to snoof.

Mostly I want to target anonymous users. Admin always has access to everything. 

In simple terms, I want to redirect all node/Number paths (not node/add/ContentType) to say the Home page or No Access page.
The Global Redirect module does what you want (and more).


  ... Checks if the Clean URLs feature is enabled and then checks the
  current URL is being accessed using the clean method rather than the
  'unclean' method.


It redirects the node/xx to content/your-content etc if clean URLs feature is enabled.