http://mogile.web.fc2.com/nginx/http/ngx_http_referer_module.html
S.F. Blog:nginx の valid_refererで直リンクを防止する 2020
NginxのWebサーバーでコンテンツへの直リンクを制御する方法 | 4thsight.xyz 2020
location /xxx/ { valid_referers none server_names ~\.google\. ~\.translate\.goog webcache.googleusercontent.com ~\.bing\. ~\.yahoo\. ~\.facebook\. ~\.fbcdn\. ~\.twitter\. feedly.com ~\.inoreader\.com; if ($invalid_referer) { return 403; } ... }
リファラサーバ名簡易集計
cat /var/log/nginx/access.log | awk '{ print $11; }' | cut -d'/' -f3 | sort | uniq -c | sort -r 403応答 cat /var/log/nginx/access.log | awk '$9 == 403 { print $11; }' | cut -d'/' -f3 | sort | uniq -c | sort -r