Skip to content

Instantly share code, notes, and snippets.

@Walkeryr
Created October 6, 2013 08:56
Show Gist options
  • Save Walkeryr/6851422 to your computer and use it in GitHub Desktop.
Save Walkeryr/6851422 to your computer and use it in GitHub Desktop.
Hotlink protection in Nginx for fonts
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