PHP Login system hard coded username and password

后端 未结 3 1940
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-27 11:24

I had to do a basic login system to protect a page, and I have no access to database so i store the username and password hard coded in php page.

My question is, can thi

3条回答
  •  天涯浪人
    2021-01-27 11:39

    in my opinion, this solution is safe enough when you don't plan to use it forever. What would I check is setting of your web server - some text editors makes backup copies of edited files, like index.php~, index.php.bkp or so. Make sure whether your web server do not serve those files, if any.

提交回复
热议问题