开发者

Prevent downloading with htaccess

开发者 https://www.devze.com 2023-04-09 03:03 出处:网络
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 .ht

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

精彩评论

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

关注公众号