I'll throw a unauthorized page. With error stating that there is mismatch in host name
What for? This is something the web server will already deal with if it's set up properly:
If you are using name-based virtual hosts, the ServerName inside a section specifies what hostname must appear in the request's Host:
header to match this virtual host.
There's no need to additionally check for this in the PHP script.
It will be an additional security na? Thats what my clients requirement is
It is entirely pointless and will not add any security whatsoever. However, I guess there's no harm in doing it, either.