当前位置:网站首页>PHP实现iframe跨站替换文字/替换iframe网站文字的方法
PHP实现iframe跨站替换文字/替换iframe网站文字的方法
2022-06-10 22:17:00 【于飞SEO】
简介
可将某个页面 用框架标签放到自己页面中,但其中有些链接,或者文字不想要,即可替换掉他们。

实例代码
<?php
$site=$_SERVER['QUERY_STRING'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $site);
$content = curl_exec ($ch);
curl_close ($ch);
$content=str_replace("原站词","新词",$content);
$content=str_replace("原站词","新词",$content);
$content=str_replace("原站词","新词",$content);
//原词替换成新词,这里可以继续添加使关键词修改的更多,但无法解析https网站,并且注意本文件的字符编码与目标站的编码是否一致。
echo $content;
exit;
?>上面代码复制到PHP文件中,文件如果命名为iframe.php
那么使用方法即:(地址和文件名自己随意改)
域名/iframe.php?yfi6.com
注意:https目标站无法使用,对方必须是http的网页。
本文部分内容来源于网络,转载请注明来源,如需投诉请联系我们[email protected]
边栏推荐
- Is there any risk in opening an account with BOC securities? Is it safe?
- 06 15 10 20 神秘代码,等你破译
- 0223-总结
- Commonplace - the timetable of the great philosopher Kant
- 云数据中心中的SDN/NFV应用
- Is it too late to teach yourself programming at 28? Is it reliable?
- Dell R730 raid5 安装Server 2016(解决磁盘大于2T)
- Basic SQL statement - insert
- 开中银证券账户安全吗?风险高吗?
- 数据与信息资源共享平台(九)
猜你喜欢

项目实训11——对数据库的定时备份

字蛛(font-spider)教学——ttf/otf字体文件压缩

LeetCode+ 21 - 25

项目实训13——界面补充

一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue

Gather for summer Yiping: not everything is reported to Robin Lee. They compete with Xiaomi Huawei by products

【QPSK中频】基于FPGA的QPSK中频信号产生模块verilog设计

200 c language words, please collect!

laravel8 实现阿里云文件上传

PwnTheBox,Pwn:tutorial1
随机推荐
聚簇索引和非聚簇索引
MySQL mvcc multi version concurrency control
Wireshark抓取rtp负载ts流介绍(UDP组播)
AI智能视频分析EasyCVR平台设备通道批量删除功能的开发实现
Vulnhub's DC3
改变世界的开发者丨玩转“俄罗斯方块”的瑶光少年
字蛛(font-spider)教学——ttf/otf字体文件压缩
通达信股票开户安全吗?如何办理开户呢?
嵌入式软件开发中的2种调试技术
Is there any risk in opening an account with BOC securities? Is it safe?
关于idea中src下 无法new一个package
untiy 重置动画
DependencyManagement 和 Dependencies
Assembly: assembly mixed with c-faction language and corresponding lldb common instructions
PwnTheBox,Pwn:tutorial1
30 frequently asked questions of 2022 latest software test interview questions [continuous update ~]
Project training 13 - Interface supplement
Html+php+mysql login registration page
普通网络摄像头的拉取方法
Ribbon load balancing policy