php 你如何隐藏你的php源代码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7549433/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 02:56:08  来源:igfitidea点击:

How do you hide your php source code?

phphide

提问by user962449

I have a php page which contains keys and salts and I would like to hide such information just in case. Anyone know a good free software that could do this?

我有一个包含键和盐的 php 页面,我想隐藏这些信息以防万一。有人知道可以做到这一点的好的免费软件吗?

I have both zend and ion installed on my server, which I heard some source scramblers use. Any ideas?

我在我的服务器上安装了 zend 和 ion,我听说一些源代码扰码器使用它们。有任何想法吗?

回答by Mob

Your PHP source cannot be viewed directly via browser. You can obfuscate the php files on the server for extra protection. Obfuscation makes it more difficultfor an attacker to understand your code, ifhe eventually gets in. Remember to keep an un-obfuscated back-up of your files.

您的 PHP 源代码无法通过浏览器直接查看。您可以混淆服务器上的 php 文件以获得额外的保护。如果攻击者最终进入,混淆会使他更难理解您的代码。请记住保留未混淆的文件备份。

Check Out

查看

Obf

观察

http://www.pipsomania.com/best_php_obfuscator.do

http://www.pipsomania.com/best_php_obfuscator.do

Zend Guard

Zend 守卫

Or just search for http://www.google.com.ng/search?sourceid=chrome&ie=UTF-8&q=php+obfuscator

或者只是搜索http://www.google.com.ng/search?sourceid=chrome&ie=UTF-8&q=php+obfuscator