1、中转程序include.inc
<BR><? <BR>include_once 'include/Base.php'; <BR>$path = ''; <BR>$url = isBase::decrypt(urlDecode($_SERVER['QUERY_STRING'])); <BR>parse_str($url); //获取通过url地址GET传递过来的变量 <BR>if(!empty($_POST['path'])){ //获取POST传递过来的变量 <BR>$path = $_POST['path']; <BR>$path = isBase::decrypt(urlDecode($path)); <BR>} <BR>//解析真实路径 <BR>if(empty($path)){ <BR>//header("Location: login.php"); <BR>exit; <BR>} <BR>if(!preg_match("/(^http:\/)|([?|&|=])/",$path)){ <BR>//跳转到实际执行文件的路径 <BR>chdir(dirname($path)); <BR>include_once basename($path); <BR>exit; <BR>} <BR>?> <BR>
index.php与include.inc同目录
<BR><? <BR>include include.inc; <BR>?> <BR>
2、修改程序中的链接()
<BR>"index.php?".encrypt("path=/test/test.php&test=123&test2=4321") <BR>
3、修改程序中的POST表单
Form都提交到为 index.php
中间加一个隐藏表单
4、修改前端Html页面的路径
baseref=/test
5、加解密函数,朋友们自己动手写吧。
总结:
用这种方法比较繁琐,只能隐~来1源gaodai#ma#com搞*代#码1网搞代gaodaima码藏后台脚本的路径,前端的脚本路径仍然可以在源文件中看得到(baseref) 在地址栏上看到的地址都是index.php?xxxxxxxx