繁体中文
设为首页
加入收藏
当前位置:PHP技术首页 >> PHP基础 >> include的妙用,实现路径加密

include的妙用,实现路径加密

2004-12-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:1.中转程序include.inc index.php与include.inc同目录 2.修改程序中的链接() "index.php?".encrypt("path=/test/test.php&test=123&test2=4321") 3.修改程序中的POST表单 Form都提交到为 index.php 中间加一个隐...

1.中转程序include.inc

index.php与include.inc同目录

2.修改程序中的链接()

"index.php?".encrypt("path=/test/test.php&test=123&test2=4321")

3.修改程序中的POST表单

Form都提交到为 index.php

中间加一个隐藏表单

4.修改前端Html页面的路径

baseref=/test

5.加解密函数就由自己提供了

总结:

用这种方法比较繁琐,只能隐藏后台脚本的路径,前端的脚本路径仍然可以在源文件中看得到(baseref)

在地址栏上看到的地址都是index.php?xxxxxxxx

还有更好的方法,就是利用Apache的Url转发的功能,方法已经实现,有时间再贴上来

责任编辑:admin
相关文章