I am using a custom font for a web page with font-face.
I use node as a back-end with express and I have the custom font in a “public” folder. Is it possible to hide somehow the font from the user to be able to download it?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Is it possible to hide somehow the font from the user to be able to download it?
No, it is not. If the font is usable in the user’s browser, then by necessity, the browser downloaded the font. If the browser downloads the font, so can anyone else.
This is the architecture of the web. The same is true for images displayed in the browser, HTML displayed in the browser or Javascript code run in the browser or any resource used in the browser. All are available to the end user if they so choose to access them directly.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0