获取包含图像的网页列表
如何获取包含相关图像的网页列表? Photobucket 有一个统计选项,可让您查看哪些网站嵌入了您的图像。他们是怎么做到的?
How can I get a list of webpages that contain the image in question?
Photobucket has a stats option which lets you see what websites have embedded your image. How do they do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设 photobucket 检查网络服务器日志,在对特定图像的任何请求中查找引用者。
对于任何 HTTP 请求,浏览器还会发送所谓的引用者,其中包含“触发”请求的 URL。如果有人点击网页A中指向网页B的链接,浏览器不仅会向网页B的服务器请求链接的网页,还会发送Referer,其中包含“链接网页”A的URL。图像也是如此嵌入网页中。对图像的请求还包含嵌入网页的 URL,以便服务器可以记录哪些页面嵌入了图像。
当然,这可能会被用户浏览器中的隐私工具所抑制,因此该方法不会完全正确,但在大多数情况下就足够了。
另请参阅http://en.wikipedia.org/wiki/HTTP_referrer
I'd assume photobucket checks the webserver logs, looking for the referer in any request for a specific image.
For any HTTP request, the browser also sends the so-called referer which contains the URL that "triggered" the request. If someone clicks on a link to webpage B in webpage A, the browser not only requests the linked webpage from the server of webpage B, but also sends the referer along, containing the URL of the "linking webpage" A. Same goes with images embedded in a webpage. The request for the image also contains the URL of the embedding webpage so the server can log which pages embed an image.
Of course, this could be suppressed by privacy tools in the user's browser, so the method would not be completely correct, but in most cases its sufficient.
See also http://en.wikipedia.org/wiki/HTTP_referrer
我的猜测是,他们通过解析服务器日志来查看哪些网页正在提取嵌入的图像。
My guess is that they're seeing what web pages are pulling the embedded image by parsing the server logs.