I've searched around but have found no solution开发者_如何转开发s.
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
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.
Put a .htaccess
file into that directory with the following:
Order allow,deny
Deny from all
Simple hotlinking example here: http://www.easymodrewrite.com/example-hotlinking
精彩评论