时时商务社区

标题: php include的妙用,实现路径加密 [打印本页]

作者: wx_pylelnL4    时间: 2018-2-14 09:23

            1、中转程序include.inc
[U]复制代码[/U] 代码如下:


index.php与include.inc同目录
[U]复制代码[/U] 代码如下:


2、修改程序中的链接()
[U]复制代码[/U] 代码如下:
"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
            
            
您可能感兴趣的文章:
  • php include,include_once,require,require_once
  • PHP中include()与require()的区别说明
  • php echo()和print()、require()和include()函数区别说明
  • php include加载文件两种方式效率比较
  • 深入理解PHP之require/include顺序 推荐
  • PHP include_path设置技巧分享
  • PHP中include与require使用方法区别详解
  • php中的路径问题与set_include_path使用介绍
  • php include类文件超时问题处理
            




    欢迎光临 时时商务社区 (http://bbs.4435.cn/) Powered by Discuz! X3.2