Quantcast
Channel: How to deny direct access to font files used in CSS? - Webmasters Stack Exchange
Viewing all articles
Browse latest Browse all 3

How to deny direct access to font files used in CSS?

$
0
0

I have a website that displays texts with unique, copyrighted fonts. I use a CSS file with "font-face" elements (see the example below) and I store the font files in a folder called "type". I would like to deny direct access to these files, so visitors could not copy them. I tried to add an .htaccess file, but it broke the code. (I guess it blocked the links in the CSS.)

@font-face {  font-family: "Your typeface";  src: url("type/filename.eot");  src: local("☺"),    url("type/filename.woff") format("woff"),    url("type/filename.otf") format("opentype"),    url("type/filename.svg#filename") format("svg");  }

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images