Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/264.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何更改筛选的href链接?_Php_Html_Regex_Filtering - Fatal编程技术网

Php 如何更改筛选的href链接?

Php 如何更改筛选的href链接?,php,html,regex,filtering,Php,Html,Regex,Filtering,我有一个嵌入链接: <iframe src="https://mixlr.com/users/2229015/embed" width="100%" height="180px" scrolling="no" frameborder="no" marginheight="0" marginwidth="0"> </iframe> <small> <a href="https://mixlr.com/radio-tooba" style="col

我有一个
嵌入链接:

<iframe src="https://mixlr.com/users/2229015/embed" width="100%" height="180px" scrolling="no" frameborder="no" marginheight="0" marginwidth="0">
</iframe>

<small>
    <a href="https://mixlr.com/radio-tooba" style="color:#1a1a1a;text-align:left; font-family:Helvetica, sans-serif; font-size:11px;">Radio Tooba is on Mixlr</a>
</small>

但是
src
href
在我的国家被封锁了
我希望避免筛选并在我的网站上显示此嵌入代码。

有人能帮我吗?

你可以在后端拉取
iframe
的内容,就像PHP使用类似
curl
file\u get\u contents()
的东西一样,甚至可以利用后端内的代理绕过阻塞。。一旦你有了内容,就在需要的地方在你的网站上呈现。

不是每个人都会被屏蔽,只需使用VPN并绕过屏蔽即可。尽管您可以在代码(php不理想)、边缘工作者(cloudflare等)或Web服务器上使用反向代理来代理它,但无论哪种方式,您都会继承额外的使用开销。