设置网页密码 [英] Setting Password to a web page

查看:91
本文介绍了设置网页密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我要做的就是为我的网页创建一个密码,然后提示用户输入所需的密码以访问该页面.

谢谢.

Hi,

All I want to do is to create a password for my Web page and then promt the user to enter the required password to get access to the page.

Thank you.

推荐答案

如果您正在使用数据库和动态页面,则可以用代码来完成.互联网上有很多例子.

如果页面是静态的,并且您没有使用数据库,则可以使用.htpasswd/.htaccess-您将需要搜索如何针对特定的服务器配置方式.
If you are using a database and dynamic pages then you can do it in code. There are plenty of examples on the internet.

If the pages are static and you are not using a database then you can use .htpasswd/.htaccess - you will need to search for how to configure this for your particular choice of server.


这篇关于设置网页密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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