1

Is there any way to not allow user to download font?

Usually if you want to download font, can find and open style file in HTML code and get source of font and enter in browser and can download it.

Any way exist to do not allow user which Could not do this? and font be safe in server?

7
  • 3
    if you don't want something to be downloaded, then don't put it somewhere where it CAN be downloaded. That's all there is to it. it is impossible to differentiate between an http requset for "get this font so I can use it to properly display your html pages" and "get this font so I can steal it and use it elsewhere". They're both identical.
    – Marc B
    Mar 12, 2014 at 18:45
  • Why you are using fonts which you don't want to be used?
    – Lkopo
    Mar 12, 2014 at 18:48
  • @Mr.Smith i want to use font in my page , but i dont want to user can download it , font create by we and under our license
    – AliReza Gh
    Mar 12, 2014 at 18:58
  • Then it is impossible. Browsers automatically downloads new fonts, so this font is already downloaded.
    – Lkopo
    Mar 12, 2014 at 19:03
  • You could require a correct referrer string when serving the font. It'll only work if used on the correct site. This is only a low security measure, but will prevent casual download attempts.
    – halfer
    Mar 13, 2014 at 0:23

2 Answers 2

3

No, it is completely impossible. That is fundamentally not how the Internet works.

If a browser can read a file from your server, so can any other piece of software.

2

Actually if you curtailed the use of your custom font to only some headlines and not the entire body of the page, you could convert text to SVG. The tool I'd recommend is Inkscape. Although Inkscape is a GUI tool, it has a powerful CLI which can be called programmatically.

This stackoverflow question has a full breakdown of how to do this.

4
  • please check this style lab.ritaco.net/webfonts/css/fonts.css , you cant download font , how work this ?
    – AliReza Gh
    Mar 13, 2014 at 11:51
  • You can download them, see @meagers answer, if you can see the font on screen your they are on your local machine. I've managed to download them here. Mar 13, 2014 at 19:00
  • can you give me font that link ? i test this lab.ritaco.net/webfonts/css/fonts/WebMitra.eot but load blank page , this is unusual for me . i have this font and just want use this way for my web page .
    – AliReza Gh
    Mar 13, 2014 at 21:21
  • @AliRezaGh can you pm on twitter: cronindesigns, or email me at my email address listed on my profile. I would like to verify you own the font. Mar 13, 2014 at 22:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.