标签: nginx nginx-location
我想使用slb.com以外的Referer标头值阻止所有HTTP连接。我的nginx valid_referrers应该是什么样?以下是正确的吗?
location / { valid_referers none blocked server_names *.slb.com; if ($invalid_referer) { return 403; } }