有没有办法在不使用服务器端语言的情况下密码保护HTML页面? [英] Is there a way to password protect HTML pages without using a server side language?

查看:81
本文介绍了有没有办法在不使用服务器端语言的情况下密码保护HTML页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一系列相互关联的网页,我想通过要求用户提供登录名和密码来限制对这些页面的访问。但是,我的托管帐户目前没有为服务器端脚本提供任何设施 - 有没有办法只使用客户端脚本来实现这个目标?

I have a series of interlinked web pages, and I want to restrict access to these pages by asking the user to provide a login and password. However, my hosting account currently does not provide any facility for server side scripting - is there any way I can accomplish this objective using only client side scripts?

我想知道如何以下程序有效 -

I was wondering how the following program works -

http://www.myzips.com/software/HTML-Password.phtml

澄清:感谢您的投入。但是,如果我正在配置Web服务器,那么用户是否有可能输入用户名和密码?

Clarification: Thanks for your inputs. However, if I am configuring the web server, then is there a possibility of the user entering an username and password?

推荐答案

无法创建安全的客户端脚本。如果用户有权访问它,则不安全。

There is no way to create a secure clientside script. If the user has access to it, it's insecure.

如果您的主机正在运行apache,您可以使用.htaccess保护文件夹,在IIS上您可以通过目录安全性执行相同操作。

If your host is running apache you can secure folders using .htaccess, on IIS you can do the same through directory security.

这篇关于有没有办法在不使用服务器端语言的情况下密码保护HTML页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆