douzhuangxuan3268 2012-08-24 01:39
浏览 34

如何加密/解密整个服务器的URL?

How can I encrypt and decrypt urls security reasons for the whole server? So

https://darkhelmet/pages/mainframe.php?eduId=28107&displayID=&theme=theme1&version=4.0.3&demo=

would be sent as

https://darkhelmet/pages/mainframe.php?eduId=Exy623&displayID=&theme=thdk8t&version=7hd44&demo=

So the real id that is 28107 will be encrypted to something like Exy623, something not meaningful to the user of the application. In case they change the id to let's say 28108 they will get data of some other user loaded on the page.

Could it be done so the solution is applied the the current application as a new layer on top of the application so there is no need to change php files?

using

  • lighttpd-1.4.30
  • php-5.3.6
  • 写回答

1条回答 默认 最新

  • dtebrq0245 2012-08-24 08:24
    关注

    If you don't want to modify PHP file, you will need to intercept each HTTP request+response which can be done using reverse web proxy (you can also terminate your SSL here) which will relay HTTP request/resposne to your encryption+decryption code. This code can be totally independent of your app.

    评论

报告相同问题?

悬赏问题

  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)