Git Product home page Git Product logo

Comments (20)

JohnieXu avatar JohnieXu commented on August 10, 2024 5

通过img标签添加referrerpolicy属性可以解决

<img width="120" height="120" src="https://cdn.nlark.com/yuque/0/2019/png/123320/1574751346300-cf918f18-6831-4bef-99e1-ae4d10e233cb.png" referrerpolicy="no-referrer">

效果如下:

from yuque-hexo.

anjia0532 avatar anjia0532 commented on August 10, 2024

666,非常感谢分享

from yuque-hexo.

liyatang avatar liyatang commented on August 10, 2024

优秀

from yuque-hexo.

lsr911 avatar lsr911 commented on August 10, 2024

想问一下,html 模板是哪个文件?

from yuque-hexo.

x-cold avatar x-cold commented on August 10, 2024

想问一下,html 模板是哪个文件?

这个要具体看对应主题的模板,一般来说都是 post.xxx

from yuque-hexo.

maoziya avatar maoziya commented on August 10, 2024

加了这个不蒜子失效,冲突了,无语啊

from yuque-hexo.

x-cold avatar x-cold commented on August 10, 2024

加了这个不蒜子失效,冲突了,无语啊

那你可以试试在图片输出的时候,参考楼上的方案,给 img 标签添加 referrerpolicy 属性

from yuque-hexo.

Leader755 avatar Leader755 commented on August 10, 2024

对的,我之前也是遇到了这个问题,然后采用全局去匹配文章中的图片,给图片后面添加属性,但是有些浏览器是无效的。比如手机浏览器,pc上safiar浏览器,开启后chrome能正常展示。所以个人认为这个不是解决的办法。最好的解决的办法就是同步时,将图片进行base64转换或者转换使用自己的cdn链接,问题在这个自动转换,对于我是有难度的。所以请各位大佬看看怎么处理=

from yuque-hexo.

wxyhgk avatar wxyhgk commented on August 10, 2024

没什么用啊,只有谷歌浏览器可以搞,其他的都不行

from yuque-hexo.

gaotuan avatar gaotuan commented on August 10, 2024

加在哪里?

from yuque-hexo.

lonbaw avatar lonbaw commented on August 10, 2024

referrerpolicy="no-referrer"

background-image: url(https://cdn.nlark.com/yuque/0/2021/jpeg/1526841/1619860305167-0a13b77d-4397-490e-bba0-99b7bfb760c3.jpeg); 像这种引用 该怎么解决防盗的问题呢?

from yuque-hexo.

xinc-it avatar xinc-it commented on August 10, 2024

临时方案是直接在 html 模版中添加 head 进行绕过

<meta name="referrer" content="no-referrer" />

默认的主题如何加入?好像没有找到对应的html模板

from yuque-hexo.

LetTTGACO avatar LetTTGACO commented on August 10, 2024

升级到最新版本即可,目前支持腾讯云/阿里云/七牛云图床链接 替换 语雀链接

from yuque-hexo.

lsr911 avatar lsr911 commented on August 10, 2024

from yuque-hexo.

LamiaLoveless avatar LamiaLoveless commented on August 10, 2024

升级到最新版本即可,目前支持腾讯云/阿里云/七牛云图床链接 替换 语雀链接

如果能支持S3,B2等就好啦

from yuque-hexo.

lsr911 avatar lsr911 commented on August 10, 2024

from yuque-hexo.

capdream avatar capdream commented on August 10, 2024

请问有最新版的吗?加上head也无法显示

from yuque-hexo.

lsr911 avatar lsr911 commented on August 10, 2024

from yuque-hexo.

x-cold avatar x-cold commented on August 10, 2024

请问有最新版的吗?加上head也无法显示

可以开启工具 CDN 转存的功能

from yuque-hexo.

capdream avatar capdream commented on August 10, 2024

请问有最新版的吗?加上head也无法显示

可以开启工具 CDN 转存的功能

请问这个在哪,还是说的图床?

from yuque-hexo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.