防止用户访问 SVG
我正在制作一个完全由客户艺术组成的移动版网页。对于老式桌面版本,我只使用 PNG,但我真的很想在移动设备上使用 SVG。 SVGZ 会更小并且与分辨率无关,因此它看起来是一个完美的用例。
但客户担心,一旦他的艺术作品以 SVG 形式在线发布,任何人都可以下载这些文件并非法使用他的艺术作品(他以前制作过盗版作品,所以他非常重视这一点。)我从来没有想到过这一点,直到他提出了这个问题,但 SVG 基本上是他的原始源艺术。
我想知道是否有任何方法可以阻止用户访问 SVG 文件。据我所知这是不可能的——让文件可供用户代理使用意味着让它们可供用户使用——但我想四处询问以确定。
感谢您的任何帮助。
I'm putting together a mobile version of a webpage which consists entirely of client art. For the old-fashioned desktop version, I just used PNGs, but I really wanted to use SVG for mobile. SVGZ would be smaller and resolution independent, so it seemed like a perfect use case.
But the client is worried that, once his art is online in SVG, anyone could download the files and use his art illegally (he's had stuff he worked on pirated before, so he takes this pretty seriously.) This had never occurred to me until he brought it up, but the SVG would basically be his original source art.
I was wondering if there's any way to prevent the SVG files from being accessed by the user. As far I know this is impossible -- making the files available to the user-agent means making them available to the user -- but I wanted to ask around to be sure.
Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,这是不可能的。如果网络浏览器可以请求显示文件,那么任何地方的任何计算机都可以请求文件并保存直接结果。
提供故意降级的艺术品(例如光栅化)是阻止人们拥有原件的唯一方法。当然,心存疑虑的小偷仍然可以重新追踪 PNG 并获得与原始图像无关的矢量化、与分辨率无关的近似值。
您的客户也可以:
No, this is impossible. If a web browser can request the files for display, then any computer anywhere can request the files and save the direct results.
Serving up intentionally degraded artwork (e.g. rasterization) is the only way to prevent people from having the originals. Of course, a determined thief could still re-trace the PNG and get a vectorized, resolution-independent close approximation of the original.
Your client could alternatively: