url_path_restrictions
This module allows you to disallow certain paths in URL aliases. For example, if "/api" is a special folder in your web site's document root, then you can prevent Drupal from creating any URL aliases that start with "/api".
Features
You might need this module if you want to restrict the URL paths used in URL aliases. For example, if your Drupal website lives at https://www.example.com/, and you have a non-Drupal app at https://www.example.com/different-app, then you might not want someone to create a Drupal page that is available at /different-app/my-page (because the request to that URL might be handled by the app under /different-app path).
This module integrates with both URL aliases (from core's Path module) and with other routes. That is, you can prevent both URL aliases and routes from being set if they conflict with your list of disallowed URL paths.
Post-Installation
See README.md
Additional Requirements
- Path module (from Drupal Core)
- Pathauto