如何知道某个网站是否仍将我的iframe放在他/她的网站上 [英] How to know if a website still put my iframe on his / her website

查看:97
本文介绍了如何知道某个网站是否仍将我的iframe放在他/她的网站上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,标题不好,我不知道该技术叫什么 所以基本上我想知道我是否在网站上放置了iframe 并知道该网站是否仍将我的iframe放在他/她的网站上,而无需检查我将我的iframe放在哪个网站上

sorry for the bad title, I don't know what the technology is called so basically I want to know if I put an iframe on a website and know if the website still put my iframe on his/her website without checking into the website where I put my iframe at

感谢所有帮助

先谢谢您了:)

推荐答案

添加到@ThomasKjærPedersen答案:

Adding to @Thomas Kjær Pedersen answer:

您可以运行自动wget(在命令行中)或file_get_contents(带有furl_open)或卷曲请求( http://www.php.net/manual/zh/book.curl.php )中您希望iframe所在的网址.然后,您同时需要在充当iframe的页面上登录$ _SERVER ["HTTP_REFERER"].然后,您可以使用服务器IP(运行自动脚本的服务器IP)验证$ _SERVER ["REMOTE_ADDR"],以验证来源并查看是否提供了引荐来源网址.

you can run an automated wget (in commandline) or a file_get_contents (with furl_open) or a curl request (http://www.php.net/manual/en/book.curl.php) of the url where you expect the iframe to be. Then at the same time you would need to log the $_SERVER["HTTP_REFERER"] on the page that acts as iframe. You can then verify $_SERVER["REMOTE_ADDR"] with your server IP - the one that runs the automatic script - to verify the origin and see whether a referer hit was given..

听起来合乎逻辑吗?

这篇关于如何知道某个网站是否仍将我的iframe放在他/她的网站上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆