Created
November 9, 2013 19:16
-
-
Save k0nsl/7388769 to your computer and use it in GitHub Desktop.
block all hotlinking if they don't match your domain.
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
location ~* (\.jpg)$ { | |
valid_referers blocked www.k0nsl.org k0nsl.org; | |
if ($invalid_referer) { | |
return 405; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment