限制访问开发网站的最佳方法是什么?
我正在开发一个网站,目前我只想向其他几个人展示该网站。 设置windows用户名并使用windows auth在进入开发站点之前提示用户有什么问题吗?
I have a site i am working on that i would like to display only to a few others for now. Is there anything wrong with setting up windows user names and using windows auth to prompt the user before getting into the development site?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
有几种方法,具有不同程度的安全性:
There are several ways, with varying degrees of security:
这取决于“最好”的含义:例如,您的意思是“最简单”还是“最安全”?
最好的方法可能是将其放在专用网络上,您可以通过 VPN 连接到该网络。
That depends on what you mean by "best": for example, do you mean "easiest" or "most secure"?
The best way might be to have it on a private network, which you attach to via VPN.
我经常这样做。 我使用 Hamachi 允许他们访问我的开发盒,这样他们就可以看到发生了什么。 他们可以在需要时和/或我允许时访问它。 当他们完成后,我将他们从我的 Hamachi 网络中驱逐并更改密码。
Hamachi 是一款软件 VPN。 这是 Hamachi 的链接 - AKA LogMeIn
Hamachi
他们有一个免费版本效果很好。
I do this frequently. I use Hamachi to allow them to access my dev box so they can see whats going on. they have access to it when they want , and/or when I allow. When they are done I evict them from my Hamachi network and change the password.
Hamachi is a software VPN. Heres a link to Hamachi - AKA LogMeIn
Hamachi
They have a free version which works quite well.
当然,Windows auth 没有任何问题。 不过,有几个(不是太大)缺点:
我建议两种选择:
Of course, there's nothing wrong with Windows auth. There are couple of (not too big) drawbacks, though:
I would suggest two alternatives:
如果您没有使用 IIS,并且需要开发人员能够更改内容,我会考虑 Apache + SSL + WebDav(又名 Web 文件夹)。 这将允许您提供一个安全的沙箱,开发人员可以在其中更改和查看内容,而无需在服务器上拥有用户帐户。
此设置需要一些 Apache 知识,因此仅当您已经在使用 Apache 或经常需要向外部人员提供对 Web 服务器的访问时才有意义。
我在该主题上找到的第一个有用链接: http ://pascal.thivent.name/2007/08/howto-setup-apache-224-webdav-under.html
If you aren't married to IIS, and you need developers to be able to change the content, I would consider Apache + SSL + WebDav (aka Web Folders). This will allow you to offer a secure sandbox where developers can change and view the content without having user accounts on the server.
This setup requires some knowledge of Apache so it only makes sense if you are already using Apache or if you frequently need to provide outsiders access to your web server.
First useful link I found on the topic: http://pascal.thivent.name/2007/08/howto-setup-apache-224-webdav-under.html
为什么不直接设置一个 NTFS 用户并将其分配给网站(并删除匿名访问)
Why don't you just set up an NTFS user and assign it to the website (and remove anonymous access)