paip.基于urlrewrite的反向代理以及内容改写
代理 基于 以及 内容 反向 paip 改写
2023-09-14 09:03:38 时间
paip.基于urlrewrite的反向代理以及内容改写
---------反向代理
RewriteCond %{REQUEST_URI} !=/process.php
RewriteRule ^(.*)$ /process.php?file=http://www.budejie.com/$1&noext=1 [L] [L]
作者Attilax 艾龙, EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
---------urlrewrite的调试
a.apache cfg ...
#RewriteLog "c:/rewrite.log"
#RewriteLogLevel 9
查找Rewrite 关键字
b.php log
$param= $_GET['file'];
$logUrl="----url:". $param;
echo $logUrl;
error_log($logUrl);
-----------内容改写
a.文本正则表达式方式
$content=preg_replace('/百思不得姐/', '哈米', $content);
$content=str_replace('http://img.spriteapp.cn/ws/www/img/layout/logo.png', 'http://img.spriteapp.cn/ws/www/img/layout/logoxx.png', $content);
$content=str_replace('不得姐', '哈米', $content);
b.html dom 方式
//nbp
require_once "simple_html_dom.php";
$html = str_get_html($content);
$arr= $html->find('.web_content_right .web_right_down',0) ;
$arr->innertext='a2';
echo $html ;
相关文章
- 在Terminal使用socks5代理
- nginx反向代理3
- requests 使用 proxies 代理时ValueError: check_hostname requires server_hostname
- 【设计模式】代理模式
- Express engine 学习笔记 - 工作在反向代理背后的 Express 设置
- lassAtitit事件代理机制原理 基于css class的事件代理的事件代理titi
- Atitit事件代理机制原理 基于css class的事件代理
- paip.基于urlrewrite的反向代理以及内容改写
- 基于JDK动态代理实现的接口链式调用(Fluent Interface)工具
- 设计模式-深入理解各种代理模式(1)通俗代码版
- Java JDK 动态代理使用及实现原理分析
- 反向代理的含义
- Java使用代理Proxy访问网络及其验证
- 代理模式学习
- 内网渗透代理——内网的防火墙只配置了入站规则比如只有80端口
- DDOS工具合集---CC 2.0(僵尸网络proxy,单一url,可设置cookie,refer),传奇克星(代理+单一url,可设置cookie),NetBot_Attacker网络僵尸1.0(僵尸网络,HTTP NO-Cache Get攻击模式,CC攻击,HTTP空GET请求攻击),傀儡僵尸VIP1.4版(僵尸网络,动态单一url)、上兴网络僵尸2.3、中国制造网络僵尸、安全基地网络僵尸==