# Options: {"domains": ["webvisor.com", "yandex.com"]} if ($http_referer !~ "^https?://([^/]+\.)?yandex\.com/|([^/]+\.)?webvisor\.com/"){ add_header X-Frame-Options SAMEORIGIN; }