title: Prevent hotlinking, no "www"
body: <p>I have read many website tutorials about hotlinking protection.
  Waste of time.
  So I decided to ask here.</p>
  
  <pre><code>RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com [NC]
  RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
  </code></pre>
  
  <p><strong><a href="http://www.domain.com/image.png" rel="nofollow">http://www.domain.com/image.png</a> = Protected</strong></p>
  
  <p><strong><a href="http://domain.com/image.png" rel="nofollow">http://domain.com/image.png</a> = Unprotected</strong></p>
  
  <p>Adding</p>
  
  <pre><code>RewriteCond %{HTTP_REFERER} !^http://(.+.)?domain.com [NC]
  </code></pre>
  
  <p>Actually</p>
  
  <pre><code>RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com [NC]
  RewriteCond %{HTTP_REFERER} !^http://(.+.)?domain.com [NC]
  RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
  </code></pre>
  
  <p>Did not worked.</p>