简体   繁体   English

Drupal-停止节点/ nid访问

[英]Drupal - stop node/nid access

How to prevent users from also using the node/nid path or the index.php?q= one. 如何防止用户也使用节点/ nid路径或index.php?q = 1。 In other words ... there should be just ONE path to a page / node... not several. 换句话说,页面/节点的路径应该只有一个,而不是多个。

My path uses a sha1 hash by using the pathauto module... it is random. 我的路径通过使用pathauto模块使用sha1哈希...这是随机的。 It should prevent users from testing for node existence. 它应该防止用户测试节点是否存在。

Is there a module that prompts an "access denied" when accessing the node in any other way than the pathauto alias? 除了pathauto别名以外,是否有其他模块在以其他方式访问节点时提示“访问被拒绝”?

Thanks 谢谢

The solution is the pathaccess module. 解决方案是路径访问模块。 In my case it stops access to everything for anonymous users apart from the first segment of my pathauto path (path/*). 在我的情况下,它将停止对除我的pathauto路径的第一段(path / *)之外的匿名用户的所有访问。

Works. 作品。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM