Я пытался следовать этому: https://varnish -cache.org / trac / wiki / VCLExampleAvoidHotlinking
И включать несколько рефереров, таких как:
if (req.http.host == "example.com" && req.url ~ "^/wp-content/uploads/" && (req.http.referer && req.http.referer !~ "^http://example.com/" && req.http.referer !~ "^http://twitter.com/" && req.http.referer !~ "^http://linkedin.com/" && req.http.referer !~ "^http://lnkd.in/" && req.http.referer !~ "^http://t.co/" && req.http.referer !~ "^http://google.com/" && req.http.referer !~ "^http://bing.com/" && req.http.referer !~ "^http://yahoo.com/")) { return (synth(403, "No hotlinking please")); }
Но он не хочет выполняться и кажется, что реферер удален. Любая помощь будет потрясающей. Спасибо!