Provided a webserver is available through a public IP the only question is how safe is the application/service running on port X. period!.