doushu0591 2015-04-10 16:29
浏览 17
已采纳

php页面的安全性[关闭]

If I need to design an interface in php that has to be online and needs a database beside and I am the only one that has to use it. What kind of protection should I implemet more than: - limited the ip address access to the php page - using a login/password with relatives controls - using a session variable

The purpose is to design my own accounting program.

  • 写回答

1条回答 默认 最新

  • doutingyou2198 2015-04-10 16:34
    关注

    If the DB and Web Server are the same box:

    1. Firewall everything so that only Port 80 and Port 443 are open to the public. This way only your PHP Scripts can interact with the DB.
    2. Redirect any HTTP traffic to HTTPS to ensure secure connection between Client Browser and Web Server.
    3. Store sensitive data in the DB with encryption. This will help ensure that if someone does perform injection, they cannot see plain text info.

    If they are on separate servers, do the same things, just make sure there is a secure connection between the two.

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

报告相同问题?

悬赏问题

  • ¥15 GD32 SPI通信时我从机原样返回收到的数据怎么弄?
  • ¥15 phython读取excel表格报错 ^7个 SyntaxError: invalid syntax 语句报错
  • ¥20 @microsoft/fetch-event-source 流式响应问题
  • ¥15 ogg dd trandata 报错
  • ¥15 高缺失率数据如何选择填充方式
  • ¥50 potsgresql15备份问题
  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?