从以前的网站在 php 中传递元关键字?
我想知道是否可以通过单击链接将元数据(例如关键字或描述)从一个网站传递到另一个网站。因此,我们有 www.site1.com,单击该网站上的链接并将其元标记传输到另一个网站 - www.site2.com,我们可以在其中检索它们。比如说,我只是 site2 的所有者,不能在 site1 上放置任何外部代码,除了链接本身。我知道这可以用于其他事情,例如 http 引荐来源网址。
I was wondering if it is possible somehow to pass meta data, such as keywords or descriptions from one website to other by clicking the link. So, we have www.site1.com, click a link on this site and transfer meta tags of it to another website - www.site2.com where we can retrieve them. Say, I am just an owner of site2 and cannot place any external code on site1, except from the link itself. I know this can be done for other things, such as http referrer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答是“不”。
更长的答案是,如果您可以包含 JavaScript,那么就可以修改链接以在查询字符串中包含额外的数据,然后再进行查询。
但是,坦率地说,您也可以使用引用信息,通过 HTML 解析器运行 URL 另一端的页面,并以这种方式提取数据。
The short answer is "no".
The longer answer is that if you can include JavaScript, then that could modify the link to include extra data in the query string before it is followed.
But, frankly, you might as well use the referer information, run the page at the other end of the URL through an HTML parser, and extract the data that way.