Search code examples
.htaccessfontsdownloadhotlinking

Prevent downloading with htaccess


I've searched around but have found no solutions.

I have a directory with all my fonts (svg, eot, woff, ttf, otf) in which I'd like to restrict downloading. Is there a way with .htaccess or..?

Edit: I am using Wordpress


Solution

  • Assuming you want the fonts to be useable within a webpage, then there isn't a way.

    The browser has to be able to download them in order to display them.