We investigate an epidemic model on a square lattice with two protection treatments: prevention and quarantine. To explore the effects of both treatments, we apply the site and bond percolations. Computer simulations reveal that the threshold between endemic and disease-free phases can be represented by a single scaling law. The mean-field theory qualitatively predicts such infection dynamics and the scaling law.