Allow access my website from my specific another website only in .htaccess

Viewed 348

Suppose I have 2 website #1) domain1.com and #2) domain2.com

I want that only domain1.com visitor can visit domain2.com other websites like example.com can't visit my website. When they visit it show error :)

<Limit GET POST> Deny from all Allow from domain1.com </limit>

I also tried this:

RewriteCond %{HTTP_REFERER} ^https?://movienoe.com
1 Answers
Related