Add ssl and basic auth and range check