title: Nginx block from referrer
body: <p>I need block all http connections, who have referrer click2dad.net.
  I write in mysite.conf:</p>
  
  <pre><code> location / {
              valid_referers ~.*http://click2dad\.net.*;
              if ($invalid_referer = ''){
                      return 403;
              }
              try_files       $uri    $uri/   /index.php?$args;
      }
  </code></pre>
  
  <p>But i still see in nginx logs:</p>
  
  <pre><code>HTTP/1.1" 200 26984 "http://click2dad.net/view/VUhfCE4ugTsb0SoKerhgMvPXcmXszU" 
  </code></pre>
  
  <p>200, not 403</p>
  
  <p>As it is correct to block all clients from the click2dad.net ?</p>