nginx防盗链配置

1
2
3
4
5
6
location ~* \.(gif|jpg|jpeg|png|ico)$ {
valid_referers none blocked server_names *.xiemx.com;
if ($invalid_referer) {
return 444
}
}