dongtuo3795 2016-05-16 16:41
浏览 29
已采纳

htaccess而不是php / mysql登录解决方案

Is is using .htaccess password protection on a website more secure than using php and mysql?

Is it possible to create a custom page that uses the .htaccess mechanism instead of the regular htacces dialogue box.?

  • 写回答

2条回答 默认 最新

  • 普通网友 2016-05-16 16:49
    关注

    HTTP authentication through Apache's .htaccess provides a login mask where the browser asks the user for a username and a password. But then the data inserted by the user is still sent to a server-side program to verify that data.

    Which means that interface passes data through HTTP to PHP (for example), which will need a database (MySQL, for example) to store the users data.

    .htaccess files may store some users data, but it's not that scalable so it's not recommended. You can't add too many users to Apache's configs.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!