What organ system blocks the entrance of pathogens into the body and prevents the loss of water from the body?

The integumentary system (skin) blocks the entrance of pathogens and prevents the loss of water.