location ~* ^.+.(jpg|gif|png|swf|flv|wma|wmv|asf|mp3|mmf|zip|rar)$ { valid_referers none blocked *.template.com template.com; if ($invalid_referer) { rewrite ^/ http://www.template.com/nolik.gif; }
location ~* ^.+.(jpg|gif|png|swf|flv|wma|wmv|asf|mp3|mmf|zip|rar)$ { valid_referers none blocked *.template.com template.com; if ($invalid_referer) { rewrite ^/ http://www.template.com/nolik.gif; }