SetEnvIf Referer "^http://([^/]*\.)?domain.com/" request_ok = 1 Order Allow, Deny Allow from env=request_ok