The current configuration is as follows:
location ^~ /wp-content/uploads/20 {
valid_referers xxx.cn *.xxx.cn *.google.com *.bing.com *.baidu.com;
if ($invalid_referer) {
return 302 $scheme://$host/additional/anti-theft.png;
}
}
I also want requests to /wp-content/uploads/2024/12/cropped-Blogger*.png to bypass the valid_referers check, so that they can be accessed normally regardless of whether there is a referrer.
How should the configuration be adjusted?