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服务器上使用反向代理来代理它,但无论哪种方式,您都会继承额外的使用开销。