Skip to content

Instantly share code, notes, and snippets.

@tmjoen
Created November 2, 2016 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmjoen/09f7adef83d573d4c608b1d7ba947783 to your computer and use it in GitHub Desktop.
Save tmjoen/09f7adef83d573d4c608b1d7ba947783 to your computer and use it in GitHub Desktop.
NGINX webfont protection from hotlinking
location ~ \.(eot|svg|ttf|woff|otf)$ {
valid_referers blocked mysite.com *.mysite.com;
if ($invalid_referer) {
return 403;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment