I have a website which is accessible via several hostnames.
I would like to put something in an .htaccess file that would simply block any request requesting a particular hostname.
For example, say
hello.somehost.com both point to the same website. I would like to put something in the .htaccess file that will allow users to view the website if they visit
example1.com, but will not allow users to view it if they visit
You'd think this would be easy to Google but if there are any results out there, they're drowned out by people who want to block access if the user is coming from a particular hostname...