title: Deny referrals from all domains except one
body: <p>Is it possible to accept traffic from only one domain, ideally using a .htaccess file?
  I want my site to only be accessible via a link on another site I have. </p>
  
  <p>I know how to block one referring domain, but not all domains</p>
  
  <pre><code>RewriteEngine on
  # Options +FollowSymlinks
  RewriteCond %{HTTP_REFERER} otherdomain\.com [NC]
  RewriteRule .* - [F]
  </code></pre>
  
  <p>this is my full rewrite code:</p>
  
  <pre><code>RewriteEngine On
  
  RewriteBase /
  
  RewriteCond %{HTTP_REFERER} .
  RewriteCond %{HTTP_REFERER} !domain\.co.uk [NC]
  RewriteRule .? - [F]
  
  # The Friendly URLs part
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  </code></pre>
  
  <p>I think it is working, but none of the assets are getting loaded and I get a 500 error when I click on another link.</p>