dongyilai4214 2013-11-03 16:12
浏览 24
已采纳

简单的PHP登录 - 使用的安全方法

I'm currently attempting to create a simple CMS (really simple). It won't use database, but static html files. I managed to create a php file that updates those files using form Post. Now I want to hide it using a really simple login screen. I found this method which basically shows either the specific php page or the login screen.

My problem is I'm a noob in php, managing to build stuff through trial and error, and I'm dead scary of this method not being minimally safe.

I don't know much about this function, but shouldn't the login function have some sort of trim?

Thanks in advance...

  • 写回答

1条回答 默认 最新

  • dou6577 2013-11-03 16:19
    关注

    The login form you linked would offer a very basic level of security such that someone couldn't simply navigate to the page. If you're new to developing I would spend just as much time looking at the security implications of the code you write as the functionality. There are many things you need to consider.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 MATLAB联合adams仿真卡死如何解决(代码模型无问题)
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决
  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline
  • ¥50 分布式追踪trace异常问题
  • ¥15 人在外地出差,速帮一点点
  • ¥15 如何使用canvas在图片上进行如下的标注,以下代码不起作用,如何修改