简体   繁体   English

为每个页面设置密码保护

[英]putting password protection for each page

I want to put to password protection for each page. 我想为每个页面设置密码保护。 I am having around 20 pages. 我大约有20页。 What are the code/ scripts to be incorporated . 什么是要合并的代码/脚本。 Whether each page to be designed with php code. 是否每个页面都要用php代码设计。 Moro over, the user login_id, Password to be monitored /maintained in a database. 结束了,用户login_id,要监视/维护的密码在数据库中。 In case, if CSV file is maintained, what would be the impact. 如果保留了CSV文件,将会产生什么影响。 Could any body help me in this case? 在这种情况下,有人可以帮助我吗?

A CSV file would be a fairly poor method of doing so, since then if the CSV file can be read then the passwords would become open to anybody who has the CSV file, and since people reuse passwords across multiple systems this could be potentially very bad. CSV文件是一种比较差的方法,因为从那时起,如果可以读取CSV文件,则密码将对拥有CSV文件的任何人开放,并且由于人们在多个系统之间重用密码,这可能非常糟糕。

the simplest way of password protecting data on a web server would be to use a .htpasswd / .htaccess method of user access control 保护Web服务器上数据的密码的最简单方法是使用用户访问控制的.htpasswd / .htaccess方法

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

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