Skip to content

Instantly share code, notes, and snippets.

@grayghostvisuals
Created January 6, 2013 05:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grayghostvisuals/4465536 to your computer and use it in GitHub Desktop.
Save grayghostvisuals/4465536 to your computer and use it in GitHub Desktop.
Prevent Hotlinking of Web Fonts
#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