Hide .glb or .gltf file on source codes #1946
Replies: 4 comments 3 replies
-
Not that I'm aware of. You can look at the network tab to see what files are downloaded even if they aren't clear from your code. It's exactly like an image; you can protect it by only making a low-res version downloadable for free, or by watermarking it, or by bringing legal action against people who use it without permission. There's no equivalent to video DRM in the 3D space. |
Beta Was this translation helpful? Give feedback.
-
Hey @sercandemirtas you can hide it in a 'post-loading' way. Here is an example: const observer = new MutationObserver(function (mutations) { observer.observe(document, { The src will be setted to unknown when the page is inspected. Unfortunately, will still be possible to track the file via network on devTools. Hope it will help you. |
Beta Was this translation helpful? Give feedback.
-
let file = await fetch("url/model.glb")
Hope it will work, This will not show the src path :) |
Beta Was this translation helpful? Give feedback.
-
Merhaba Sercan, Sitem için 3d görsellerimin indirilebilirliğini korumak istiyorum aynı şekilde. Profilindeki sayfayı incelediğimde görünen glb dosyası değil de başka bir dosya iniyor. Bunu nasıl yaptın acaba? Yardımcı olabilirsen çok sevinirim. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all!
Is it possible to hide 3d file on source codes. If you check my demo link below when you right click on page and open source code panel you can easily download my glb file from html based assets. Any idea or suggestions to hide it from users/visitors would be great. Thanks..
ps: I deployed my html, css, js based static webpage via Netlify.
Demo Link
https://confident-lamport-09f645.netlify.app/m6.html
The paart I want to hide is src line
class="a"
src="/Assets/m6/m6.glb"
alt="3D Koltuk by BaseBros"
`
Browser Affected
Beta Was this translation helpful? Give feedback.
All reactions