dqk94069 2010-12-24 10:05
浏览 18
已采纳

PHP + PHPMyAdmin可以构建大型Web吗? [关闭]

I would like to ask you about how to build secure website. If I want to build some website that large scale (around 100,000 users use).

How do I manage about security? Only PHP and PHPMyAdmin is enough?

and tell me about the way that hacker could to attack my site. and how to protect?

Thanks!

  • 写回答

2条回答 默认 最新

  • dqunzip3183 2010-12-24 11:50
    关注

    You should be more worried about the security of the web server and vulnerability of your own code rather than PHP itself. SQL injection is the biggest concern when it comes to PHP/MySQL, however this is entirely in your control to prevent.

    The first thing you should do when setting up a database is to prefix your table names and try to stay away from using easy-to-guess table names and fields.

    Limit your database user account to the least amount of privileges necessary to run your application.

    ALWAYS encrypt sensitive data such as passwords.

    Validate data before passing it into queries. A good place to start is escaping your strings using PHP. More here: http://php.net/manual/en/function.mysql-real-escape-string.php

    Ensure that any MySQL errors returned don't give users any information about your database structure.

    And finally, you should know MySQL and be able to run queries from the command line - giving you the ability to manage the databases 100% without the use of PHPMyAdmin!

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

报告相同问题?

悬赏问题

  • ¥15 STM32无法向设备写入固件
  • ¥15 使用ESP8266连接阿里云出现问题
  • ¥15 BP神经网络控制倒立摆
  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并