if ($http_referer !~* ^($|https?://) ) { return 444; }
if (preg_match("/http:\/\/([^\/]*)/i", $http_referer + '/', $m)) { $ref_domain = $m[1]; if ($ref_domain ~ \d.*\d) { return 444; }}