Files
linuxiarz_vps_angie/config/non-hotlink.conf
2025-11-16 22:26:59 +01:00

13 lines
425 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Hotlinking dla obrazków/CSS/JS z wp-content
location ~* ^/wp-content/.*\.(?:png|jpe?g|gif|webp|svg|ico|css|js)$ {
# Jeśli chcesz wpuszczać wejścia bez Referera zostaw 'none'.
# Jeśli chcesz je blokować usuń 'none'.
valid_referers none blocked server_names *.blog.linuxiarz.pl *.linuxiarz.pl;
if ($invalid_referer) { return 403; }
# normalne serwowanie
try_files $uri $uri/ =404;
}