URL alias restriction
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Drupal is quite talkative in terms of showing off it's content. Often it makes content accessible which we actually don't want to show. That happens for instance very easily, if you're using nodes as content containers only - never really wanting to show the actual node pages of these containers.
Thanks to taxonomy node and similiar listings + some SEO javascript "callling home" often these unstyled content containers land on public search indexes as soon as an Administrator has an accidental look at these listing or node pages.
This module restricts access to certain nodes & node listings or any other available page inside of Drupal based on the set URL alias for a specific page.
http://example.com/restricted-access/title-of-page
Usage example:
An example: You have a node type like "Slider element", which you never actually want to show anywhere else than in the slider view. Simply edit the URL pattern for this node type with your previously defined URL element - for instance:
restricted-access/[node:title]
Any node or any other Drupal page having a URL path alias matching this pattern will not be accessible by anonymous users. This also applies on the unaliased node path, eg: node/123, as the URL alias is looked up and the decision made based on that.
The URL pattern edit screen of Pathauto can be found here:admin/config/search/path/patterns
Please note that URL patterns can be defined for a whole content type or vocabulary. But it's also possible to restrict access to single nodes, taxonomy term or really any other page - depending on your use case - directly in the URL alias adminstration screen:admin/config/search/path
This module only throws a fast 404 page at the moment, as drupal_fast_404() would do it. Might change it to a proper Drupal 404 page if people are interested.
tl;dr .. Have a look at the picture. :-)
Dependencies:
- needs Pathauto