任何人都可以访问我的PHP源代码? [英] Can anyone get access to my PHP source code?

查看:116
本文介绍了任何人都可以访问我的PHP源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在服务器上隐藏.php文件??



我有一个网站,有时会调用iframe内的php文件,现在我不会如果有人复制了这个代码,那么我该如何隐藏呢?
或者我必须加密吗?



在我的情况下,速度是一件巨大的事情,所以任何不影响性能的东西都是值得赞赏的! >

感谢

解决方案

使用正确配置的Web服务器,PHP代码isn'对您的网站访问者可见。对于访问您的网站的人可以访问的PHP代码,服务器必须配置为将其显示为文本,而不是将其作为PHP代码处理。



所以换句话说,如果你访问你的网站,你看到一个HTML页面而不是PHP代码,你的服务器工作正常,没有人可以得到PHP代码。


Is it possible to hide the .php file on the server...?

I have a website which sometimes calls php files inside iframes, now I wouldn't like it if somebody copied that code, so how would I hide it? Or do I have to encrypt it?

Speed is a huge matter in my case, so anything that doesn't affect performance is appreciated!

Thanks

解决方案

With a correctly configured web server, the PHP code isn't visible to your website visitors. For the PHP code to be accessible by people who visit your website, the server would have to be configured to display it as text instead of processing it as PHP code.

So, in other words, if you visit your website and you see a HTML page and not PHP code, your server is working correctly and no one can get to the PHP code.

这篇关于任何人都可以访问我的PHP源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆