duanlao1552 2010-01-22 11:35
浏览 18
已采纳

用于远程调用的PHP代码保护技术,基于场景

I am thinking about safeguardimg my php code in a different way for my project, but it may be childish method. Please let me know alternative or pros and cons of this method.

Both client and server has LAMP.

Client system holds client sensitive data, which will not be shared to the server. Client will have Auth key to access server.

When client requests the server using the Auth key, after server verifies it, server will send the php code to client for the execution. The Php code will be executed in client and it will connect to other sites from client for processing.

Client will use remote include to get code and execute.

<?php include('http://www.example.com/clientCode.php'); ?>

Client side files is provided by Server admin, with ioncube or zend safeguard encoded one.

So they will not know the PHP code (my assumption). Also client server interaction will be processed through secure connection.

  • 写回答

2条回答 默认 最新

  • dongqindan4406 2010-01-22 12:07
    关注

    Including the remote file like that might not work as expected, as the included file is actually executed on the remote server and the result is included in the script that invokes it, not the the actually PHP code from the included file.

    If that is what you wish, then that's ok; but you can't transfer the actual PHP code from the remote server.

    However, if you MUST transfer the actual code from the remote server to the client, than you could create an API that takes care of the authentication and authorization of the client, reads (without interpreting) the desired PHP file, and then sends it to the client. You could then either eval the code, or cache it as a local file on the client.

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

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?