Created
November 2, 2016 17:40
-
-
Save tmjoen/09f7adef83d573d4c608b1d7ba947783 to your computer and use it in GitHub Desktop.
NGINX webfont protection from hotlinking
This file contains hidden or 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
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