This needs to be re-worked.  Set of acceptable hostnames should be a variable.