adds simple host detection in webserver