Penaeus vannamei is the main species of shrimp farmed worldwide, and for Ecuador it is the first non-oil economic sector. However, various pathogens, including white spot syndrome virus (WSSV), threaten the sustainability of shrimp farming. P. vannamei larvae are susceptible to WSSV infection via vertical or horizontal transmission. To decrease the incidence of WSSV in PLs, a bioassay was performed by exposing P. vannamei shrimp (PL25), which were negative for WSSV and white spot disease (WSD), to two protective factors, water temperature (T = 24 °C and T = 31 °C), and immunestimulation using β-1,3-glucans (BG) (with and without BG added to the food), using a crossed two-factor design, for 20 days. The incidence of WSSV and WSD was modeled using generalized linear model (GLM). The strength of the association between the response and explanatory variables was estimated using the odds ratio [Exp (Beta)] and interpreted as the level of risk for the incidence of WSSV or WSD in one of the categories compared to the baseline category in the GLM. Odds ratios were considered significant if their 95 % confidence interval did not include the value 1. The results showed that BG had a significant negative effect on the number of WSSV-positive animals. In addition, a lower probability of WSSV infection was determined by combining 31 °C and BG. In this treatment, the WSD injuries were almost undetectable. Most larvae shrimps affected by WSD exhibited injuries to the antennal gland and connective tissue. In situ hybridization analysis revealed that 29 % of shrimp, initially negative by histology, were positive for WSSV. The virus was detected mainly in the nervous tissue of the head, epithelium, connective tissue of the head appendages, and the oral region surrounding the integumental glands. Apoptosis analysis showed a weak signal in nerve tissue but was more intense in epithelial cells of the head appendages, in association with cuticular damage. According to the findings, WSSV could disseminate among shrimp populations by infecting them through the TG and epithelium of the head appendage, followed by connective tissue and nervous tissue. However, applying BG at 31 °C may serve as a protective measure to reduce WSD injuries and restrict WSSV dissemination.