title: Block Unwanted Domain Name Pointing to My Site
body: <p>The domain name 2nicksplumbing.com that is privately registered is being indexed by Google and directed to NicksPlumbing.com</p>
  
  <p>I have attempted the following to block it with no luck...</p>
  
  <ul>
  <li>Blocked the domains ip in cPanel</li>
  <li>Deny method in .htaccess file</li>
  <li>RewriteCond method in .htaccess file (code below)</li>
  </ul>
  
  <p>Can anyone suggest why I cannot block this domain name from pointing to our site?</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On
  
  ErrorDocument 404 https://www.nicksplumbing.com/404.html
  
  RewriteCond %{HTTP_REFERER} 2nicksplumbing\.com [NC]
  RewriteRule .* - [F]
  
  RewriteCond %{HTTP_HOST} ^nicksplumbing\.com [NC,OR]
  RewriteCond %{HTTP_HOST} ^nicksplumbingrepair\.com [NC,OR]
  RewriteCond %{HTTP_HOST} ^www.nicksplumbingrepair\.com [NC,OR]
  RewriteCond %{SERVER_PORT} 80
  RewriteRule ^(.*)$ https://www.nicksplumbing.com/$1 [L,R=301]
  
  RewriteCond %{THE_REQUEST} ^.*/index.html
  RewriteRule ^(.*)index.html$ https://www.nicksplumbing.com/$1 [R=301,L]
  
  RewriteCond %{HTTPS} !on
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  </code></pre>