Because someone steals content from our website, I need to create additional log file, that logs only if http_referrer contains specific domain.
Currently I have this:
if ($http_referer ~* (bad-domain.com)){
return 500;
}
But instead of return 500, i need to return normal response, but to log the request.