AliReza Gh
AliReza Gh

Reputation: 62

How to prevent user downloading font in Apache

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?

Upvotes: 1

Views: 391

Answers (2)

Tony Cronin
Tony Cronin

Reputation: 1661

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.

Upvotes: 2

user229044
user229044

Reputation: 239402

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.

Upvotes: 3

Related Questions