How to protect my source code when deployed?

前端 未结 3 1961
借酒劲吻你
借酒劲吻你 2020-12-02 00:05

Is there a way to encrypt or enclose my code on my Linux server after deployment? I know Zend does some kind of encryption, right? Is that what people use? Is this even poss

3条回答
  •  忘掉有多难
    2020-12-02 00:57

    1. Periodically check the open ports on you server
    2. Do not trust the data coming from the browser - verify it and validate it.
    3. Periodically do an audit of the processes on your machine and who can access them
    4. Only have files in the document root that should be accessible by the outside world. Include files etc should not exist here
    5. Check the log files periodically to check for suspect access.
    6. For PHP errors/warnings - find a mechanism that does not give the client (browser) any info what has gone wrong. Send that to yourself. This is true for MySql as well.

提交回复
热议问题