I would like to use .htaccess
to deny access to the site from other hosts. I found the following example on the Internet:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www.)?my-site\.ru(/)? RewriteCond %{HTTP_REFERER} !^http://(.*)\.my-site\.ru(/)? RewriteRule ^.*$ - [F]
Question. A third-party host can disable the HTTP_REFERER header. How to deny access to it?