Created
January 6, 2013 05:55
-
-
Save grayghostvisuals/4465536 to your computer and use it in GitHub Desktop.
Prevent Hotlinking of Web Fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://www.fontshop.com/blog/newsletters/pdf/webfontfontuserguide.pdf | |
RewriteEngine On | |
RewriteCond %{HTTP:Origin} !^$|http(s)?://(www\.)?example\.com$ [NC] | |
RewriteRule \.(woff|eot)$ - [NC,L] | |
RewriteCond %{HTTP_REFERER} !. | |
RewriteRule \.(woff|eot)$ - [F,NC,L] | |
Options -Indexes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment