如何通过我创建的网址创建我放在别人网站上的横幅? [英] How do I create a banner I put on someone else's website via a url I create?

查看:94
本文介绍了如何通过我创建的网址创建我放在别人网站上的横幅?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在社交媒体上发布了与我的行业相关的文章,但是当我们点击我分享的链接时,我希望我的网站上有一个横幅填充在网站的底部。这样,访问社交媒体的访问者仍然可以在其他人网站的URL上看到我的网站/商家信息。我也希望这个横幅可以点击我的网站。我假设我必须通过我创建的唯一URL创建一个框架。老实说,我不确定。有人可以帮忙吗?



我尝试了什么:



我用使用一个非常古老的网站为我生成这个。网站已经不见了,我不知道该怎么做。

I post articles related to my industry on my social media, but I want a banner to my site to populate on the bottom of the website when they click on the link I share. That way visitors to my social media can still see my website/business info on that URL of someone else's website. I would also like this banner to be clickable to my website. I am assuming I have to create a frame via a unique URL I create. I'm not sure honestly. Could someone help?

What I have tried:

I use to use a really old website that generated this for me. The website is gone and I do not know how to do it myself.

推荐答案

你没有。



你能得到的最接近的是使用< iframe> < frameset> (已弃用!)在您的网站上显示您自己网站内的第三方网站,并在其周围添加横幅。



但大多数网站都会禁止使用 X-Frame-Options标题 [< a href =https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Optionstarget =_ blanktitle =New Window> ^ ] ,阻止人们正在做你正在尝试做的事情 - 在你的广告周围展示他们的努力工作。



没有办法解决这个问题。如果该网站不希望嵌入您网站的框架中,那么您无能为力。



唯一的选择就是链接到您网站上的插页式页面,包含横幅广告,您要链接的真实网页摘要以及指向真实网页的链接。
You don't.

The closest you could get would be to use an <iframe> or <frameset> (deprecated!) on your site to display the third-party site inside your own site, with your banners around it.

But most sites will prohibit this using the X-Frame-Options header[^], to stop people from doing precisely what you're trying to do - display their hard work surrounded by your ads.

There is no way around that. If the site doesn't want to be embedded in a frame on your site, there's nothing you can do about it.

The only option you would have would be to link to an interstitial page on your site, with your banners, a summary of the real page you're linking to, and the link to the real page.


这篇关于如何通过我创建的网址创建我放在别人网站上的横幅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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