Blocking request using client hostname

Hi All,

I have a particular server block, whose access I want to restrict to a
particular client host name ( i.e client should have an IP which is
pointed by www.example.com to get access to that server block ). Is this
possible to setup on nginx ?

Thanks,
Rakesh