Skip to content

Instantly share code, notes, and snippets.

@mbmaciel
Created May 19, 2023 12:54
Show Gist options
  • Save mbmaciel/19046a1453670f72ca0ff640241329d3 to your computer and use it in GitHub Desktop.
Save mbmaciel/19046a1453670f72ca0ff640241329d3 to your computer and use it in GitHub Desktop.
Bloqueio de imagens no nginx
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