ION Auth 默认 URL 和控制器
我正在使用 Codeigniter 的 ION Auth 库。出于安全目的,我是否应该将默认 URL/控制器从“/auth”更改为未知且更难以猜测的内容?
I am using the ION Auth library for Codeigniter. For security purposes, should I change the default URL/Controller from "/auth" to something that's unknown and more difficult to guess?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“默认控制器纯粹作为示例而存在,您不应该假设它是完美的。
也就是说,更改它是毫无意义的。一旦您提供“登录”链接,您就会告诉人们它在哪里......
盐和加密应该足够强大,可以将人们拒之门外。如果您确实担心安全性,请设置 HTTPS。
The "default controller exists purely as an example, you should not assume it is perfect.
That said changing it would be pointless. As soon as you provide a "login" link you would be telling people where it is...
The salts and encryption should be strong enough to keep people out. If you are REALLY worried about security, set up HTTPS.
你打败了我,菲尔;)
另一件事要补充的是,我建议为更好的 URL 创建路由。所以我映射了标准功能,例如登录和注销;例如,auth/login 只映射到/login。
You beat me to this Phil ;)
One other thing to add, I recommend creating routes for better URLs. So I map standard functions like login and logout; for example, auth/login maps to just /login.