开发者

Prevent downloading with htaccess

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜