Created
May 19, 2023 12:54
-
-
Save mbmaciel/19046a1453670f72ca0ff640241329d3 to your computer and use it in GitHub Desktop.
Bloqueio de imagens no nginx
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 ~ .(gif|png|jpe?g)$ { | |
valid_referers none blocked dominio.com, *.dominio.com, outrodominio.com, *.outrodominio.com; | |
if ($invalid_referer) { | |
return 403; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment